/* ===== CSS Variables and Color Palette ===== */
:root {
    --navy: #010D28;
    --powder-blush: #DEA193;
    --honeydew: #E0EFDA;
    --light-gray: #D9D9D9;
    --dark-text: #010D28;
    --light-text: #E0EFDA;
    --font-viaoda: 'Viaoda Libre', serif;
    --font-lora: 'Lora', serif;
    --font-lato: 'Lato', sans-serif;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-lato);
    background-color: var(--navy);
    color: var(--light-text);
    overflow-x: hidden;
}

p {
    font-family: var(--font-lato);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 20px;
}

li {
    font-family: var(--font-lato);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 12px;
}

li::marker {
    color: var(--powder-blush);
}

h2 {
    font-family: var(--font-viaoda);
    font-size: 96px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -1.92px;
    margin-bottom: 32px;
}

h3 {
    font-family: var(--font-lora);
    font-size: 42px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 16px;
}

/* Styles the hyperlinks */
p a, li a {
    color: var(--powder-blush);
    text-decoration: none;
    border-bottom: 1px solid transparent; 
    transition: all 0.3s ease;
}

p a:hover, li a:hover {
    color: var(--powder-blush);
    border-bottom: 1px solid var(--powder-blush);
    opacity: 0.8;
}

.container h2:not(:first-child) {
    margin-top: 80px;
}

