/* ========================================
   SARAH CROWE PLANNING
   Professional Website Stylesheet
   PART 1
======================================== */

/* ========================================
   COLOUR PALETTE
======================================== */

:root{

    --navy:#17324D;
    --blue:#2E6F95;
    --green:#5A8F6B;
    --sage:#DCE8E1;
    --sand:#F6F4EF;
    --background:#FBFCFB;
    --white:#FFFFFF;
    --dark-green:#3F6B4A;

    --text:#333333;
    --light-text:#666666;

    --border:#D5DDD8;

}



/* ========================================
   GENERAL
======================================== */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Source Sans 3',sans-serif;

    background:var(--background);

    color:var(--text);

    line-height:1.8;

    font-size:18px;

}

h1,h2,h3,h4{

    font-family:'Montserrat',sans-serif;
    

}

img{

    max-width:100%;

    display:block;

}

a{

    transition:.3s;

}

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

nav{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:16px 70px;

    background:rgba(255,255,255,0.94);

    backdrop-filter:blur(14px);

    position:sticky;

    top:0;

    z-index:1000;

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

    box-shadow:0 6px 24px rgba(0,0,0,.04);

}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
}

.logo img{
    height:65px;
    width:auto;
    display:block;
}

.logo span{
    font-family:'Montserrat',sans-serif;
    font-size:26px;
    font-weight:600;
    letter-spacing:.5px;
    color:var(--navy);
}

nav ul{

    display:flex;

    list-style:none;

    gap:36px;

}

nav a{

    text-decoration:none;

    color:var(--navy);

    font-weight:500;

}

nav a:hover{

    color:var(--green);

}

nav a.active{

    color:var(--green);

    font-weight:600;

}
/* =========================
   HAMBURGER MENU
========================= */

.menu-toggle{

    display:none;
    background:none;
    border:none;
    color:var(--navy);
    font-size:32px;
    padding:6px;
    cursor:pointer;

}

