/* ========================================
   Jacksonville Clock Shop — Styles
   Terracotta + Sand | Fresh & Airy
======================================== */

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

:root {
    /* Terracotta palette */
    --terra-50:  #fdf6f2;
    --terra-100: #f9e8de;
    --terra-200: #f2d0bc;
    --terra-300: #e8ad8e;
    --terra-400: #d4956a;
    --terra-500: #c07050;
    --terra-600: #b8654a;
    --terra-700: #a14e38;
    --terra-800: #853f2f;
    --terra-900: #6e3428;
    
    /* Sand palette */
    --sand-50:   #fefdfb;
    --sand-100:  #fdf8f0;
    --sand-200:  #f9f0e0;
    --sand-300:  #f2e4c8;
    --sand-400:  #e8d4a8;
    --sand-500:  #d4b878;
    
    /* Neutrals */
    --ink-900:   #1a1410;
    --ink-800:   #2c2219;
    --ink-700:   #3d3027;
    --ink-600:   #5a4a3e;
    --ink-500:   #7a6859;
    --ink-400:   #9a8878;
    --ink-300:   #b8a898;
    --ink-200:   #d4c8bc;
    --ink-100:   #ece4dc;
    --ink-50:    #f7f2ed;
    
    /* Accent */
    --green-600: #4A7C59;
    --green-50:  #eef5f0;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    /* Spacing */
    --container-max: 1200px;
    --section-pad: clamp(4rem, 10vw, 8rem);
    
    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--ink-700);
    background: var(--sand-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: var(--terra-600);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--terra-700);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--terra-600);
    color: #fff;
    border-color: var(--terra-600);
}

.btn-primary:hover {
    background: var(--terra-700);
    border-color: var(--terra-700);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 101, 74, 0.3);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--ink-800);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 246, 238, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ink-100);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(26, 20, 16, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--ink-800);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.logo-light .logo-text {
    color: var(--sand-100);
}

/* ---------- Navigation ---------- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-menu a {
    color: var(--ink-600);
    font-size: 0.9375rem;
    font-weight: 450;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all var(--transition);
}

.nav-menu a:hover {
    color: var(--terra-600);
    background: var(--terra-50);
}

.nav-cta {
    background: var(--terra-600) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 0.5rem 1.25rem !important;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background: var(--terra-700) !important;
    color: #fff !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink-700);
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--ink-700);
    transition: all var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--ink-900);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 20, 16, 0.85) 0%,
        rgba(44, 34, 25, 0.7) 40%,
        rgba(109, 52, 40, 0.5) 100%
    );
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(26, 20, 16, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding-top: 72px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 149, 106, 0.2);
    border: 1px solid rgba(212, 149, 106, 0.4);
    color: var(--terra-300);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-headline em {
    font-style: italic;
    color: var(--terra-300);
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(253, 246, 238, 0.8);
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(253, 246, 238, 0.7);
    font-size: 0.875rem;
    font-weight: 450;
}

.trust-item svg {
    color: var(--terra-400);
}

/* ---------- Section Shared ---------- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terra-600);
    margin-bottom: 0.875rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--ink-800);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--ink-500);
    line-height: 1.75;
}

/* ---------- Services ---------- */
.services {
    padding: var(--section-pad) 0;
    background: var(--sand-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: #fff;
    border: 1px solid var(--ink-100);
    border-radius: 16px;
    padding: 2rem;
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(26, 20, 16, 0.08);
    border-color: var(--terra-200);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--terra-50);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink-800);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--ink-500);
    line-height: 1.7;
}

/* ---------- About ---------- */
.about {
    padding: var(--section-pad) 0;
    background: var(--terra-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(26, 20, 16, 0.12);
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -2rem;
    right: -1.5rem;
    width: 55%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(26, 20, 16, 0.15);
    border: 4px solid var(--terra-100);
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    top: -1rem;
    right: 2rem;
    background: var(--terra-600);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(184, 101, 74, 0.35);
}

.about-badge-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
}

.about-badge-text {
    font-size: 0.75rem;
    opacity: 0.85;
}

.about-content .section-tag {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
}

.about-body {
    font-size: 1rem;
    color: var(--ink-600);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--ink-100);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--terra-600);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--ink-500);
    line-height: 1.5;
}

/* ---------- Collection ---------- */
.collection {
    padding: var(--section-pad) 0;
    background: var(--sand-50);
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.collection-item {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ink-100);
    transition: all var(--transition);
}

.collection-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(26, 20, 16, 0.1);
}

.collection-img {
    overflow: hidden;
    aspect-ratio: 5/6.2;
}

.collection-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.collection-item:hover .collection-img img {
    transform: scale(1.05);
}

.collection-info {
    padding: 1.5rem;
}

.collection-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terra-600);
    background: var(--terra-50);
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.collection-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1875rem;
    font-weight: 600;
    color: var(--ink-800);
    letter-spacing: -0.01em;
}

