/* style.css */
/* ====================== APTOS FONT – SELF-HOSTED ====================== */
@font-face {
    font-family: 'Aptos';
    src: url('../font/Aptos-Light.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: 'Aptos';
    src: url('../font/Aptos.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Aptos';
    src: url('../font/Aptos-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

/* ====================== GLOBAL RESET & TYPOGRAPHY ====================== */
html, body {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Aptos, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    font-size: 18px;
}

h1, h2, h3 {
    font-weight: 700;
    margin: 0;
}

:root {
    --page-margin: 22%;
}

/* ====================== HERO SECTION ====================== */
.hero {
    background-image: url('../image/Dr-Sepida-Sazgar-banner.png');
    background-size: cover;
    background-position: center;
    height: 250px;
    position: relative;
}

.hero .hero-text-wrapper {
    position: absolute;
    left: var(--page-margin);
    right: var(--page-margin);
    bottom: 20%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
}

.hero h1,
.hero h2 {
    color: white;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    text-align: left;
}

.hero h1 {
    font-size: clamp(1.6rem, 4.5vw, 2.2rem);
    line-height: 1.1;
}

.hero h2 {
    font-size: clamp(1.0rem, 2.3vw, 1.5rem);
    line-height: 1.2;
}

/* ====================== NAVIGATION BAR ====================== */
nav {
    background: #E8DCC8;
    padding: 1rem var(--page-margin);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

nav a {
    color: #666;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    transition: color 0.5s ease;
}

nav a:hover {
    color: #111;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);  
}

/* START active nav link styling */ 
nav a {
    position: relative;
    padding-bottom: 6px; /* Gives space for the underline */
    color: #666; /* Your original link color */
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #888; /* Softer gray underline instead of harsh black */
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover {
    color: #444; /* Darker on hover, but not full black */
}

nav a:hover::after {
    width: 60%;
}

nav a.active {
    color: #555; /* Subtle darkening — visible but not aggressive */
    font-weight: 500; /* Medium weight instead of bold — more refined */
}

nav a.active::after {
    width: 70%; /* Slightly longer underline to stand out */
    background: #777; /* Matching softer underline */
}

/* END active nav link styling */

/* Hamburger – hidden on desktop, right side on mobile */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    outline: none;
    margin-left: auto;
    position: relative;
    width: 32px;
    height: 32px;
}

.hamburger svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
}

.hamburger .close-icon {
    display: none;
}

.hamburger.active .hamburger-icon {
    display: none;
}

.hamburger.active .close-icon {
    display: block;
}

/* ====================== INTRO/WELCOME SECTION ====================== */
.intro {
    background: #f9f1e4;  /* The warm beige from your image */
    flex: 1 0 auto;
    padding: 3.5rem var(--page-margin);
}

.intro img {
    float: left;
    margin: 0 2rem 1rem auto;
    max-width: 250px;
    height:auto;
    border-radius: 0px;
}

.intro.content_about img {
    float: right;
    margin: 0 auto 1rem 2rem;
    max-width: 250px;
    height:auto;
    border-radius: 0px;
}

.intro.content_about.img_wider img {
    float: right;
    margin: 0 auto 1rem 2rem;
    max-width: 300px;
    height:auto;
    border-radius: 0px;
}

.intro p {
    color: #555;
    max-width: 100%;
    margin: -.5rem auto 1.5rem auto;
    line-height: 1.7;
    text-align: justify;
    text-justify: inter-word;
}

.intro p:last-child {
    margin-bottom: 10rem;
}

/* Clear float after intro section */
.intro::after {
    content: "";
    display: table;
    clear: both;
}

/* Bullet point list */
.list-specialties {
    max-width: 600px;             /* Keeps it readable, not too wide */
    margin: 1rem auto;            /* Centers the list and adds spacing */
    margin-top: -10px;
    padding-left: 1.5rem;         /* Standard indent for bullets */
    line-height: 1.8;             /* Comfortable spacing between items */
}

.list-specialties li {
    color: #555;
    margin-bottom: 0rem;        /* No Extra breathing room between items */
}

/* Custom bullet style for a softer, more elegant look */
.list-specialties li::marker {
    color: #A67B5B;               /* Warm accent color (or use #888 for subtle gray) */
    font-size: 1.2em;
}

/* Footer */ 
footer {
    flex-shrink: 0;
    background: #f9f1e4;            /* Matches your intro beige */
    padding: 2rem var(--page-margin);
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    border-top: 1px solid rgba(0,0,0,0.08);
    left: var(--page-margin);
    right: var(--page-margin);
    margin-top: auto;               /* Helps push footer to bottom if needed */
}

footer p {
    margin: 0;
}

br.mobile-only {
    display: none;
}

/* Tablet */
@media (max-width: 1024px) {

    .intro.content_about img {
        max-width: 200px;
    }
    .intro.content_about.img_wider img {
        max-width: 200px;
    }
}

/* --------- MOBILE BELOW HERE ------------*/
/* --------- MOBILE BELOW HERE ------------*/
/* --------- MOBILE BELOW HERE ------------*/


/* Mobile */
@media (max-width: 768px) {
    :root {
    --page-margin: 12%;
    }

    html {
        font-size: 18px;  /* Base of 18px → 1.2rem becomes ~21.6px (larger and readable) */
    }

    body {
        padding-top: 64px; /* necessary if nav top of page */
        -webkit-text-size-adjust: 100%;  /* Prevents Safari's auto text inflation */
    } 

    .hero {
        height: 180px; /* header img height */
    }

    .hamburger { 
        display: block;  /* This shows the button */
    }

    nav {
        position: fixed;
        top: 0px; /* if you make this 0, will stick top of page */
        left: 0;
        right: 0;
    }

    nav a {
        padding-top: 0.8rem; /* padding on each link */
        padding-right: 2rem;
        padding-bottom: 0.8rem;
    }
    .nav-links { /* nav drawer / bg for nav links */
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        background: #e6d9cb;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 4rem; /* space above the first link */
        padding-bottom: 2rem;
        gap: 0.4rem;
        transition: right 0.4s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    }

        /* START mobile nav link underline - centered & symmetric like desktop */
    .nav-links a {
        position: relative;
        padding: 0.8rem 2rem;       /* Keeps your spacing */
        text-align: center;
        box-sizing: border-box;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 4px;
        left: 50%;
        width: 0;
        height: 2px;
        background: #777;
        transition: width 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-links a:hover::after {
        width: 60%;
    }

    .nav-links a.active::after {
        width: 70%;                 /* Slightly longer for active page */
        background: #666;           /* Optional: slightly darker for emphasis */
    }

    .nav-links a.active {
        color: #444;
        font-weight: 500;
    }
    /* END mobile nav link underline */

    body.menu-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 999;
    }

    /* ====================== MOBILE VIEW -- INTRO/WELCOME SECTION ====================== */
    .intro {  /* or .welcome if you prefer */
            background: #f9f1e4;  /* The warm beige from your image */
            padding: 0.5rem var(--page-margin);
            padding-top: 3rem; /* all mobile pages get this padding top */
        }

    .intro img {
        max-width: 180px;
        height:auto;
        float: none;
        margin: 0 2rem 2rem auto;
    }

    .intro.content_about img {
        float: right;
        max-width: 180px;
    }

    .intro.content_about.img_wider img {
    display: none;
    }

    br.mobile-only {
        display: inline; /* Visible on mobile → creates line break */
    }
}

