/* ===========================
   FONTS
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&display=swap');

/* ===========================
   COLOR TOKENS
   =========================== */
:root {
    --dufay-blue: #192238;
    --dufay-white: #e8e8e8;
}

/* =============================== */
/* HERO TEXT FADE-UP ON PAGE LOAD  */
/* =============================== */

.fade-up {
    opacity: 0 !important;
    transform: translateY(10px);
    transition: opacity 2s ease-out, transform 3s ease-out;
}


.fade-up.visible {
    opacity: 1 !important;
    transform: translateY(0);
}

.slow-fade {
    transition: opacity 5s, transform 3s !important;
}


.byline {
    display: inline-block;
}

/* ===========================
   GLOBAL
   =========================== */
html,
body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: var(--dufay-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    font-size: 12pt;
    color: var(--dufay-blue);
}

h1,
h2,
h3 {
    margin: 0;
    padding: 0;
}

p,
ol,
ul {
    margin-top: 0;
}

ol,
ul {
    padding: 0;
    list-style: none;
}

p {
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.container {
    overflow: hidden;
    margin: 0 auto;
    width: 1200px;
}

/* ===========================
   NAVBAR
   =========================== */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(25, 34, 56, 0.85); /* Dufay Blue w/ transparency */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 0.5em 0;
    z-index: 9999;
}

.nav-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 50px;
    width: auto;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-right ul {
    display: flex;
    gap: 2em;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-right ul li a {
    color: var(--dufay-white);
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-size: 0.8em;
    font-weight: 400;
    letter-spacing: 0.12em;
    line-height: 1;
    display: flex;
    align-items: center;
}

.nav-right ul li a:hover,
.nav-right ul li.active a {
    color: #ffffff;
}

/* ===========================
   HERO / HEADER (HOMEPAGE)
   =========================== */

#header-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('Images/homepage_banner.png') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 0;
}

#header-wrapper .container {
    width: 100%;
    max-width: 1100px;
    padding: 0 2rem;
}

/* Hero content */
#banner {
    text-align: center;
    margin: 0 auto;
    transform: none;
}

/* Main quote */
#banner .title h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 4em;
    line-height: 1.02; /* tight & luxe */
    letter-spacing: -0.3px;
    margin-bottom: 0.4em;
}

/* Subheading */
#banner .title .byline {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.4em;
    line-height: 1.3;
    max-width: 750px;
    margin: 0.8em auto 1.2em auto;
    opacity: 0.9;
}

/* Hero text color */
#banner,
#banner .title h2,
#banner .title .byline,
#banner p,
#banner a {
    color: var(--dufay-white);
}

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

.button {
    display: inline-block;
    margin-top: 5em;
    padding: 1.2em 3em;
    border-radius: 8px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.85em;
    letter-spacing: 0.12em;
    color: var(--dufay-white);
    background: rgba(25, 34, 56, 0.45); /* semi-transparent Dufay blue */
    border: 0px solid rgba(232, 232, 232, 0.65);
    backdrop-filter: blur(10px); /* frosted glass effect */
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.25s ease, transform 0.25s ease;
}

.button:hover {
    background: rgba(25, 34, 56, 0.8);
    transform: translateY(-2px) scale(1.03);
}

.button-secondary {
    display: inline-block;
    padding: 0.9em 2.6em;
    border-radius: 8px;
    background: var(--dufay-blue); /* SOLID BUTTON */
    color: var(--dufay-white);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.78em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.button-secondary:hover {
    background: var(--dufay-blue);
    transform: translateY(-2px);
}

/* Ensure all CTA links in hero/welcome use button styling */
#banner a.button,
#welcome a.button {
    text-decoration: none;
}

/* UNIVERSAL DUFAY BUTTON — reuse everywhere */
.dufay-btn {
    display: inline-block;
    padding: 0.9rem 2.3rem;
    background-color: #192238; /* Dufay blue */
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.dufay-btn:hover {
    background-color: #0f1524; /* slightly deeper blue */
    transform: translateY(-3px);
}

#services-cta {
    text-align: center;
    padding: 1.5rem 0 4rem;
    background: #e8e8e8; /* matches services page background */
}

/* ===========================
   WELCOME / OUR PHILOSOPHY (HOMEPAGE)
   =========================== */

#welcome {
    background: #e5e6e3; /* soft warm light grey */
    padding: 6em 0;
    color: var(--dufay-blue);
}

