/* Font Imports (keep at top) */
/* swap prevents “invisible text” while fonts load, using fallback fonts first */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&family=Montserrat:wght@500;700&display=swap');

/* Variables */
/* font stacks include system fallbacks and generic fallbacks */
:root {
        --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        --font-heading: 'Montserrat', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
        --fw-regular: 400;
        --fw-medium: 500;
        --fw-bold: 700;
        --border-radius: 6px;
        --black: #000000;
        --white: #ffffff;
        --brand-color-one: yellow;
        --dark-grey: #393939;
        --light-grey: #f7f7fb;
}

/* Base */
html { 
        font-family: var(--font-sans); /* set font for whole document */
        font-size: 16px; /* common web standard */
        -webkit-font-smoothing: antialiased; /* sharper rendering on Mac & iOS */
        -moz-osx-font-smoothing: grayscale; /* sharper rendering on Mac & iOS */
}
body { 
        margin: 0; /* remove default */
        color: var(--dark-grey);
        background: var(--light-grey);
        line-height: 1.45; /* spacious for readability */
}

/* Headings */
h1,h2,h3,h4,h5 {
        font-family: var(--font-heading);
        font-weight: var(--fw-bold);
        letter-spacing: -0.01em; /* tighten for crispness */
}
/* Heading Scale */
/* clamp makes font size responsive */
h1 { 
        font-size: clamp(2rem, 5vw, 2.75rem); /* 32px to 44px */
        line-height: 1.2;
        text-align: center;
        padding: 25px;
        margin: 0;
}
h2 { 
        font-size: clamp(1.5rem, 3.5vw, 2rem); /* 24px to 32px */
}
h3 {
        font-size: clamp(1.25rem, 2.8vw, 1.5rem); /* 20px to 24px */ 
}

/* Text Elements */
p, a, li, input, button { 
        font-family: var(--font-sans); 
        font-weight: var(--fw-regular); 
        font-size: 1rem; /* consistent with base font size */
        font-size: clamp(0.9375rem, 2.2vw, 1rem); /* 15px to 16px */
}

/* Nav */
.nav {
        background: var(--black);
        color: var(--white);
}
.nav-inner {
        max-width: 1000px;
        margin: 0 auto;
        padding: 0.75rem 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
}

/* Nav Hamburger Button */
.hamburger {
        display: inline-flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        background: none;
        border: none;
        cursor: pointer;
}
.hamburger span {
        height: 2px;
        background: var(--white);
        border-radius: var(--border-radius);
        transition: 0.3s;
}
    
/* Nav Submenu (accessed via hamburger button) */
.menu {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        background: var(--black);
}
.menu.open {
        display: flex;
}
.menu a {
        color: var(--white);
        text-decoration: none;
        padding: 0.5rem;
        border-radius: var(--border-radius);
}
.menu a:hover {
        background: rgba(255,255,255,0.1);
        color: var(--brand-color-one);
}

/* Header Nav Index Link */
.brand-link {
        color: var(--brand-color-one);
        text-decoration: none;
        border-radius: var(--border-radius);
        padding: 0.5rem;
}
.brand-link:hover {
        background: rgba(255,255,255,0.1);
}
/* Branded Hero Image */
.brand-logo {
        height: auto;
        width: 80%;
        max-width: 800px;
        min-width: 200px;
}

/* Hero */
/* AS Photography */
.hero {
        position: relative;
        height: 50vh;
        min-height: 500px;
        background: url("assets/pexels-binyaminmellish-106399.jpg") no-repeat center center/cover;
        display: flex;
        align-items: center;
        justify-content: center;
}
.hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.55); /* dark overlay for contrast */
}
.hero-overlay {
        position: relative;
        text-align: center;
        padding: 2rem;
        max-width: 700px;
}
.hero-btn {
        width: 150px;
        height: 22px;
        display: inline-block;
        padding: 0.75rem 1.5rem;
        background: var(--brand-color-one);
        color: var(--black);
        font-weight: var(--fw-bold);
        text-decoration: none;
        border-radius: var(--border-radius);
        transition: background 0.2s ease, transform 0.2s ease;
}
.hero-btn:hover,
.hero-btn:focus {
        background: yellow;
        transform: scale(1.03);
}

/* Branded About Text */
.brand-about {
        text-align: center;
        max-width: 70%;
        margin: auto;
}

/* Expandable Service cards */
.services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 1.5rem;
}
.service-card {
        background: var(--white);
        border-radius: var(--border-radius);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border-color: white;
        padding: 1.5rem;
        text-align: center;
        cursor: pointer;
        transition: transform 0.2s ease;
        position: relative;
        overflow: hidden;
}
.service-card:hover {
        transform: translateY(-5px);
}
.service-icon {
        font-size: clamp(2rem, 5vw, 2.5rem);
        margin-bottom: 0.5rem;
}
.brand-icon {
        width: 36px;
        height: auto;
}
.service-title {
        font-size: clamp(1rem, 2.8vw, 1.25rem);
        font-weight: bold;
        margin-bottom: 0.5rem;
}
.service-details {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        text-align: center;
        margin-top: 0.5rem;
}
.service-card.active .service-details {
        max-height: 200px;
}

