/* ============================================
   Upward Title & Closing — Custom Styles
   Classic & Elegant | Teal + Slate Palette
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-teal-50: #f0f9ff;
    --color-teal-100: #e0f2fe;
    --color-teal-200: #bae6fd;
    --color-teal-400: #38bdf8;
    --color-teal-500: #0ea5e9;
    --color-teal-600: #0284c7;
    --color-teal-700: #0369a1;
    --color-teal-800: #075985;
    --color-teal-900: #0c4a6e;
    
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --color-slate-950: #080e1a;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Lato', 'Helvetica Neue', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease;
}

/* --- Base Reset & Typography --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-slate-800);
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-slate-900);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-slate-100);
}
::-webkit-scrollbar-thumb {
    background: var(--color-teal-300);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-teal-500);
}

/* --- Selection --- */
::selection {
    background: var(--color-teal-200);
    color: var(--color-teal-900);
}

/* --- Hero Animations --- */
.hero-eyebrow {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease forwards 0.3s;
}

.hero-headline {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease forwards 0.5s;
}

.hero-subhead {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease forwards 0.7s;
}

.hero-ctas {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease forwards 0.9s;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Section Eyebrows --- */
.section-eyebrow {
    margin-bottom: 1rem !important;
}

/* --- Service Cards --- */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-teal-600), var(--color-teal-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* --- Process Steps --- */
.process-step {
    padding: 2rem 1rem;
}

/* --- Testimonial Cards --- */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    left: 20px;
    font-family: var(--font-serif);
    font-size: 80px;
    line-height: 1;
    color: rgba(45, 212, 191, 0.15);
    pointer-events: none;
}

/* --- Navbar Scroll State --- */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}

#navbar.scrolled .nav-text {
    color: var(--color-teal-900) !important;
}

#navbar.scrolled .nav-text-sub {
    color: var(--color-slate-500) !important;
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* --- Form Focus States --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* --- Utility --- */
.text-teal { color: var(--color-teal-600); }
.bg-teal { background-color: var(--color-teal-600); }

/* --- 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;
    }
}

/* --- Tablet --- */
@media (min-width: 768px) {
    .service-card {
        padding: 2.5rem;
    }
}

/* --- Large Desktop --- */
@media (min-width: 1280px) {
    .service-card {
        padding: 3rem;
    }
}

/* --- Mobile Specific --- */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 2.5rem !important;
    }
    
    .section-title {
        font-size: 2.25rem !important;
    }
    
    #navbar {
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
    }
}