.welcome-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

/* Left column: text */
.welcome-text {
    flex: 0 0 52%;
}

.welcome-text h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 4.2em;
    line-height: 0.95;
    margin: 0 0 0.7em 0;
}

.welcome-text p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.98em;
    line-height: 1.7;
    margin: 0 0 1.3em 0;
    color: rgba(25, 34, 56, 0.9);
}

/* Right column: image */
.welcome-image {
    flex: 0 0 48%;
    display: flex;
    justify-content: flex-end;
}

.welcome-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ============================= */
/* SERVICES PAGE                 */
/* ============================= */

#services-hero {
    padding: 8rem 0 4rem;
    background: #e8e8e8; /* Dufay white */
    color: var(--dufay-blue);
}

.services-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
}

.services-hero-heading h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5.2rem;
    line-height: 1.05;
    font-weight: 400;
    margin: 0;
    color: #192238;
}

.services-hero-copy {
    max-width: 550px;
    align-self: center;
}

.services-hero-copy p {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    line-height: 1.65;
    max-width: 600px;
    margin: 0;
    color: #192238;
}

/* GRID */

#services-grid {
    padding: 0 0 2.5rem;
    background: #e8e8e8;
}

.services-grid-inner {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0 3rem;
}

/* CARD */

.service-card {
    background: #efefef;
    border-radius: 14px;
    padding: 1.5rem 1.75rem 1.8rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
    transition: background-color 0.4s ease, transform 0.35s ease,
        box-shadow 0.35s ease;
}

.service-card:hover {
    background: #ffffff; /* fades to pure white */
    transform: translateY(-8px) scale(1.025);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

/* IMAGE WRAPPER (MASK) */
.service-card-img {
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    transition: transform 0.45s ease;
}

.service-card:hover .service-card-img {
    transform: scale(1.045);
}

/* IMAGE INSIDE THE MASK */
.service-image {
    width: 100%;
    padding-top: 65%;
    background-size: cover;
    background-position: center;
    transition: transform 0.55s ease;
}

.service-card:hover .service-image {
    transform: scale(1);
}

/* TEXT INSIDE CARD */

.service-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 1.7rem;
    line-height: 1.15;
    margin: 0 0 0.6rem 0;
    color: var(--dufay-blue);
}

.service-card p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    line-height: 1.6;
    margin: 0;
    color: var(--dufay-blue);
    opacity: 0.9;
}

/* IMAGE SOURCES */

.service-image-1 {
    background-image: url('Images/service_1.png');
}

.service-image-2 {
    background-image: url('Images/service_2.png');
}

.service-image-3 {
    background-image: url('Images/service_3.png');
}

#services-subheading {
    background: #e8e8e8;
    padding: 3rem 0 6rem;
    text-align: center;
}

#services-subheading p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    line-height: 1.15;
    color: #192238;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ===================================== */
/* ABOUT PAGE — ARCHITECTURAL MONOGRAPH  */
/* ===================================== */

/* Shared inner width */
.about-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* ---------- HERO SECTION ---------- */

#about-hero {
    background: #e8e8e8;
    color: var(--dufay-blue);
    margin-top: 4.5rem;
    padding: 6.5rem 0 4rem;
}

.about-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
}

#about-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5.2rem; /* match services hero */
    line-height: 1.05;
    font-weight: 400;
    margin: 0;
}

#about-hero .hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    line-height: 1.65;
    max-width: 550px;
    margin: 0;
    align-self: center;
}

/* ---------- PHILOSOPHY TEXT BLOCK ---------- */

#about-philosophy {
    background: #e8e8e8;
    padding: 0 0 3.5rem;
}

#about-philosophy p {
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    line-height: 1.8;
    margin: 0 0 1.4rem;
    color: rgba(25, 34, 56, 0.9);
}

/* ---------- VALUES GRID ---------- */

#about-values {
    background: #f3f3f3; /* slight contrast band */
    padding: 3.5rem 0 3.5rem;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.about-value h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 0.4rem;
    color: #192238;
}

.about-value p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
    color: rgba(25, 34, 56, 0.9);
}

/* ---------- QUOTE STRIP ---------- */

#about-quote {
    background: #e8e8e8;
    padding: 3rem 0 2rem;
    text-align: center;
}

#about-quote p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    line-height: 1.3;
    max-width: 780px;
    margin: 0 auto;
    color: #192238;
    opacity: 0.9;
}

