/* =========================================
   FONT IMPORTS
========================================= */

@font-face {
    font-family: "Playfair Display";
    src: url("/assets/fonts/playfair-display-regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Playfair Display";
    src: url("/assets/fonts/playfair-display-italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "Libre Franklin";
    src: url("/assets/fonts/libre-franklin-regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Libre Franklin";
    src: url("/assets/fonts/libre-franklin-italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
}



/* =========================================
   ROOT VARIABLES / BRAND COLORS
========================================= */

:root {

    /* Fonts */
    --font-heading: "Playfair Display", serif;
    --font-body: "Libre Franklin", sans-serif;


    /* Brand Colors */
    --green: #2F5E4E;
    --black: #1F1F1F;
    --gold: #C2A14D;
    --white: #F8F6F2;
    --gray: #858585;


    /* Light Mode */
    --background: #F8F6F2;
    --text: #1F1F1F;

    --panel-bg: rgba(255,255,255,0.75);
    --border-color: rgba(0,0,0,0.1);

    --link-color: var(--green);


    /* Ridge */
    --ridge-color: #858585;

}



/* =========================================
   DARK MODE VARIABLES
========================================= */

.dark-mode {

    --background: #111111;
    --text: #F8F6F2;

    --panel-bg: rgba(30,30,30,0.75);
    --border-color: rgba(255,255,255,0.15);

    --link-color: var(--gold);


    /* Ridge */
    --ridge-color: #F8F6F2;

}


.dark-mode .nav-cta {

    background-color: var(--green);
    color: var(--white);

}



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

body {

    margin:0;
    padding:0;

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

    color:var(--text);
    background-color:var(--background);

    line-height:1.6;

    min-height:100vh;

    transition:
        background-color .3s ease,
        color .3s ease;

}



img {

    max-width:100%;
    height:auto;
    display:block;

}



/* =========================================
   LINKS
========================================= */

a {

    color:var(--link-color);

    text-decoration:none;

    transition:color .3s ease;

}


a:hover {

    opacity:.5;

}



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

   ALL RIDGE SVGs

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

.ridge {

    fill: var(--ridge-color);

}

/* =========================================
   RIDGE SVG
========================================= */

.hero-ridge {
    color: var(--ridge-color);
    display: flex;
    justify-content: center;
}

.hero-ridge svg {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
}

.hero-ridge .ridge {
    fill: var(--ridge-color);
}



@media(max-width:768px){

    .logo svg {

        width:130px;

    }

}



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

   ACCENT RIDGE DIVIDERS

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

.section-divider {

    display: flex;

    justify-content: center;

    margin: 3rem auto;

}

.section-divider svg {

    width: 300px;

    height: auto;

    display: block;

    opacity: 0.8;

}


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

.site-header {

    padding:1rem 0;

}



.nav-container {
    display:flex;
    align-items:center;
    justify-content: space-between;

    width:min(90%,1400px);
    margin:0 auto;

    padding: 0 1.25rem;

    background:var(--panel-bg);
    border:1px solid var(--border-color);
    border-radius:8px;

    backdrop-filter:blur(10px);

}



.main-nav {

    display:flex;
    align-items:center;
    justify-content: flex-end;
    gap: 0.5rem;

}



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

.nav-cta {

    display:inline-block;

    background-color:var(--gold);
    color:var(--black);

    padding:.25rem .5rem;

    border-radius:4px;

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

    transition:opacity .3s ease;

}


.nav-cta:hover {

    opacity:.5;

}



/* =========================================
   THEME TOGGLE
========================================= */

.theme-toggle {

    position:fixed;

    bottom:25px;

    left:25px;

    z-index:1000;

    cursor:pointer;

}


.toggle-track {

    width:53px;

    height:34px;

    border-radius:50px;

    background:var(--green);

    backdrop-filter:blur(10px);

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 8px;

    position:relative;

}



.icon {

    font-size:16px;

    z-index:2;

}



.toggle-thumb {

    position:absolute;

    width:28px;

    height:28px;

    background:white;

    opacity:.75;

    border-radius:50%;

    left:3px;

    top:3px;

    transition:transform .3s ease;

}


.dark-mode .toggle-thumb {

    transform:translateX(34px);

}



/* =========================================
   LISTS
========================================= */

ul {

    margin:0;

    padding-left:1.5rem;

    color:var(--black);

}


.dark-mode ul {

    color:var(--gray);

}



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

h1 {
    color:var(--green);
}


h2 {
    color:var(--green);
}


h3 {
    color:var(--gold);
}

body.dark-mode h1 {
    color: var(--gold);
}

body.dark-mode h2 {
    color: var(--gold);
}

body.dark-mode h3 {
    color: var(--green);
}


p {

    color:var(--black);

}


.dark-mode p {

    color:var(--gray);

}




/* =========================================
   SECTION DIVIDERS
========================================= */

.section-divider img {

    width:100%;

    max-width:900px;

    margin:0 auto;

    opacity:.8;

}

.section-divider {
    margin: 0.5rem auto;
    display: flex;
    justify-content: center;
}

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

.logo {
    display: block;
}

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

@media (max-width: 768px) {

    .logo img {
        width: 130px;
    }

}

/* =========================================
   HERO CTA BUTTONS
========================================= */

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}


.cta-primary,
.cta-secondary {
    display: inline-block;

    padding: 0.75rem 1.5rem;

    border-radius: 6px;

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

    transition: all 0.3s ease;
}


/* Primary Button */

.cta-primary {
    background-color: var(--gold);
    color: var(--black);
}


.cta-primary:hover {
    opacity: 0.5;
}


/* Secondary Button */

.cta-secondary {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
}


.cta-secondary:hover {
    opacity: 0.5;
}


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

   HERO CTA BUTTONS - DARK MODE

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

body.dark-mode .cta-primary {

    background-color: var(--green);

    color: var(--white);

}

body.dark-mode .cta-secondary {

    border-color: var(--green);

    color: var(--green);

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

.site-footer {
    color: var(--text);
    padding: 2rem 0;
}

.footer-container {
    width: min(90%, 1400px);
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.site-footer p {
    color: var(--text);
}

body.dark-mode .site-footer p {
    color: var(--gray);
}

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

   FOOTER SOCIAL ICONS

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

.footer-socials {

    display: flex;

    flex-direction: row;

    justify-content: flex-end;

    align-items: center;

    gap: 1rem;

}

.social-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--green);

    transition: transform 0.3s ease,

                color 0.3s ease;

}

.social-icon svg {

    width: 32px;

    height: 32px;

    fill: currentColor;

}

.social-icon:hover {

    color: var(--gold);

    transform: translateY(-3px);

}

/* Dark Mode */

body.dark-mode .social-icon {

    color: var(--white);

}

body.dark-mode .social-icon:hover {

    color: var(--gold);

}

/* =========================================
   CONTENT CONTAINERS
========================================= */

main {
    width: min(90%, 1200px);
    margin: 0 auto;
}

.h2-mid {
    text-align: center;
}

section {
    padding: 4rem 0;
}


section p,
section ul,
section h1,
section h2,
section h3 {
    max-width: 850px;
}


/* Center hero content */
.home-hero {
    text-align: center;
}


.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}


/* Paragraph spacing */
p {
    margin-bottom: 1.5rem;
}


/* Headings spacing */
h1,
h2,
h3 {
    margin-top: 0;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}


@media (max-width: 500px) {

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons a {
        width: fit-content;
    }

}

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

@media (max-width: 768px) {

    .nav-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }


    .logo {
        margin-bottom: 1rem;
    }


    .main-nav {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }


    .main-nav a {
        display: block;
    }


    .nav-cta {
        margin-top: 0.5rem;
    }

}

.menu-toggle {
    display:none;
}

@media (max-width: 768px) {

    .menu-toggle {
        display:block;
    }

    .main-nav {
        display:none;
        flex-direction:column;
    }

    .main-nav.active {
        display:flex;
    }

}

.main-nav a:not(:last-child)::after {
    content:"|";
    margin-left:.5rem;
    color:var(--gray);
}

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

.site-footer {

    padding: 3rem 0 1rem;

    background: var(--panel-bg);

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

}


.footer-container {

    width: min(90%, 1200px);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}


.footer-links {
    text-align: center;
}



.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem;
}


