/* ==========================================================
   Gregory Lum, MD
   drlum.com

   Version 2.0.0

========================================================== */


/* ==========================================================
   RESET
========================================================== */

*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


/* ==========================================================
   DESIGN VARIABLES
========================================================== */

:root{

    --background:#FAF8F5;

    --surface:#FFFFFF;

    --text:#2F3A44;

    --navy:#234B6E;

    --teal:#6A9995;

    --border:#E7E5E1;

    --max-width:1320px;

    --content-width:760px;

    --transition:.25s ease;

    --radius:14px;

    --shadow:
        0 10px 35px rgba(0,0,0,.08);

    --font-heading:
        "Cormorant Garamond",
        serif;

    --font-body:
        "Source Sans 3",
        sans-serif;

}


/* ==========================================================
   GLOBAL
========================================================== */

html{

    scroll-behavior:smooth;

}

body{

    background:var(--background);

    color:var(--text);

    font-family:var(--font-body);

    line-height:1.8;

    font-size:18px;

    -webkit-font-smoothing:antialiased;

}

img{

    display:block;

    max-width:100%;

    height:auto;

}

a{

    text-decoration:none;

    color:inherit;

}

.container{

    width:min(92%,var(--max-width));

    margin-inline:auto;

}

.narrow{

    max-width:var(--content-width);

}


/* ==========================================================
   TYPOGRAPHY
========================================================== */

h1,
h2,
h3{

    font-family:var(--font-heading);

    color:var(--navy);

    font-weight:600;

    line-height:1.15;

}

h1{

    font-size:2rem;

}

h2{

    font-size:4.3rem;

    margin-bottom:1.5rem;

}

h3{

    font-size:2rem;

    margin-bottom:.75rem;

}

p{

    margin-bottom:1.5rem;

}

.eyebrow{

    letter-spacing:.12em;

    text-transform:uppercase;

    color:var(--teal);

    font-weight:600;

    margin-bottom:1rem;

    font-size:.9rem;

}

.lead{

    font-size:1.35rem;

    max-width:34rem;

}


/* ==========================================================
   HEADER
========================================================== */

.site-header{

    background:white;

    border-bottom:1px solid var(--border);

    position:sticky;

    top:0;

    z-index:1000;

}

.site-header .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:22px 0;

}

.logo h1{

    font-size:1.85rem;

}

.logo span{

    display:block;

    font-size:.9rem;

    color:#7d8790;

    font-weight:400;

    letter-spacing:.02em;

}


/* ==========================================================
   NAVIGATION
========================================================== */

.main-navigation ul{
    display:flex;
    gap:2rem;
    list-style:none;
    align-items:center;
}

.main-navigation a{
    color:var(--text);
    font-weight:500;
    transition:color var(--transition);
}

.main-navigation a:hover{
    color:var(--navy);
}

.appointment-button,
.primary-button{

    display:inline-block;
    background:var(--navy);
    color:white;
    padding:16px 28px;
    border-radius:999px;
    font-weight:600;
    transition:all var(--transition);

}

.appointment-button:hover,
.primary-button:hover{

    transform:translateY(-2px);

    background:#193955;

}


/* ==========================================================
   HERO
========================================================== */

.hero{

    padding:3rem 0 5.5rem;

}

.hero-grid{

    display:grid;

    grid-template-columns:1.25fr 1fr;

    gap:3.5rem;

    align-items:center;

}

.hero-content{

    max-width:620px;

}

.hero-image{

    display:flex;

    justify-content:center;

}

.hero-image img{

    width:100%;

    max-width:610px;

    border-radius:18px;

    box-shadow:var(--shadow);

}

.hero h2{

    margin-bottom:2rem;
	
}

.hero .lead{

    margin-bottom:2rem;
    max-width:32rem;	

}


/* ==========================================================
   CONTENT SECTIONS
========================================================== */

section{

    padding:6rem 0;

}


/* ==========================================================
   FOOTER
========================================================== */

.site-footer{

    border-top:1px solid var(--border);

    padding:3rem 0;

    text-align:center;

    color:#777;

    background:white;

}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:900px){

.hero-grid{

    grid-template-columns:1fr;

}

.hero-image{

    order:-1;

}

.site-header .container{

    flex-direction:column;

    gap:1.5rem;

}

.main-navigation ul{

    flex-wrap:wrap;

    justify-content:center;

}

h2{

    font-size:3rem;

}

}

/* ==========================================================
   WELCOME
========================================================== */

.welcome{

    background:white;

}

.welcome .intro{

    font-size:1.35rem;

    color:var(--navy);

    line-height:1.7;

}

.welcome p{

    max-width:700px;

}


/* ==========================================================
   PHILOSOPHY
========================================================== */

.philosophy{

    background:var(--background);

}