/* ---------- FULLBLEED IMAGES ---------- */

.about-fullbleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 6rem;
}

.fullbleed-row {
    display: flex;
    width: 100%;
}

.fullbleed-row img {
    width: 50%;
    height: 80vh;
    object-fit: cover;
    display: block;
}

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

#about-cta {
    background: #e8e8e8;
    padding: 1.5rem 0 4rem;
    text-align: center;
}

#about-cta .dufay-btn {
    margin-top: 0.5rem;
}

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

#contact,
#contact-page {
    background: var(--dufay-white);
    padding: 7.5rem 0 3.5rem;   /* top clears navbar, bottom much tighter */
}

/* Two–column layout: image + text/form */
.contact-split {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 3rem;
}

/* Left side image */
.contact-image {
    flex: 1;
    min-height: 420px;
    background-image: url('Images/contact_1.jpeg');
    background-size: cover;
    background-position: 50% 60%; /* adjust focus point as needed */
    background-repeat: no-repeat;
    border-radius: 18px;
    overflow: hidden;
}

/* Right side copy + form */
.contact-right {
    flex: 1;
    padding-right: 0.5rem;
    align-self: center;
}

/* MAIN CONTACT HEADING – matches Services / About energy */
.contact-right h1,
.contact-title h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
	text-align: center;
	max-width: 480px;
    font-size: 4.2rem; /* same ballpark as “Our philosophy” */
    line-height: 1.02;
    letter-spacing: -0.5px;
    color: var(--dufay-blue);
    margin: 0 0 1rem;
}

/* Intro paragraph under the heading */
.contact-right p,
.contact-title p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(25, 34, 56, 0.9);
    max-width: 480px;
    margin: 0 0 2rem;
}

/* Centred title block variant (if ever used) */
.contact-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* Form styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 480px;
}

.contact-form input,
.contact-form textarea {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(25, 34, 56, 0.15);
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(25, 34, 56, 0.5);
    box-shadow: 0 0 0 1px rgba(25, 34, 56, 0.12);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* Submit button uses your universal DUFAY button */
.contact-form button {
    align-self: flex-start;
}

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

#copyright {
    background: #192238;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.4rem 0;
}

#copyright .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

#copyright p {
    margin: 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===================================== */