.footer-nav a:not(:last-child)::after {

    content: "|";

    margin-left: .5rem;

    color: var(--gray);

}


.footer-socials {

    display: flex;

    gap: 1rem;

    align-items: center;

}


.footer-socials svg {

    width: 32px;

    height: 32px;

    fill: var(--link-color);

    transition: opacity .3s ease;

}


.footer-socials svg:hover {

    opacity: .5;

}


.footer-bottom {
    text-align: center;
}


.footer-bottom p {

    color: var(--text);

}

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

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

section {

    padding: 1.5rem 0;

}

/* =========================================
   SECTION BUTTON ALIGNMENT
========================================= */

.section-button {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}



/* =========================================
   PORTFOLIO CAROUSEL
========================================= */

.project-carousel {
    display: flex;
    flex-direction: row;
    gap: 2rem;

    overflow-x: auto;
    scroll-behavior: smooth;

    padding: 2rem 1rem;

    justify-content: flex-start;
}


.project-card {
    flex: 0 0 320px;

    background: var(--panel-bg);

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

    border-radius: 12px;

    backdrop-filter: blur(10px);

    padding: 1rem;

    transition: transform .3s ease;
}


.project-card:hover {
    transform: translateY(-8px);
}


.main-nav.open {
    display: flex;
}
@media (max-width: 768px) {

    .hamburger {
        display: block;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
    }

}