@media (max-width:1000px){

    nav{

        position:relative;

    }

    .menu-toggle{

        display:block;

    }

    .nav-links{

        display:none;

        position:absolute;

        top:100%;
        left:0;

        width:100%;

        background:var(--white);

        flex-direction:column;

        padding:12px 0;

        box-shadow:0 12px 30px rgba(0,0,0,.08);

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

        border-bottom-left-radius:8px;
        border-bottom-right-radius:8px;

    }

    .nav-links.active{

        display:flex;

    }

    .nav-links li{

        list-style:none;
        margin:0;

        border-bottom:1px solid rgba(0,0,0,.05);

    }

    .nav-links li:last-child{

        border-bottom:none;

    }

    .nav-links a{

        display:block;

        padding:14px 20px;

        text-align:center;

        font-size:18px;

        transition:
            background .2s ease,
            color .2s ease;

    }

    .nav-links a:hover{

        background:var(--sage);
        color:var(--dark-green);

    }

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

header{
    text-align:center;
    padding:20px 20px 15px;
    background:linear-gradient(180deg,#FFFFFF,#FBFCFB);
}

h1{
    font-size:68px;
    font-weight:700;
    color:var(--navy);
    letter-spacing:-2px;
    margin:0;
}

.tagline{
    margin:6px 0 25px;
    font-size:28px;
    font-weight:700;
    letter-spacing:2.5px;
    text-transform:uppercase;
    color:var(--green) !important;
}

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

.hero{
    display:block;
    width:100%;
    padding:35px 5% 60px;
    background:var(--sage);
}

/* Centred name and tagline */

.hero-title{
    text-align:center;
    margin-bottom:45px;
}

.hero-title h1{
    font-size:56px;
    font-weight:650;
    color:var(--navy);
    margin-bottom:5px;
    letter-spacing:-1px;
}

.hero-title .tagline{
    text-align:center;
    margin:10px 0 0;
    font-size:26px;
    font-weight:600;
    letter-spacing:2px;
    text-transform:uppercase;
    color:var(--green);
}


/* Hero content layout */

.hero-content{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:50px;
}


/* Left side text */

.hero-text{
    flex:1.2;
}

.hero-text h2{
    font-size:32px;
    line-height:1.2;
    color:var(--navy);
    margin-bottom:25px;
    max-width:650px;
}

.hero-text p{
    font-size:22px;
    color:var(--light-text);
    line-height:1.7;
    max-width:620px;
    margin-bottom:35px;
}


.about-image {

    flex:0 0 180px;

}


.about-image img {

    width:180px;
    height:220px;
    object-fit:cover;

    border-radius:20px;

    box-shadow:0 12px 30px rgba(0,0,0,.15);

}


/* Responsive Hero */

@media (max-width:900px){

    .hero{
        padding:40px 20px;
    }

    .hero-title h1{
        font-size:42px;
    }

    .hero-content{
        flex-direction:column;
        text-align:left;
        gap:40px;
    }

    .hero-text h2{
        font-size:42px;
    }

    .hero-text p{
        font-size:18px;
        margin-left:auto;
        margin-right:auto;
    }

    .hero-image{
        justify-content:center;
        width:100%;
    }

    .profile-photo{
        max-width:350px;
        
    }

    .hero-buttons{
        justify-content:center;
    }

    
}

/* ========================================
   BUTTONS
======================================== */


/* ---------- HERO BUTTON GROUP ---------- */

.hero-buttons{
    display:flex;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;
}


/* ---------- BUTTON STYLE ---------- */

.button{

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:16px 36px;

    margin-top:20px;

    border-radius:40px;

    text-decoration:none;

    font-weight:600;

    background:var(--navy);

    color:var(--white);

    transition:0.35s ease;

    box-shadow:0 8px 20px rgba(23,50,77,.18);

    white-space:nowrap;

}


.button:hover{

    background:var(--green);

    transform:translateY(-4px);

}


/* ---------- SECONDARY BUTTON ---------- */

.secondary{

    background:var(--green);

}


.secondary:hover{

    background:#46795B;

}

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

/* ---------- HERO STATS ---------- */

.stats{

    max-width:1200px;

    margin:30px auto;

    display:grid;

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

    gap:25px;

    padding:0 40px;

}

.stat{

    background:white;

    padding:20px;

    border-radius:18px;

    text-align:center;

    box-shadow:0 10px 25px rgba(0,0,0,.06);

}

.stat h3{

    color:#17324D;

    font-size:28px;

    margin-bottom:10px;

}

.stat p{

    font-size:15px;

    color:#666;

}

/* ========================================
   SECTION DIVIDER
======================================== */

.section-divider{

    max-width:1200px;

    margin:50px auto;

    border:none;

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

}

/* ========================================
   EXPERTISE
======================================== */

.expertise{

    max-width:1250px;
    margin:50px auto;
    padding:0 40px;

}


.expertise h2{

    font-size:42px;
    color:var(--navy);
    margin-bottom:20px;
    text-align:center;

}


.expertise .section-intro{

    max-width:850px;
    margin:0 auto 45px;
    text-align:left;

    font-size:22px;
    line-height:1.7;
    color:var(--light-text);

}


/* Expertise grid */

.cards{

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;

}


/* Compact navy expertise blocks */

.expertise .card{

    background:var(--navy);

    border-radius:18px;

    padding:28px 30px;

    border:none;

    box-shadow:none;

    min-height:180px;

    transition:.3s ease;

}


/* remove coloured strip */

.expertise .card::before{

    display:none;

}


.expertise .card:hover{

     background:var(--green);

}


/* headings */

.expertise .card h3{

    font-size:22px;

    color:white;

    margin-bottom:12px;

    line-height:1.35;

}


/* text */

.expertise .card p{

    font-size:18px;

    color:rgba(255,255,255,.85);

    line-height:1.6;

}


/* mobile */

@media(max-width:900px){

    .cards{

        grid-template-columns:1fr;

    }

}
/* ========================================
   PROJECTS
======================================== */

.projects-preview{

    max-width:1250px;

    margin:30px auto;

    padding:0 40px;

}

.projects-preview h2{

    font-size:42px;

    color:var(--navy);

    margin-bottom:50px;
    
    text-align:center;

}

.project-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:35px;

}

.project-card{

    background:white;

    border-radius:24px;

    padding:45px;

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

    box-shadow:0 18px 50px rgba(20,40,60,.05);

    transition:.35s;

    position:relative;

    overflow:hidden;

}

.project-card::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:6px;

    background:linear-gradient(90deg,var(--navy),var(--blue));

}

.project-card:hover{

    transform:translateY(-10px);

    box-shadow:0 35px 70px rgba(20,40,60,.10);

}

.project-card h3{

    color:var(--navy);

    font-size:24px;

    margin-bottom:18px;

}

.project-card p{

    color:var(--light-text);

    line-height:1.8;

    margin-bottom:25px;

}

.project-card a{

    text-decoration:none;

    color:var(--blue);

    font-weight:600;

}

.project-card a:hover{

    color:var(--green);

}

/* ========================================
   FEATURED WORK
======================================== */

