/* ============================================
   Sree Nayaki Chits - Common Styles (Dark Gold Theme)
   ============================================ */

:root {
    --brand: #2E97A2;
    --brand-light: #48B4C0;
    --brand-dark: #1F6971;
    --gold: #2E97A2;
    --gold-light: #48B4C0;
    --gold-dark: #1F6971;
    --deep: #F7FBFC; /* Very light teal-tinted background */
    --deep2: #EBF4F5;
    --surface: #FFFFFF;
    --surface2: #F1F8F9;
    --text: #111827; /* Darker charcoal for better readability */
    --text-muted: #4B5563; /* Bolder muted text */
    --accent: #2E97A2;
    --red: #B94040;
    --border: rgba(46, 151, 162, 0.15);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--deep);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    font-weight: 500; /* Bolder base font */
}

/* GRAIN OVERLAY */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    height: 80px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-decoration: none;
}

.nav-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--deep);
    box-shadow: 0 0 20px rgba(46, 151, 162, 0.3);
}

.nav-logo-text {
    line-height: 1.1;
}

.nav-logo-text span:first-child {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.04em;
}

.nav-logo-text span:last-child {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-cta {
    padding: 10px 24px;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s;
    font-family: 'DM Sans', sans-serif;
}

.nav-cta:hover {
    background: var(--gold);
    color: var(--deep);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s;
}

/* MOBILE MENU */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: var(--gold);
}

/* FOOTER */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 4rem 4rem 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand p {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 1rem;
    font-weight: 500;
    max-width: 320px;
}

.footer-col h5 {
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-col ul li {
    font-size: 17px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.footer-col ul li:hover {
    color: var(--gold);
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-bottom strong {
    color: var(--gold);
}

/* WHATSAPP BUTTON */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* BUTTONS */
.btn-primary {
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--deep);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s;
    font-family: 'DM Sans', sans-serif;
    box-shadow: 0 4px 30px rgba(46, 151, 162, 0.25);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(46, 151, 162, 0.4);
}

.btn-secondary {
    padding: 14px 36px;
    background: transparent;
    color: var(--text);
    font-weight: 500;
    font-size: 17px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(240, 235, 224, 0.2);
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* SECTION UTILS */
.section-tag {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 500;
    color: var(--text);
    line-height: 1.2;
}

.section-title em {
    font-style: italic;
    color: var(--gold);
}

/* PRELOADER */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--deep);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease-out, visibility 0.4s;
}

.preloader-content {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.preloader-logo {
    max-height: 80px;
    max-width: 160px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(46, 151, 162, 0.2));
    animation: logoPulse 2.5s infinite ease-in-out;
    z-index: 2;
}

.preloader-spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(46, 151, 162, 0.05);
    border-top: 2px solid var(--gold);
    border-radius: 50%;
    animation: preloaderSpin 3s linear infinite;
}

.preloader-spinner::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(46, 151, 162, 0.05);
    border-bottom: 2px solid var(--gold-light);
    border-radius: 50%;
    animation: preloaderSpinReverse 2s linear infinite;
}

.preloader-line {
    width: 180px;
    height: 1px;
    background: rgba(46, 151, 162, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.preloader-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: lineLoading 2s infinite ease-in-out;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes preloaderSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes preloaderSpinReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes lineLoading {
    0% { left: -100%; }
    100% { left: 100%; }
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* REVEAL ANIMATIONS */
.reveal {
    opacity: 0;
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    nav {
        padding: 0 1.5rem;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
