/* ============================================
   George Family Farm — Custom Styles
   ============================================ */

:root {
    --color-midnight-900: #0A1F3F;
    --color-midnight-950: #050E1D;
    --color-mint-300: #A8E6CF;
    --color-mint-400: #7ECFC0;
    --color-mint-500: #5BB8A8;
    --color-mint-100: #E8F5F0;
    --color-mint-200: #D0EBE3;
    --color-surface-light: #F7F9FB;
    --color-surface-white: #FFFFFF;
    --color-midnight-50: #F0F4F8;
    --color-midnight-100: #E2EAF2;
    --color-midnight-200: #C5D3E2;
    --color-midnight-500: #4A6B8A;
    --color-midnight-600: #3A5570;
    --color-midnight-700: #2A4055;
    --color-midnight-900: #0A1F3F;
    --font-playfair: 'Playfair Display', Georgia, serif;
    --font-inter: 'Inter', system-ui, sans-serif;
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-inter);
    color: var(--color-midnight-900);
    background-color: var(--color-surface-light);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-playfair);
    font-weight: 500;
    line-height: 1.2;
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 31, 63, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-mint-400);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--color-mint-300) !important;
}

/* Backdrop border utility */
.backdrop-border {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

/* Floating Cards */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Service Cards */
.service-card {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card > div {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll Reveal */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Input Focus */
input:focus,
textarea:focus {
    outline: none;
}

/* Decorative top/bottom borders */
section::before,
section::after {
    content: '';
    display: block;
    height: 1px;
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Selection color */
::selection {
    background: var(--color-mint-400);
    color: var(--color-midnight-900);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-midnight-950);
}

::-webkit-scrollbar-thumb {
    background: var(--color-midnight-500);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-mint-400);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }

    .floating-card {
        animation: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }

    h1 {
        font-size: 2.75rem !important;
    }

    h2 {
        font-size: 2.25rem !important;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    h1 {
        font-size: 4rem !important;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobileMenu,
    .floating-card,
    iframe {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}