.featured-work{

    width:100%;
    background:var(--sage);
    padding:30px 0;
    margin:30px 0;
    position:relative;

}

.featured-work h2{

    max-width:1250px;
    margin:0 auto 50px;
    padding:0 40px;

    font-size:42px;
    color:var(--navy);
    text-align:center;

}


.resource-grid{

    max-width:1250px;
    margin:0 auto;
    padding:0 40px;

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:35px;

}


.resource-card{

    background:linear-gradient(180deg,#FFFFFF,#FBFCFB);

    border-radius:24px;

    padding:45px;

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

    box-shadow:0 18px 50px rgba(20,40,60,.05);

    transition:.35s;

    position:relative;

    overflow:hidden;

}

.resource-card::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:6px;
    
    background:linear-gradient(90deg,var(--blue),var(--green));

}

.resource-card:hover{

    transform:translateY(-10px);

    box-shadow:0 35px 70px rgba(20,40,60,.10);

}

.resource-card h3{

    font-size:24px;

    color:var(--navy);

    margin-bottom:18px;

}

.resource-card p{

    color:var(--light-text);

    line-height:1.8;

    margin-bottom:25px;

}

.resource-card a{

    color:var(--blue);

    text-decoration:none;

    font-weight:600;

}

.resource-card a:hover{

    color:var(--green);

}

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