.navbar-header {
    background-color: var(--navy);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-custom {
    padding: 0 40px;
}

.navbar-brand {
    padding: 0;
    margin-right: 50px;
}

.navbar-brand img {
    height: auto;
    max-width: 100px;
}

.navbar-custom .nav-link {
    color: var(--light-text) !important;
    font-family: var(--font-lato);
    font-weight: 700;
    font-size: 24px;
    margin-left: 30px;
    transition: opacity 0.3s ease;
}

.navbar-custom .nav-link:hover {
    opacity: 0.8;
}

.contact-btn {
    border: 2px solid var(--light-text) !important;
    border-radius: 6px;
    padding: 12px 24px !important;
    margin-left: 30px;
    display: inline-block;
}

.contact-btn:hover {
    background-color: rgba(224, 239, 218, 0.1);
}

.navbar-toggler {
    color: var(--light-text) !important;
    border-color: var(--light-text) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23E0EFDA' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===== Hero Section ===== */
.hero {
    background-color: var(--navy);
    padding: 100px 40px 380px; 
    position: relative; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.hero-title-group {
    display: inline-block;
    text-align: left;
}

.hero h1 {
    font-family: var(--font-viaoda);
    font-size: 170px;
    text-align: left;
    color: var(--powder-blush);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -5.1px;
}

.hero .subtitle {
    font-family: var(--font-lato);
    font-size: 24px;
    font-style: italic;
    text-align: right;
    color: rgba(224, 239, 218, 0.9);
    margin-top: -36px;
    margin-bottom: 0; 
    margin-right: 0;
    align-self: unset;
}

.hero-flowers {
    width: 30%;
    min-width: 300px; 
    height: auto;
    
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%); 
    z-index: 5;
}

/* ===== Case Studies Section Homepage===== */
.projects {
    background-color: var(--powder-blush);
    border-radius: 50% 50% 0 0 / 15rem 15rem 0 0;
    padding: 260px 40px 220px;; 
    position: relative; /* I needed to add this in order to position child elements (mainly the flowers) absolutely */
}

.projects h2 {
    text-align: center;
    color: var(--dark-text);
    margin-top: 0; 
    margin-bottom: 60px;
}

.case-studies-container {
    display: flex;
    margin-top: 80px;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.case-card {
    background: transparent;
    position: relative;
    border-radius: 250px 250px 0 0;
    overflow: hidden;
    transition: transform 0.3s ease;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.case-card:hover {
    transform: translateY(-10px);
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--light-gray);
    border-radius: 250px 250px 0 0;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    background-color: var(--honeydew);
    padding: 40px 20px;
}

.card-title {
    line-height: 1;
    color: var(--dark-text);
    margin-bottom: 16px;
    letter-spacing: 0;
}

.card-text {
    color: var(--dark-text);
}

.projects-flowers {
    max-width: 100%;
    height: auto;
    margin-top: -130px;
    position: relative;
    z-index: 5;
}

/* ===== Testimonials Section Homepage===== */
.testimonials {
    background: linear-gradient(
        to bottom,
        var(--navy) 82%,
        var(--navy) 18%,
        var(--powder-blush) 15%,
        var(--powder-blush) 81%
    );
    padding: 10px 80px;
    text-align: center;
    position: relative;
}

.testimonials blockquote {
    font-family: var(--font-lora);
    font-size: 32px;
    font-weight: 500;
    font-style: italic;
    line-height: 1;
    color: var(--light-text);
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0;
}

.testimonial-author {
    font-family: var(--font-lato);
    font-size: 22px;
    font-weight: 500;
    line-height: 28px;
    color: var(--light-text);
    margin-bottom: 40px;
}

.testimonial-flowers {
    max-width: 100%;
    height: auto;
    margin-top: 40px;
}

/* ===== Column styling ===== */
.section-split {
    align-items: flex-start;
}

.about,
.contact {
    position: relative;
}

.about .container,
.contact .container {
    max-width: 1400px;
}

.about h2,
.contact h2 {
    margin: 0;
}

.about .section-title-col,
.contact .section-title-col {
    display: flex;
    align-items: flex-start;
}

.about .section-content-col,
.contact .section-content-col {
    padding-left: 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-title-col h2 {
    white-space: nowrap;
}

.section-content-col {
    padding-left: 15px;
}

/* ===== About Section ===== */
.about {
    background-color: var(--powder-blush);
    padding: 60px 50px 180px;
    text-align: left;
    overflow: hidden;
    border-radius: 0 0 50% 50% / 0 0 15rem 15rem;
}

.about h2 {
    color: var(--dark-text);
    margin-bottom: 0;
}

.about p {
    color: var(--dark-text);
    max-width: 900px;
}

.about p:last-of-type {
    margin-bottom: 0;
}

/* ===== Contact Section (All pages)===== */
.contact {
    background-color: var(--navy);
    padding: 100px 40px;
    text-align: left;
}

.contact h2 {
    color: var(--light-text);
    margin-bottom: 0;
}

.contact-name {
    font-family: var(--font-lato);
    font-size: 22px;
    font-weight: 500;
    color: var(--light-text);
    line-height: 28px;
    margin-bottom: 10px;
}

.contact-name strong {
    font-weight: 900;
}

.contact p {
    color: var(--light-text);
    text-align: left;
    margin-bottom: 15px;
}

.contact-phone,
.contact-email {
    margin-bottom: 25px;
}

.contact a {
    color: var(--light-text);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact a:hover {
    opacity: 0.8;
}

.social-icons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    margin-top: 40px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: var(--light-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.social-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* ===== Case Study Detail Pages ===== */
.case-study-flowers {
    max-width: 100%;
    height: auto;
    display: block;
    margin: -50px auto 0;
    transform: translateY(50%);
    position: relative;
    z-index: 5;
}

/* ===== Footer (All Pages)===== */
.footer {
    background-color: var(--powder-blush);
    padding: 40px;
    text-align: center;
}

.footer p {
    font-family: var(--font-lato);
    font-size: 20px;
    font-weight: 400;
    font-style: italic;
    line-height: 28px;
    color: var(--dark-text);
    margin: 0;
}

/* ===== Tablet Design ===== */
/* Added max-width due to background curve and accent flowers scaling issues */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar-custom {
        padding: 0 24px;
    }

    .navbar-brand {
        margin-right: 24px;
    }

    .navbar-custom .nav-link {
        font-size: 20px;
        margin-left: 18px;
    }

    .contact-btn {
        display: none;
    }

    .hero {
        padding: 90px 30px 220px;
        min-height: auto;
        background-color: var(--navy);
    }

    .hero-title-group {
        display: block;
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 120px;
        letter-spacing: -3px;
        text-align: center;
    }

    .hero .subtitle {
        font-size: 20px;
        text-align: center;
        margin-top: 20px;
        margin-bottom: 0;
        margin-right: 0;
    }

    .hero-flowers {
        width: 45%;
    }

    .projects {
        padding: 200px 30px 140px; 
    }

    .projects h2 {
        font-size: 72px;
        margin-top: 0;
        margin-bottom: 40px;
        letter-spacing: -1.2px;
    }

    .case-studies-container {
        gap: 20px;
        margin-top: 50px;
        justify-content: center;
    }

    .case-card {
        min-width: 240px;
        max-width: 300px;
    }

    .card-body {
        padding: 28px 18px;
    }

    .card-title {
        font-size: 30px;
    }

    .card-text {
        font-size: 18px;
        line-height: 24px;
    }

    .projects-flowers {
        margin-top: -90px;
    }

    .testimonials {
        padding: 40px 40px;
    }

    .testimonials blockquote {
        font-size: 26px;
        line-height: 1.2;
    }

    .testimonial-author {
        font-size: 18px;
    }

    .testimonial-flowers {
        margin-top: 30px;
    }

    .about {
        padding: 0px 30px 140px;
    }
    
    .contact {
        padding: 80px 30px;
    }

    .about h2,
    .contact h2 {
        font-size: 72px;
        letter-spacing: -1.2px;
        margin-bottom: 20px;
    }

    .about p,
    .contact p,
    .contact-name {
        font-size: 18px;
        line-height: 24px;
    }
    
    .case-study-flowers {
        width: min(60vw, 400px);
        margin: -30px auto 0;
    }

    .social-icons {
        gap: 28px;
        margin-top: 30px;
        justify-content: flex-start;
    }

    .footer {
        padding: 30px 20px;
    }

    .footer p {
        font-size: 18px;
        line-height: 24px;
    }
}

/* ===== Mobile Design ===== */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px 200px;
    }

    .testimonial-flowers {
        margin-bottom: -30px;
        position: relative;
    }

    .hero-title-group {
        display: block;
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 48px;
        letter-spacing: -1.44px;
        text-align: center;
    }

    .hero .subtitle {
        font-size: 16px;
        text-align: center;
        margin-top: -10px;
        margin-bottom: 0;
        margin-right: 0;
    }

    .hero-flowers {
        width: min(82vw, 340px);
    }

    .projects {
    padding: 200px 20px 60px;
}

    .contact {
        padding: 32px 20px 60px;
    }

    .about {
        padding: 0px 20px 120px;
    }

    .projects h2,
    .about h2,
    .contact h2 {
        font-size: 36px;
        letter-spacing: -0.72px;
        margin-bottom: 30px;

    }

    .about p,
    .contact p,
    .contact-name {
        font-size: 16px;
        line-height: 1.5;
    }

    .case-studies-container {
        gap: 20px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-text {
        font-size: 14px;
    }

    .testimonials {
        padding: 60px 20px;
    }

    .testimonials blockquote {
        font-size: 18px;
    }

    .navbar-custom {
        padding: 0 15px;
    }

    .navbar-custom .nav-link {
        font-size: 16px;
        margin-left: 15px;
    }

    .contact-btn {
        display: none;
    }
    
    .case-study-flowers {
        width: min(80vw, 280px);
        margin: -20px auto 0;

    }
}