:root {
    --primary: #3e4a3e;     /* Deep sage green */
    --primary-light: #5a6b5a;
    --primary-dark: #2a332a;
    --accent: #8da48d;      /* Light sage */
    --gold: #d4af37;        /* Premium gold accent */
    --text-dark: #1a1f1a;
    --text-light: #4a554a;
    --bg-color: #f5f7f5;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html { scroll-behavior: smooth; }

body {
    margin: 0; padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex; flex-direction: column;
    overflow-x: hidden;
}

/* ---------------- ACCESSIBILITY ---------------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
    font-weight: bold;
    font-size: 1rem;
    z-index: 10000;
    transition: top 0.2s ease;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
}

/* Screen-reader only — visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    color: var(--primary);
    margin: 0; letter-spacing: 1px;
}

/* ---------------- DYNAMIC BACKGROUND ---------------- */
.background-layer {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(120deg, #f5f7f5 0%, #e2e8e2 50%, #f5f7f5 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.background-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=2000&auto=format&fit=crop');
    background-size: cover; background-position: center;
    filter: blur(8px) opacity(0.15); 
    z-index: -1;
}

/* ---------------- INTERSECTION OBSERVER ANIMATIONS ---------------- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-right.active { opacity: 1; transform: translateX(0); }

/* ---------------- NAVIGATION ---------------- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    z-index: 1000; display: flex; justify-content: space-between; align-items: center;
    padding: 15px 50px; box-sizing: border-box; transition: var(--transition);
}
.nav-logo { height: 45px; cursor: pointer; transition: var(--transition); }
.nav-logo:hover { transform: scale(1.05); }

.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a {
    text-decoration: none; color: var(--text-dark);
    font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px;
    position: relative; transition: var(--transition);
}
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background-color: var(--primary);
    transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white !important; padding: 12px 25px; border-radius: 30px;
    box-shadow: 0 4px 15px rgba(62,74,62,0.3);
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(62,74,62,0.4); }

/* Hamburger button — hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}
.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}
/* Animated X when open */
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-nav.open {
    display: flex;
    opacity: 1;
}
.mobile-nav a {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
}
.mobile-nav a:hover { color: var(--gold); transform: scale(1.05); }
.mobile-nav .nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white !important;
    padding: 16px 40px;
    border-radius: 30px;
}

main { padding-top: 90px; flex: 1; }

/* ---------------- BUTTONS ---------------- */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white !important; padding: 18px 40px; font-size: 1.1rem; font-weight: bold;
    border: none; border-radius: 30px; cursor: pointer;
    box-shadow: 0 10px 20px rgba(62, 74, 62, 0.2); transition: var(--transition);
    text-transform: uppercase; letter-spacing: 1px; text-decoration: none;
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(62, 74, 62, 0.35);
}

.btn-secondary {
    display: inline-block; background: transparent; color: var(--primary) !important;
    padding: 16px 38px; font-size: 1.1rem; font-weight: bold;
    border: 2px solid var(--primary); border-radius: 30px; cursor: pointer;
    transition: var(--transition); text-transform: uppercase; letter-spacing: 1px;
    text-decoration: none; margin-left: 20px;
}
.btn-secondary:hover { background: var(--primary); color: white !important; }

/* ---------------- HERO SECTION ---------------- */
.hero-section {
    width: 100%; max-width: 1100px; margin: 0 auto; padding: 80px 20px;
    text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 85vh;
}
img.hero-logo {
    width: 100%; max-width: 800px; height: auto; margin-bottom: 50px;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.08)); transition: transform 0.8s ease;
}
img.hero-logo:hover { transform: scale(1.02); }

.hero-tagline {
    font-family: 'Playfair Display', serif; font-style: italic; font-size: 3.2rem;
    font-weight: 500; margin-bottom: 40px; color: var(--primary-dark);
}

/* ---------------- CONTENT SECTIONS ---------------- */
.content-section {
    width: 100%; background: #ffffff; padding: 100px 20px;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.03), 0 20px 40px rgba(0,0,0,0.03);
    position: relative; z-index: 10;
}
.container { max-width: 1100px; margin: 0 auto; }
.container-center { display: flex; flex-direction: column; align-items: center; text-align: center; }