/* ===================================== */
/* MOBILE LAYOUT & TYPOGRAPHY (≤ 768px)  */
/* ===================================== */
@media (max-width: 768px) {

    /* --- Global --- */
    html, body {
        overflow-x: hidden;
    }

    body {
        font-size: 0.95rem;
        padding-top: 70px;
    }

    h1, h2, h3, h4 {
        line-height: 1.15;
        letter-spacing: -0.2px;
    }

    p {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    /* Shared container behaviour */
    .container,
    .welcome-inner,
    .services-hero-inner,
    .about-hero-inner,
    .about-inner,
    .services-grid-inner,
    .contact-split {
        max-width: 100%;
        width: 100%;
        padding: 0 1.5rem;
        box-sizing: border-box;
    }
    
/* NAVBAR */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--dufay-blue);     /* solid blue, no glass */
    padding: 0.5em 0;
    z-index: 9999;
}

    .nav-container {
        flex-direction: column;
        gap: 0.6rem;
    }

    .nav-right ul {
        gap: 1.2rem;
    }
    
    /* --- HERO / HEADER --- */
    
    
    #header-wrapper {
      justify-content: flex-start;
      height: auto;
        min-height: calc(100vh - 70px);
        display: flex;
        background-position: center top;
        text-align: center;
        align-items: center;
        padding-top: 0rem;
    }

    #header-wrapper .container {
      max-width: 100%;
        padding: 0;
    }

    #banner {
        transform: none;
        margin: 0 auto;
        text-align: center;
    }

    #banner .title h2 {
        font-size: 3.3rem;
        line-height: 1.12;
        margin-bottom: 1.3rem;
        margin-top: auto;
    }

    #banner .title .byline {
        font-size: 0.75rem;
        max-width: 80%;
        margin: auto;
    }

    .button {
        font-size: 0.8rem;
        padding: 0.8em 2.1em;
        margin-top: 2rem;
    }

    /* --- WELCOME / OUR PHILOSOPHY SECTION --- */
    #welcome {
        padding: 4rem 0 3.5rem;
    }

    .welcome-inner {
        flex-direction: column;
        gap: 2.5rem;
        padding: 0 1.5rem;
    }

    .welcome-text {
        flex: 1;
    }

    .welcome-text h2 {
        font-size: 2.2rem;
        line-height: 1.08;
        margin-bottom: 1.2rem;
    }

    .welcome-text p {
        font-size: 0.92rem;
    }

    .welcome-image {
        flex: 1;
        justify-content: center;
    }

    .welcome-image img {
        width: 100%;
        margin-top: 2rem;
        border-radius: 12px;
    }

    /* --- SERVICES PAGE --- */
    #services-hero {
        padding: 5rem 0 2.5rem;
    }

    .services-hero-inner {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .services-hero-heading h1 {
        font-size: 2.3rem;
        line-height: 1.1;
        margin-bottom: 0.6rem;
        text-align: center;
    }

    .services-hero-copy {
        max-width: 100%;
    }

    .services-hero-copy p {
        font-size: 0.92rem;
    }

    #services-grid {
        padding: 0 0 2.5rem;
    }

    .services-grid-inner {
        grid-template-columns: 1fr;  /* 1 card per row */
        gap: 1.4rem;
        padding: 0 1.5rem;
    }

    .service-card {
        padding: 1.3rem 1.3rem 1.5rem;
        transform: scale(0.97);
        transition:
            transform 0.4s ease,
            box-shadow 0.4s ease,
            background-color 0.4s ease;
    }
    
    .service-card.in-view {
        transform: translateY(-4px) scale(1.02);
        background-color: #ffffff;
        box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    }
    
    .service-card:hover {
        transform: translateY(-4px) scale(1.02);
    }

    .service-card h3 {
        font-size: 1.4rem;
        margin-bottom: 0.7rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    #services-subheading {
        padding: 1rem 1.5rem 3rem;
    }

    #services-subheading p {
        font-size: 1.3rem;
    }

    /* --- ABOUT PAGE --- */

    #about-hero {
        padding: 0.5rem 0 2.5rem;
    }

    .about-hero-inner {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    #about-hero h1 {
        font-size: 2.3rem;
        line-height: 1.1;
        margin-bottom: 0.6rem;
        text-align: center;
    }

    #about-hero .hero-subtitle {
        font-size: 0.92rem;
        max-width: 100%;
    }

    #about-philosophy {
        padding: 0 0 3rem;
    }

    #about-philosophy p {
        font-size: 0.92rem;
    }

    #about-values {
        padding: 3rem 0;
    }

    .about-values-grid {
        grid-template-columns: 1fr;  /* stack values */
        gap: 2rem;
    }

    .about-value h3 {
        font-size: 1.35rem;
    }

    .about-value p {
        font-size: 0.9rem;
    }

    /* full-bleed images */
    .about-fullbleed {
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        margin-bottom: 4rem;
    }

    .fullbleed-row {
        flex-direction: column;
    }

    .fullbleed-row img {
        width: 100%;
        height: 50vh;
        object-fit: cover;
    }

    #about-quote {
        padding: 2rem 0.5rem 1.5rem;
        max-width: 95%;
    }

    #about-quote p {
        font-size: 1.25rem;
        line-height: 1.3;
        max-width: 100%;
        margin: 0 auto;
    }

    #about-cta {
        padding: 2rem 1.5rem 4rem;
    }

    /* --- CONTACT PAGE --- */
    #contact,
    #contact-page {
        padding: 7rem 1.5rem 4rem;
    }

    .contact-split {
        flex-direction: column;
        gap: 2rem;
        padding: 0;
    }

    .contact-image {
        min-height: 260px;
        border-radius: 14px;
    }

    .contact-right {
        padding-right: 0;
    }

    .contact-right h1 {
        font-size: 2.2rem;
        margin-bottom: 0.9rem;
    }

    .contact-right p {
        font-size: 0.92rem;
        max-width: 100%;
    }

    .contact-form {
        max-width: 100%;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem;
        padding: 0.9rem 0.9rem;
    }

    .contact-form button,
    #send-button {
        font-size: 0.85rem;
        padding: 0.8rem 2.1rem;
    }

    /* --- FOOTER --- */
    #copyright {
        padding: 1rem 0;
    }

    #copyright .footer-inner {
        padding: 0 1.5rem;
    }

    #copyright p {
        font-size: 0.75rem;
        opacity: 0.85;
    }
}