.section-heading{

    text-align:center;

    max-width:720px;

    margin:0 auto 4rem;

}

.section-heading p{

    color:#66707a;

}

.philosophy-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:2rem;

}

.card{

    background:white;

    padding:2.5rem;

    border-radius:18px;

    border:1px solid var(--border);

    transition:all .25s ease;  

}

.card:hover{

    transform:translateY(-6px);

    box-shadow:var(--shadow);

}

.card h3{

    margin-bottom:1rem;

}

.card p{

    margin-bottom:0;

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:900px){

    .philosophy-grid{

        grid-template-columns:1fr;

    }

}

/* ==========================================================
   ABOUT DR. LUM
========================================================== */

.about-hero{

    padding:5rem 0 4rem;

    background:white;

    border-bottom:1px solid var(--border);

}

.about-hero h2{

    max-width:900px;

    margin-bottom:1.5rem;

}

.about-hero-intro{

    max-width:720px;

    font-size:1.35rem;

    color:#66707a;

    line-height:1.7;

}

.about-section{

    padding:5.5rem 0;

}

.about-section-alt{

    background:white;

}

.about-section-heading{

    margin-bottom:2.5rem;

}

.about-section-heading h2{

    font-size:3.2rem;

    margin-bottom:0;

}

.about-section p{

    max-width:760px;

    margin-bottom:1.6rem;

}

.about-section p:last-child{

    margin-bottom:0;

}

.about-section-closing{

    background:var(--background);

    padding-bottom:6.5rem;

}


/* ==========================================================
   ABOUT MOBILE
========================================================== */

@media (max-width:900px){

    .about-hero{

        padding:4rem 0 3rem;

    }

    .about-hero h2{

        font-size:3rem;

    }

    .about-section{

        padding:4rem 0;

    }

    .about-section-heading h2{

        font-size:2.7rem;

    }

}

/* ==========================================================
   CONTACT
========================================================== */

.contact-page{

    padding:6rem 0 7rem;

    background:var(--background);

}

.contact-page h2{

    margin-bottom:3rem;

}

.contact-page h3{

    margin-bottom:1.25rem;

}

.contact-intro,
.contact-practice{

    max-width:760px;

}

.contact-intro{

    padding-bottom:3.5rem;

    border-bottom:1px solid var(--border);

}

.contact-intro p,
.contact-practice p{

    margin-bottom:1.6rem;

}

.contact-practice{

    padding-top:3.5rem;

}

.contact-practice p:last-child{

    margin-bottom:0;

}

@media (max-width:900px){

    .contact-page{

        padding:4.5rem 0 5rem;

    }

    .contact-page h2{

        font-size:3rem;

    }

}

/* Homepage: understated link to the fuller personal profile */
.section-link{
    margin-top:2rem;
}

.section-link a{
    font-weight:500;
}


/* ==========================================================
   ONE-PAGE NAVIGATION
========================================================== */

html{
    scroll-behavior:smooth;
}

section[id]{
    scroll-margin-top:150px;
}

@media (max-width:900px){

    section[id]{
        scroll-margin-top:220px;
    }

}

/* ==========================================================
   ONE-PAGE SPACING — 2.6.2
   Only reduces vertical whitespace; existing layout rules remain intact.
========================================================== */

body.one-page-tight-spacing section{
    padding-top:4rem;
    padding-bottom:4rem;
}

body.one-page-tight-spacing .hero{
    padding-top:3rem;
    padding-bottom:4rem;
}

body.one-page-tight-spacing .about-section{
    padding-top:3.5rem;
    padding-bottom:3.5rem;
}

body.one-page-tight-spacing .about-section-closing{
    padding-bottom:4rem;
}

body.one-page-tight-spacing .contact-page{
    padding-top:4rem;
    padding-bottom:4.5rem;
}

@media (max-width:900px){

    body.one-page-tight-spacing section{
        padding-top:3rem;
        padding-bottom:3rem;
    }

    body.one-page-tight-spacing .hero{
        padding-top:2.5rem;
        padding-bottom:3rem;
    }

    body.one-page-tight-spacing .about-section{
        padding-top:2.75rem;
        padding-bottom:2.75rem;
    }

    body.one-page-tight-spacing .contact-page{
        padding-top:3rem;
        padding-bottom:3.5rem;
    }

}

/* ==========================================================
   ONE-PAGE PARAGRAPH SPACING — 2.6.3
   Tightens desktop paragraph spacing without changing
   section spacing, typography, or mobile layout.
========================================================== */

@media (min-width:901px){

    body.one-page-tight-spacing .about-section p{
        margin-bottom:1.15rem;
    }

    body.one-page-tight-spacing .contact-page p{
        margin-bottom:1.15rem;
    }

}