.section-title {
    font-size: 3rem; margin-bottom: 50px; position: relative; padding-bottom: 20px; text-align: center;
}
.section-title::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 80px; height: 4px; background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: 2px;
}
.text-content { font-size: 1.25rem; line-height: 1.9; color: var(--text-light); margin-bottom: 25px; }

/* ---------------- SERVICES GRID (GLASSMORPHISM 2.0) ---------------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; margin-top: 60px; }
.service-card-link { text-decoration: none; color: inherit; display: block; }

.service-card {
    background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border); border-radius: 24px; padding: 50px 40px;
    text-align: left; transition: var(--transition); box-shadow: var(--glass-shadow);
    position: relative; overflow: hidden; height: 100%; box-sizing: border-box;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); transition: 0.75s; z-index: 1;
}
.service-card:hover::before { left: 125%; }
.service-card:hover { transform: translateY(-15px); box-shadow: 0 30px 50px rgba(0,0,0,0.1); border-color: var(--accent); }

.service-icon { font-size: 3rem; margin-bottom: 25px; display: block; }
.service-card h3 { font-size: 1.6rem; margin-bottom: 20px; }
.read-more {
    display: inline-block; margin-top: 25px; color: var(--primary); font-weight: 700; font-size: 1.1rem;
    text-transform: uppercase; letter-spacing: 1px; transition: var(--transition);
}
.service-card:hover .read-more { color: var(--gold); transform: translateX(10px); }

/* ---------------- BADGES ---------------- */
.highlights-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; width: 100%; margin-top: 40px; }
.badge {
    background: white; border: 1px solid rgba(141, 164, 141, 0.3); padding: 20px 35px; border-radius: 30px;
    display: flex; align-items: center; gap: 15px; font-weight: bold; color: var(--primary); font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04); transition: var(--transition);
}
.badge:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--accent); }