footer{

    margin-top:40px;

    padding:40px 20px;

    text-align:center;

    background:linear-gradient(180deg,var(--navy),#11273C);

    color:white;

}

/* Footer Heading */

footer h3{

    font-size:30px;

    margin-bottom:20px;

}

/* Footer Text */


footer p:nth-of-type(2){

    max-width:100%;

    white-space:normal;

    font-size:16px;

}

footer p{

    max-width:900px;

    margin:12px auto;

    opacity:.9;

    line-height:1.8;

    font-size:16px;

}

footer p + p{

    margin-top:25px;

}
/* ========================================
   SUBTLE BACKGROUND SECTIONS
======================================== */

.projects-preview{

    position:relative;

}

.projects-preview::before{

    content:"";

    position:absolute;

    left:-250px;

    top:-120px;

    width:500px;

    height:500px;

    background:radial-gradient(circle,var(--sage),transparent 70%);

    opacity:.25;

    z-index:-1;

}


.featured-work::after{

    content:"";

    position:absolute;

    right:-220px;

    bottom:-180px;

    width:450px;

    height:450px;

    background:radial-gradient(circle,#D7E9F3,transparent 70%);

    opacity:.25;

    z-index:-1;

}

/* Prevent horizontal scrolling */

html,
body{
    overflow-x:hidden;
}

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

@media (max-width:850px){

    nav{

        flex-direction:column;

        gap:15px;

        padding:20px;

    }


    nav ul{

        flex-wrap:wrap;

        justify-content:left;

        gap:18px;

    }


    .stats{

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

        padding:0 20px;

    }

}



@media (max-width:700px){


    h1{

        font-size:46px;

    }


    .tagline{

        font-size:20px;

        letter-spacing:2px;

    }


    nav{

        padding:15px;

    }


    .logo img{

        height:50px;

    }


    .logo span{

        font-size:22px;

    }


    nav ul{

        gap:12px;

        font-size:16px;

    }


    .hero-buttons{

        flex-direction:column;

        width:100%;

    }


    .button{

        width:100%;

        margin-top:12px;

    }


    .stats{

        grid-template-columns:1fr;

        padding:0 15px;

    }


    .cards,
    .project-grid,
    .resource-grid{

        grid-template-columns:1fr;

    }


    .card,
    .project-card,
    .resource-card{

        padding:30px;

    }


    .expertise,
    .projects-preview,
    .featured-work{

        padding-left:20px;

        padding-right:20px;

    }

}

/* ========================================
   BACK TO TOP BUTTON
======================================== */

.back-to-top{

    position:fixed;

    right:25px;

    bottom:25px;

    width:45px;

    height:45px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:var(--green);

    color:white;

    border-radius:50%;

    text-decoration:none;

    font-size:18px;

    box-shadow:0 8px 20px rgba(0,0,0,.18);

    transition:.3s ease;

}


.back-to-top:hover{

    background:var(--blue);

    transform:translateY(-5px);

}

/* ========================================
   INSIGHTS
======================================== */

.insights{

    background:var(--background);

    padding:15px 20px 35px;

}

.insights h2{

    text-align:center;

    font-size:42px;

    color:var(--navy);

    margin-bottom:10px;

}

.insights .section-intro{

    max-width:760px;

    margin:0 auto 25px;

    text-align:center;

    font-size:20px;

    line-height:1.8;

    color:var(--light-text);

}

.insight-list{

    max-width:950px;

    margin:0 auto;

}

.insight{

    display:grid;

    grid-template-columns:130px 1fr;

    gap:28px;

    padding:18px 0;

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

    align-items:start;

}

.insight:last-child{

    border-bottom:none;

}

.insight-date{

    font-size:15px;

    font-weight:600;

    color:var(--green);

    letter-spacing:.5px;

    padding-top:4px;

}

.insight-content h3{

    font-size:26px;

    color:var(--navy);

    line-height:1.35;

    margin-bottom:10px;

}

.insight-content p{

    font-size:18px;

    line-height:1.7;

    color:var(--light-text);

    margin-bottom:12px;

}

.insight-content a{

    color:var(--blue);

    text-decoration:none;

    font-weight:600;

}

.insight-content a:hover{

    color:var(--green);

}

.insights .work-cta{

    text-align:center;

    margin-top:25px;

}

.insights .button{

    margin-top:0;

}

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

@media (max-width:768px){

    .insights{

        padding:35px 20px 45px;

    }

    .insights h2{

        font-size:34px;

    }

    .insights .section-intro{

        font-size:18px;

        margin-bottom:25px;

    }

    .insight{

        grid-template-columns:1fr;

        gap:10px;

        padding:18px 0;

    }

    .insight-date{

        font-size:14px;

    }

    .insight-content h3{

        font-size:22px;

    }

    .insight-content p{

        font-size:17px;

    }

}

/*==================================
WORK WITH ME
==================================*/

.work-with-me{

    background:var(--sage);

    padding:40px 20px;

}

.work-with-me .container{

    max-width:1150px;

    margin:auto;

}

.work-with-me h2{

    text-align:center;

    font-size:42px;

    color:var(--navy);

    margin-bottom:25px;

}


/*-----------------------
INTRO
-----------------------*/

.work-intro{

    display:grid;

    grid-template-columns:minmax(0,1fr) auto;

    gap:40px;

    align-items:center;

}

.intro-text{

    min-width:0;

}

.intro-text .lead{

    font-size:28px;

    color:var(--navy);

    font-weight:600;

    line-height:1.45;

    margin-bottom:25px;

}

.intro-text p{

    font-size:19px;

    color:var(--light-text);

    line-height:1.8;

}

.intro-images{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:20px;

    flex-shrink:0;

}

.service-photo{

    width:220px;

    height:280px;

    object-fit:cover;

    object-position:center;

    border-radius:20px;

    box-shadow:0 15px 35px rgba(0,0,0,.15);

}

@media (max-width:900px){

    .work-intro{

        grid-template-columns:1fr;

        text-align:left;

        gap:30px;

    }

    .intro-images{

        order:-1;

        justify-content:center;

        gap:12px;

    }

    .service-photo{

        width:145px;

        height:190px;

    }

}

/*-----------------------
SERVICES
-----------------------*/


.services{

    display:grid;

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

    gap:50px;

    margin-top:30px;

}

.services article{

    padding-top:25px;

    border-top:3px solid var(--green);

}
@media (max-width:900px){

    .work-intro{

        grid-template-columns:1fr;

        text-align:left;

        gap:30px;

    }

    .intro-images{

        order:-1;

        display:flex;

        justify-content:center;

        align-items:center;

        gap:12px;

        flex-wrap:nowrap;

    }

    .service-photo{

        width:145px;

        height:190px;

    }

    @media (max-width:900px){

    .work-intro{
        grid-template-columns:1fr;
        text-align:left;
        gap:30px;
    }

    .intro-images{
        order:-1;
        display:flex;
        justify-content:center;
        align-items:center;
        gap:12px;
        flex-wrap:nowrap;
    }

    .service-photo{
        width:145px;
        height:190px;
    }

    .services{
        grid-template-columns:1fr;
    }
}


}



.services h3{

    color:var(--navy);

    font-size:22px;

    margin-bottom:12px;

}

.services p{

    font-size:21px;

    color:var(--light-text);

    line-height:1.7;

}


/*-----------------------
CTA
-----------------------*/

/*=========================================
WORK CTA
=========================================*/

.work-cta{

    text-align:center;

    margin:60px auto 0;

    max-width:800px;

}


.work-cta p{

    font-size:24px;

    font-weight:600;

    line-height:1.5;

    color:var(--navy);

    margin:0 auto 25px;

}


.work-cta .button{

    margin-top:0;

}

/*-----------------------
MOBILE
-----------------------*

/* ========================================
   REMOVE GAP ABOVE FOOTER
======================================== */

.insights{
    margin-bottom:0;
}

footer{
    margin-top:0;
}


/* ========================================
   HERO INTRO ALIGNMENT
======================================== */

.hero-intro{

    width:100%;
    text-align:left;

}


.hero-intro h1,
.hero-intro .tagline{

    text-align:center;
    width:auto;

}

/* ========================================
   HERO IMAGE BALANCE FIX
======================================== */


.hero-content{

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:50px;

}


.hero-text{

    flex:1;

    max-width:650px;

}


.hero-image{

    flex:0 0 430px;

    display:flex;

    align-items:stretch;

}


.profile-photo{

    width:100%;

    height:auto;

    min-height:520px;

    object-fit:cover;

    border-radius:24px;

    box-shadow:0 15px 35px rgba(0,0,0,.15);

}



/* Tablets */

@media(max-width:1000px){

    .hero-content{

        flex-direction:column;

        align-items:left;

        text-align:left;

    }


    .hero-image{

        width:100%;

        max-width:350px;

    }


    .profile-photo{

        min-height:420px;

    }

}



/* Phones */

@media(max-width:600px){

    .hero-image{

        max-width:280px;

    }


    .profile-photo{

        min-height:350px;

    }

}

/* ========================================
   FINAL NAVBAR SYSTEM
======================================== */

nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:25px;
    padding:16px 50px;
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(14px);
    position:sticky;
    top:0;
    z-index:1000;
    border-bottom:1px solid var(--border);
}


/* LOGO */

.logo{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    flex-shrink:0;
}


.logo img{
    height:55px;
    width:auto;
}


.logo span{
    font-family:'Montserrat',sans-serif;
    font-size:24px;
    font-weight:600;
    color:var(--navy);
    white-space:nowrap;
}


/* MENU */

nav ul{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:22px;
    list-style:none;
    margin:0;
    padding:0;
}


nav li{
    white-space:nowrap;
}


nav a{
    text-decoration:none;
    color:var(--navy);
    font-size:16px;
    font-weight:500;
}


/* LAPTOPS */

@media(max-width:1200px){

    nav{
        padding:14px 30px;
        gap:15px;
    }


    nav ul{
        gap:15px;
    }


    nav a{
        font-size:15px;
    }


    .logo img{
        height:50px;
    }


    .logo span{
        font-size:22px;
    }

}


/* TABLETS - IPAD AIR / IPAD MINI */

@media(max-width:900px){

    nav{
        padding:12px 20px;
    }


    .logo img{
        height:45px;
    }


    .logo span{
        font-size:20px;
    }


    nav ul{
        gap:12px;
    }


    nav a{
        font-size:15px;
    }

}


/* PHONES */

@media(max-width:600px){

    nav{
        padding:10px 12px;
        gap:10px;
    }


    .logo img{
        height:38px;
    }


    .logo span{
        font-size:18px;
    }


    nav ul{
        gap:8px 12px;
        flex-wrap:wrap;
        justify-content:left;
    }


    nav a{
        font-size:14px;
    }

}


/* VERY SMALL PHONES - iPhone SE */

@media(max-width:390px){

    nav{
        gap:8px;
    }


    nav ul{
        gap:6px 10px;
    }


    nav a{
        font-size:13px;
    }

}


/* ========================================
   FOOTER SOCIAL ICONS
======================================== */

footer .social-links {

    display:flex;
    justify-content:center;
    align-items:center;
    gap:30px;
    margin:25px 0;

}


footer .social-links a {

    color:var(--white);
    text-decoration:none;

}


footer .social-links i {

    font-size:38px;
    color:var(--white);
    transition:0.3s ease;

}


footer .social-links a:hover i {

    color:var(--sage);
    transform:translateY(-3px);

}
/* ========================================
   SOCIAL LINKS
   LinkedIn + ORCID icons
======================================== */

.social-links a,
.social-links a:visited {

    color:var(--white);
    text-decoration:none;

}


.social-links i {

    color:var(--white);

}


.social-links a:hover,
.social-links a:hover i {

    color:var(--sage);

}

/* ========================================
   SOCIAL ICON SIZE + SPACING
======================================== */

.social-links {

    display:flex;
    align-items:center;
    gap:25px;

}


.social-links i {

    font-size:34px;
    color:var(--white);
    transition:0.3s ease;

}


.social-links a:hover i {

    color:var(--sage);
    transform:translateY(-3px);

}

