/* 
 *  CUSTOM FONTS SETUP
 *  IMPORTANT: Drop your actual font files into the 'fonts' folder, 
 *  and update the url paths here to match the filename exactly.
 */
@font-face {
    font-family: 'Wistania Script';
    src: url('../fonts/Wistania.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Esmeralda Groterk';
    src: url('../fonts/EsmeraldaGroterk.otf') format('opentype'),
         url('../fonts/EsmeraldaGroterk.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* CSS Variables containing your chosen custom colors */
:root {
    --primary-1: #8a9281; /* Primary warm earthy tone */
    --primary-2: #caa68c; /* Secondary earthy brown */
    --secondary-1: #004329; /* Dark contrast green */
    --secondary-2: #b28069; /* Warm accent */
    --text-dark: #004329; /* Dark contrast green */
    --text-light: #ffffff;
    --bg-light: #fefdfb; /* Extremely soft off-white */
    --bg-alt: #f4f5f2; /* Soft tint of primary-1 */
}

/* Base resets & typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* Typography styles matching your requested fonts */
.fay {
    font-family: 'Wistania Script', 'Great Vibes', cursive;
    font-size: 3.4em; /* Made significantly larger per user request to stand out */
    color: var(--secondary-1); /* #004329 */
    line-height: 0.8; /* Prevents the massive script font from awkwardly expanding navbar height */
}

.furnishings {
    font-family: 'Esmeralda Groterk', sans-serif; /* Uses your provided font! */
    font-size: 1.2em;
    color: var(--secondary-1); /* #004329 */
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: var(--secondary-1);
}

h2 {
    font-size: 3.5rem; /* Larger to let the beautiful premium font breathe */
    font-family: 'Esmeralda Groterk', sans-serif;
    text-align: center;
    font-weight: normal;
}

/* Navigation Menu */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(254, 253, 251, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0; /* Removed gap so Fay and Furnishings link beautifully together */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-1); /* #004329 */
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-2); /* b28069 */
}

/* Hero Landing Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-light);
    padding-top: 80px; 
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../images/IMG_5229.jpg');
    background-repeat: repeat;
    background-size: auto;
    background-position: center;
    /* Extremely subtle opacity so the texture exists beautifully but doesn't fight the logo */
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content {
    position: relative;
    z-index: 10; /* Keeps logo in front of flowers */
}

.hero-logo {
    max-width: 90%;
    width: 800px;
    margin-bottom: 20px;
    /* Enhanced shadow to pop the logo dramatically forward off the background */
    filter: drop-shadow(0px 20px 40px rgba(0, 0, 0, 0.25));
}

.hero-subtitle {
    font-family: 'Wistania Script', 'Great Vibes', cursive;
    font-size: 4rem;
    color: var(--secondary-1); /* #004329 */
    margin: 0 auto 35px auto;
    max-width: 900px;
    /* Glowing effect perfectly isolates the text from the texture behind it */
    text-shadow: 0 0 45px rgba(254, 253, 251, 1), 0 0 15px rgba(254, 253, 251, 1);
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--secondary-1); /* 004329 */
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px; /* Modern pill shape */
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-2); /* b28069 */
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Collections Gallery */
.gallery {
    padding: 100px 50px;
    background-color: var(--bg-alt);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    aspect-ratio: 4/3;
    background-color: var(--primary-2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: block; 
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 67, 41, 0.95), transparent);
    color: var(--text-light);
    text-align: center;
    transition: bottom 0.4s ease-in-out;
    font-family: 'Esmeralda Groterk', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
}

.gallery-item:hover .overlay {
    bottom: 0;
}

/* Services Section */
.services {
    padding: 140px 50px;
    background-color: var(--bg-alt);
    font-family: 'Esmeralda Groterk', sans-serif;
    position: relative;
    background-image: url('../images/elegant_floral.png');
    background-repeat: no-repeat;
    background-position: -50px top; /* Peeking out cleanly from the left/top */
    background-size: 600px auto;
    background-blend-mode: multiply; /* Blends perfectly perfectly onto the background */
    opacity: 0.95;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0 auto;
}

.service-item {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #eaeaea;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.service-item h3 {
    font-family: 'Esmeralda Groterk', sans-serif;
    color: var(--secondary-1);
    font-size: 1.3rem;
    margin-bottom: 0;
}

/* About Us & Gallery Split Layout */
.about-gallery-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 100px 50px;
    background-color: var(--bg-light);
    gap: 80px;
    max-width: 1600px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
    text-align: left;
    font-family: 'Esmeralda Groterk', sans-serif;
    font-size: 1.3rem;
    line-height: 1.8;
}

/* Explicitly force the paragraphs to use the premium font to override any persistent browser defaults */
.about-text p {
    font-family: 'Esmeralda Groterk', sans-serif !important;
}

.about-text h2 {
    text-align: left;
}

.split-gallery {
    flex: 2;
    min-width: 400px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 0;
}

/* Contact Us Section */
.contact {
    padding: 100px 50px;
    background-color: var(--bg-alt);
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 18px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-1); /* 004329 */
}

/* Footer Element */
footer {
    text-align: center;
    padding: 40px;
    background-color: var(--secondary-1);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-links a {
    color: var(--text-light);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--secondary-2);
    transform: scale(1.1);
}

/* Micro-animations triggered by JavaScript as you scroll */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