.collection-cta {
    text-align: center;
    padding: 2.5rem;
    background: var(--terra-50);
    border-radius: 20px;
    border: 1px dashed var(--terra-200);
}

.collection-cta p {
    font-size: 1.0625rem;
    color: var(--ink-600);
    margin-bottom: 1.5rem;
}

/* ---------- Quote Section ---------- */
.quote-section {
    padding: clamp(4rem, 10vw, 7rem) 0;
    background: linear-gradient(135deg, var(--ink-800) 0%, var(--ink-900) 100%);
}

.quote-inner {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.quote-mark {
    margin: 0 auto 1.5rem;
    opacity: 0.3;
}

.quote-inner blockquote {
    font-family: var(--font-heading);
    font-size: clamp(1.375rem, 2.5vw, 1.875rem);
    font-weight: 400;
    font-style: italic;
    color: var(--sand-100);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.quote-attribution {
    font-style: normal;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--terra-400);
    letter-spacing: 0.05em;
}

/* ---------- Contact ---------- */
.contact {
    padding: var(--section-pad) 0;
    background: var(--sand-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: start;
}

.contact-info .section-tag {
    text-align: left;
}

.contact-info .section-title {
    text-align: left;
}

.contact-desc {
    font-size: 1rem;
    color: var(--ink-500);
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--terra-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-text strong {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-400);
}

.contact-text span,
.contact-text a {
    font-size: 1rem;
    color: var(--ink-700);
    font-weight: 500;
}

.contact-text a:hover {
    color: var(--terra-600);
}

.map-placeholder {
    overflow: hidden;
    border: 1px solid var(--ink-100);
    border-radius: 16px;
}

/* ---------- Contact Form ---------- */
.contact-form-wrapper {
    background: #fff;
    border: 1px solid var(--ink-100);
    border-radius: 20px;
    overflow: hidden;
}

.contact-form-inner {
    padding: clamp(2rem, 4vw, 3rem);
}

.contact-form-inner h3 {
    font-family: var(--font-heading);
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--ink-800);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.contact-form-inner > p {
    font-size: 0.9375rem;
    color: var(--ink-500);
    margin-bottom: 2rem;
    line-height: 1.65;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-600);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--ink-100);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--ink-800);
    background: var(--sand-50);
    transition: all var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--ink-300);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--terra-400);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(192, 112, 80, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.form-success svg {
    margin: 0 auto 1rem;
}

.form-success h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--green-600);
    margin-bottom: 0.5rem;
}

.form-success p {
    font-size: 0.9375rem;
    color: var(--ink-500);
}

.contact-form.hidden {
    display: none;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink-900);
    color: var(--ink-300);
    padding: clamp(3rem, 6vw, 5rem) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: clamp(2rem, 4vw, 3rem);
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-text {
    color: var(--sand-100);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--ink-400);
    margin-top: 0.875rem;
    line-height: 1.65;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--sand-100);
    margin-bottom: 1.125rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    color: var(--ink-400);
    font-size: 0.9375rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--terra-400);
}

.footer-contact p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0.25rem;
}

.footer-contact a {
    color: var(--ink-400);
}

.footer-contact a:hover {
    color: var(--terra-400);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0;
    font-size: 0.8125rem;
    color: var(--ink-500);
}

.footer-bottom a {
    color: var(--ink-400);
}

.footer-bottom a:hover {
    color: var(--terra-400);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    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.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .collection-grid .collection-item:last-child {
        grid-column: span 2;
        max-width: 50%;
        justify-self: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        background: var(--sand-50);
        flex-direction: column;
        align-items: stretch;
        padding: 6rem 2rem 2rem;
        gap: 0.25rem;
        transition: right var(--transition);
        box-shadow: -10px 0 40px rgba(26, 20, 16, 0.15);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-menu a {
        padding: 0.875rem 1rem;
        font-size: 1.0625rem;
        border-radius: 10px;
    }
    
    .nav-cta {
        margin-left: 0 !important;
        margin-top: 0.75rem;
        text-align: center;
        display: block !important;
    }
    
    .hero-headline {
        font-size: clamp(1.875rem, 7vw, 2.75rem);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .about-content .section-tag,
    .about-content .section-title {
        text-align: center;
    }
    
    .about-body {
        text-align: center;
    }
    
    .about-content .btn {
        display: inline-flex;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .collection-grid {
        grid-template-columns: 1fr;
    }
    
    .collection-grid .collection-item:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info .section-tag,
    .contact-info .section-title {
        text-align: center;
    }
    
    .contact-desc {
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
    
    .footer-tagline {
        margin: 0.875rem auto 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .about-img-secondary {
        right: -0.5rem;
        bottom: -1.5rem;
    }
    
    .about-badge {
        right: 1rem;
        top: -0.75rem;
    }
}