@media (max-width: 768px) {

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .main-nav.open {
        display: flex;
    }

}

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

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text);
}


@media (max-width: 768px) {

    .hamburger {
        display: block;
    }

}

@media (max-width: 768px) {

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .main-nav.open {
        display: flex;
    }

}

@media (max-width: 768px) {

    .main-nav a:not(:last-child)::after {
        display: none;
    }

}

/* =========================================
   ABOUT HERO IMAGE
========================================= */

.about-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}


.about-hero-image img {

    width: 100%;
    max-width: 400px;

    border-radius: 8px;

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

    box-shadow: 0 10px 30px rgba(0,0,0,0.15);

}

.about-hero-image {
    position: relative;
    padding: 1rem;
}


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

.about-hero {

    display: flex;

    align-items: center;

    gap: 3rem;

    width: min(90%, 1200px);

    margin: 3rem auto;

}


.about-hero-image {

    flex: 1;

    display: flex;

    justify-content: center;

}


.about-hero-image img {

    width: 100%;

    max-width: 400px;

    border-radius: 12px;

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

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

}


.about-hero-content {

    flex: 1;

}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
}

.price {
    color: var(--green);
}

body.dark-mode .price {
    color: var(--gold);
}

.card-link {
    color: var(--green);
}

.portfolio-carousel{
    position:relative;
    display:flex;
    align-items:center;
    gap:1rem;
}

.carousel-container{
    overflow:hidden;
    width:100%;
}

.project-grid{
    display:flex;
    gap:2rem;
    transition:transform .45s ease;
}

.project-card{
    min-width:100%;
    flex:0 0 100%;
}

/* Two cards on tablets */
@media (min-width:768px){
    .project-card{
        min-width:calc(50% - 1rem);
        flex:0 0 calc(50% - 1rem);
    }
}

/* Three cards on desktop */
@media (min-width:1200px){
    .project-card{
        min-width:calc(33.333% - 1.33rem);
        flex:0 0 calc(33.333% - 1.33rem);
    }
}

.dark-mode .card-link {
    color: #c2a14d;
}
.dark-mode .card-link:hover {
    color: #a6a26a;
}

.big {
    font-family: "Playfair Display", serif;
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 1;
    text-align: left;
    margin-bottom: 1.5rem;
}

.dark-mode .big {
    color: var(--gold);
}

.contact-link {
    color:#111111
}
.dark-mode .contact-link {
    color: #F8F6F2;
}

.contact-socials {
    display: flex;
    gap: 1.5rem;
    align-items: left;
    justify-content: left;
}

.contact-socials a {
    color: #F8F6F2;
    text-decoration: none;
    transition: color .3s ease;
}

.contact-socials a:hover {
    color: #c2a14d;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-top: 1rem;
    margin-bottom: .35rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .8rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    text-align: left;

    border: 1px solid var(--green);
    border-radius: 8px;

    background: var(--background);
    color: var(--text);

    box-sizing: border-box;
}

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

.contact-form button {
    margin-top: 1.5rem;
    width: fit-content;
    padding: .85rem 2rem;
}

.contact-form button {
    background-color: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: .85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .3s ease, transform .2s ease;
}

.contact-form button:hover {
    background-color: #b8922f; /* slightly darker gold */
    transform: translateY(-2px);
}

body.dark-mode .contact-form button {
    background-color: var(--green);
    color: var(--white);
}

body.dark-mode .contact-form button:hover {
    background-color: #23493b; /* darker green */
}

.project-preview {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}