/* Carousel */
.carousel {
        position: relative;
        max-width: 800px;
        margin: 40px auto;
        overflow: hidden;
        border-radius: var(--border-radius);
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.slides {
        display: flex;
        transition: transform 0.6s ease-in-out;
}
.slides img {
        width: 100%;
        flex-shrink: 0;
}
.prev, .next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0,0,0,0.5);
        color: var(--white);
        border: none;
        padding: 10px;
        cursor: pointer;
        border-radius: 50%;
        font-size: 18px;
}
.prev { left: 10px; }
.next { right: 10px; }
.dots {
        text-align: center;
        margin: 10px 0;
}
.dot {
        display: inline-block;
        width: 12px;
        height: 12px;
        margin: 0 5px;
        background: #bbb;
        border-radius: 50%;
        cursor: pointer;
}
.dot.active {
        background: #333;
}
/* Play/Pause button */
.carousel-toggle {
        position: absolute;
        bottom: 10px;
        right: 10px;
        background: rgba(0,0,0,0.5);
        color: white;
        border: none;
        padding: 8px 12px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
}   
.carousel-toggle:focus {
        outline: 2px solid white;
}
/* Photo Credit */
.carousel-attribution {
        position: absolute;
        bottom: -6px;
        left: 10px;
        background: rgba(0,0,0,0.5);
        color: white;
        border: none;
        padding: 8px 12px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
}
.carousel-attribution a {
        color: white;
}

/* Contact Info Card */
.contact-info-card {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        background: #f9fafb; /* light neutral background */
        border: 1px solid #e5e7eb;
        border-radius: var(--border-radius);
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.contact-info-card .info-item {
        padding: 0.5rem;
        min-width: 200px;
        margin: 0.5rem 0;
}
.contact-info-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        line-height: 0.5rem;
}
.contact-info-card p,
.contact-info-card a {
        color: var(--black);
        text-decoration: none;
}
.contact-info-card a:hover {
        text-decoration: underline;
}
.contact-grid {
        display: grid;
        gap: 1.5rem;
}
.contact-info {
        display: grid;
        gap: 1rem;
        background: var(--dark-grey);
        color: #fff;
        padding: 1rem;
        margin: auto;
        border-radius: var(--border-radius);
}
.contact-info h2 {
        margin-top: 0;
        color: var(--white);
}
.contact-info p, .contact-info a {
        margin: 0.4rem 0;
        color: var(--white);
        text-decoration: none;
}
.contact-info a:hover { text-decoration: underline; }

/* Contact Form */
.contact-form {
        max-width: 450px;
        margin: 2rem auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        background: var(--white);
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.form-label {
        display: flex;
        flex-direction: column;
        font-weight: 600;
        font-size: 0.95rem;
}
.form-input,
.form-textarea {
        margin-top: 0.4rem;
        padding: 0.6rem 0.75rem;
        font-size: 1rem;
        border: 1px solid var(--dark-grey);
        border-radius: 6px;
        background: var(--white);
        transition: border-color 0.2s ease;
}
.form-input:focus,
.form-textarea:focus {
        border-color: var(--black);
        outline: none;
}  
.form-textarea {
        min-height: 120px;
        resize: vertical;
}
.form-button {
        padding: 0.75rem 1rem;
        background: var(--brand-color-one);
        color: var(--black);
        font-size: 1rem;
        font-weight: 600;
        border: 1px solid var(--dark-grey);
        border-radius: 6px;
        cursor: pointer;
        transition: background 0.2s ease;
}
.form-button:hover {
        background: var(--brand-color-one);
}

/* Footer */
.footer {
        background: var(--dark-grey);
        color: var(--white);
        padding: 2rem 1rem 1rem;
}
.footer-inner {
        display: grid;
        gap: 2rem;
        grid-template-columns: 1fr;
        max-width: 1000px;
        margin: 0 auto;
}
.footer-info p, .footer-info a {
        margin: 0.3rem 0;
        color: var(--white);
        text-decoration: none;
}
.footer-info a:hover {
        text-decoration: underline;
}
.footer-map iframe {
        border-radius: var(--border-radius);
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.footer-bottom {
        text-align: center;
        margin-top: 2rem;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 1rem;
}

/* Asset Attribution */
.attribution {
        display: block;
        text-align: center;
        font-size: 12px;
        padding: 10px;
        color: var(--white);
}

/* Privacy Policy */
.privacy-policy {
        max-width: 800px;
        margin: 0 auto;
        padding: 2rem;
        font-family: sans-serif;
        line-height: 1.6;
}
.privacy-policy h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
}
.privacy-policy h2 {
        font-size: 1.4rem;
        margin-top: 1.5rem;
}
.privacy-policy a {
        color: var(--white);
        text-decoration: underline;
}
.policy-link {
        color: var(--white);
        text-align: center;
}

/* Tablet Responsive Typography */
@media (max-width: 1024px) {
        html { font-size: 15px; }
        h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
        h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); }
        .brand-icon { width: 32px; }
}
/* Mobile Responsive Typography */
@media (max-width: 600px) {
        html { font-size: 14px; }
        h1 { font-size: clamp(1.6rem, 6vw, 2rem); }
        h2 { font-size: clamp(1.25rem, 5vw, 1.5rem); }
        h3 { font-size: clamp(1.1rem, 4vw, 1.25rem); }
        .brand-icon { width: 28px; }
}

/* Responsive nav Menu */
@media (min-width: 768px) {
        .hamburger { display: none; }
        .menu {
                display: flex !important;
                flex-direction: row;
                gap: 1rem;
                padding: 0;
                background: none;
        }
        .menu a:hover {
                background: rgba(255,255,255,0.15);
        }
        .footer-inner {
                grid-template-columns: 1fr 1fr;
                align-items: start;
        }
}

/* Responsive Footer */
@media (min-width: 768px) {
        .footer-inner {
                grid-template-columns: 1fr 1fr;
                align-items: start;
        }
}