/* ---------------- TESTIMONIAL CAROUSEL ---------------- */
.carousel-container {
    width: 100%; max-width: 900px; margin: 80px auto 0; overflow: hidden; position: relative;
    padding: 40px 0;
}
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; }
.testimonial {
    min-width: 100%; box-sizing: border-box; padding: 40px; text-align: center;
    background: var(--glass-bg); backdrop-filter: blur(10px); border-radius: 20px; border: 1px solid var(--glass-border);
}
.quote-icon { font-size: 4rem; color: var(--accent); opacity: 0.5; margin-bottom: 10px; line-height: 1; }
.testimonial p { font-size: 1.4rem; font-style: italic; color: var(--text-dark); margin-bottom: 20px; }
.testimonial h4 { font-size: 1.1rem; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #ccc; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--primary); transform: scale(1.3); }

/* ---------------- FAQ ACCORDION ---------------- */
.faq-container { max-width: 800px; margin: 60px auto 0; }
.faq-item {
    background: white; border-radius: 12px; margin-bottom: 15px; border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02); overflow: hidden; transition: var(--transition);
}
.faq-question {
    padding: 25px 30px; font-size: 1.2rem; font-weight: bold; color: var(--primary-dark);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-icon { font-size: 1.5rem; transition: transform 0.3s ease; color: var(--accent); }
.faq-answer {
    padding: 0 30px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease;
    font-size: 1.1rem; color: var(--text-light); line-height: 1.7;
}
.faq-item.active { box-shadow: 0 10px 25px rgba(0,0,0,0.08); border-color: var(--accent); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-item.active .faq-answer { padding: 0 30px 25px; max-height: 500px; }

/* ---------------- MAGAZINE BLOG LAYOUT ---------------- */
.article-header { text-align: center; margin-bottom: 60px; }
.magazine-meta { display: flex; justify-content: center; gap: 20px; margin-top: 20px; font-weight: bold; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }
.meta-tag { background: var(--bg-color); padding: 8px 15px; border-radius: 20px; color: var(--primary); }
.read-time { color: var(--gold); }
.article-content {
    max-width: 850px; margin: 0 auto; background: #ffffff; padding: 80px;
    border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.05); border: 1px solid #f0f0f0;
}
.drop-cap::first-letter {
    font-family: 'Cinzel', serif; font-size: 5rem; float: left; margin: 10px 15px 0 0;
    line-height: 0.8; color: var(--primary); text-shadow: 2px 2px 0px rgba(141,164,141,0.3);
}
.article-content h2 { font-size: 2.2rem; margin-top: 50px; margin-bottom: 25px; border-bottom: 2px solid var(--bg-color); padding-bottom: 10px; }
.article-content p { font-size: 1.2rem; line-height: 1.9; color: var(--text-dark); margin-bottom: 30px; }
.article-content ul { font-size: 1.2rem; line-height: 1.9; margin-bottom: 30px; padding-left: 25px; }
.article-content li { margin-bottom: 15px; }
.author-box {
    margin-top: 60px; padding: 30px; background: var(--bg-color); border-radius: 16px;
    display: flex; align-items: center; gap: 20px; border-left: 5px solid var(--primary);
}
.author-box h4 { margin-bottom: 5px; }
.author-box p { margin: 0; font-size: 1rem; color: var(--text-light); }

/* ---------------- CONTACT FORM ---------------- */
.contact-section {
    width: 100%;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Floating Label Inputs */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 18px 20px;
    font-size: 1.05rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(141, 164, 141, 0.3);
    border-radius: 12px;
    outline: none;
    box-sizing: border-box;
    transition: var(--transition);
}

.input-group textarea {
    resize: vertical;
    min-height: 140px;
}

.input-group label {
    position: absolute;
    left: 20px;
    top: 20px;
    color: #778877;
    font-size: 1.05rem;
    pointer-events: none;
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(141, 164, 141, 0.15);
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -12px;
    left: 15px;
    font-size: 0.85rem;
    background: #ffffff;
    padding: 0 8px;
    color: var(--primary);
    font-weight: bold;
    border-radius: 4px;
    border: 1px solid var(--accent);
}

.status-msg {
    margin-top: 15px;
    text-align: center;
    font-size: 1rem;
    color: var(--primary);
    font-weight: bold;
    display: none;
}

.contact-alt {
    text-align: center;
    margin-top: 30px;
    font-size: 1.05rem;
    color: var(--text-light);
}

.contact-alt a {
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
}

/* ---------------- MEGA FOOTER ---------------- */
footer {
    background-color: var(--primary-dark); color: white; padding: 80px 50px 40px; margin-top: auto;
}
.footer-grid {
    max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 50px; margin-bottom: 60px;
}
.footer-col h4 { color: var(--gold); font-size: 1.4rem; margin-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.footer-col p, .footer-col a { color: #d0d5d0; font-size: 1.05rem; line-height: 1.8; text-decoration: none; transition: 0.3s; display: block; margin-bottom: 10px; }
.footer-col a:hover { color: white; transform: translateX(5px); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; font-size: 0.95rem; color: #aab5aa; }

/* ---------------- FLOATING ACTION BUTTON (FAB) ---------------- */
.fab {
    position: fixed; bottom: 40px; right: 40px; background: linear-gradient(135deg, var(--gold) 0%, #b8962e 100%);
    color: white; width: 70px; height: 70px; border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 1.8rem; box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4); z-index: 9999; text-decoration: none;
    transition: var(--transition); animation: pulse 2s infinite;
}
.fab:hover { transform: scale(1.1) rotate(15deg); animation: none; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col h4 { border-bottom: none; }
    .footer-col a:hover { transform: none; }
    .hero-tagline { font-size: 2.5rem; }
    .section-title { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .navbar { padding: 15px 20px; }
    .nav-links { display: none; } /* hidden — hamburger takes over */
    .hamburger { display: flex; }
    .hero-tagline { font-size: 2.2rem; }
    .btn-secondary { margin-left: 0; margin-top: 20px; }
    .article-content { padding: 40px 25px; }
    .glass-panel { padding: 40px 20px; }
    .fab { bottom: 20px; right: 20px; width: 60px; height: 60px; font-size: 1.5rem; }
}
