/* ─── Brand Tokens ───────────────────────────────────────── */
:root {
    --teal:        #3a9188;
    --teal-light:  #4db3a9;
    --teal-dim:    rgba(58,145,136,.15);
    --amber:       #c8792f;
    --amber-light: #e08b3a;
    --amber-dim:   rgba(200,121,47,.15);
    --dark:        #0d0d0d;
    --dark-1:      #131313;
    --dark-2:      #1a1a1a;
    --dark-3:      #222222;
    --dark-4:      #2c2c2c;
    --cream:       #f0ede8;
    --muted:       #6b6762;
    --muted-2:     #9a9590;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--dark);
    color: var(--cream);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ─── Grain Texture ──────────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='512' height='512' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 128px;
}

/* ─── Typography ─────────────────────────────────────────── */
.font-display { font-family: 'Cormorant Garamond', Georgia, serif; }

h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    line-height: 1.1;
}

/* ─── Teal Divider (matching logo) ───────────────────────── */
.brand-rule {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
    border: none;
    margin: 0;
}

/* ─── NAV ────────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    height: 72px;
    background: rgba(13,13,13,.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(58,145,136,.2);
}

.nav-logo {
    height: 42px;
    width: auto;
    filter: brightness(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--muted-2);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: color .2s ease;
}

.nav-links a:hover { color: var(--teal-light); }

.nav-cta {
    padding: .5rem 1.25rem;
    background: transparent;
    border: 1px solid var(--teal);
    color: var(--teal-light) !important;
    border-radius: 2px;
    transition: background .2s ease, color .2s ease !important;
}

.nav-cta:hover {
    background: var(--teal) !important;
    color: var(--dark) !important;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
    position: relative;
    height: 100svh;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/storage/images/1947-Ferrari-125-S.jpg');
    background-size: cover;
    background-position: center 30%;
    transform: scale(1.04);
    animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1.04); }
    to   { transform: scale(1.00); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(13,13,13,.55) 0%, rgba(13,13,13,.2) 40%, rgba(13,13,13,.75) 80%, rgba(13,13,13,.98) 100%),
        linear-gradient(to right, rgba(13,13,13,.3), transparent 60%);
}

/* color-tint layer */
.hero-tint {
    position: absolute;
    inset: 0;
    background: rgba(58,145,136,.07);
    mix-blend-mode: multiply;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    max-width: 900px;
    animation: fadeUp .9s .2s both cubic-bezier(.22,.68,0,1.2);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--teal-light);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--teal);
}

.hero-title {
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 300;
    letter-spacing: -.01em;
    color: var(--cream);
    margin-bottom: .3rem;
    text-shadow: 0 4px 32px rgba(0,0,0,.6);
}

.hero-title em {
    font-style: italic;
    color: var(--amber-light);
}

.hero-sub {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    color: rgba(240,237,232,.7);
    margin-top: 1.25rem;
    margin-bottom: 3rem;
    letter-spacing: .01em;
}

/* ─── SEARCH BAR (Hero) ──────────────────────────────────── */
.search-bar {
    display: flex;
    align-items: center;
    background: rgba(26,26,26,.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(58,145,136,.35);
    border-radius: 3px;
    overflow: hidden;
    max-width: 640px;
    margin: 0 auto;
    box-shadow:
        0 2px 0 rgba(58,145,136,.4),
        0 24px 48px rgba(0,0,0,.5);
    transition: border-color .2s, box-shadow .2s;
}

.search-bar:focus-within {
    border-color: var(--teal);
    box-shadow: 0 2px 0 var(--teal), 0 24px 48px rgba(0,0,0,.6), 0 0 0 4px rgba(58,145,136,.1);
}

.search-icon {
    padding: 0 1.2rem;
    color: var(--teal);
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 1rem 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--cream);
    min-width: 0;
}

.search-bar input::placeholder { color: var(--muted); }

.search-bar button {
    flex-shrink: 0;
    padding: 1rem 1.75rem;
    background: var(--amber);
    border: none;
    color: var(--dark);
    font-family: 'Outfit', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s;
}

.search-bar button:hover { background: var(--amber-light); }

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    color: var(--muted);
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    animation: pulse 2.5s ease-in-out infinite;
}

.hero-scroll svg {
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(5px); }
}

@keyframes pulse {
    0%, 100% { opacity: .5; }
    50%       { opacity: .9; }
}

/* ─── SECTION BASE ───────────────────────────────────────── */
section { position: relative; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--teal-light);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--teal);
}

/* ─── SEARCH SECTION ─────────────────────────────────────── */
#search {
    background: var(--dark-1);
    padding: 6rem 0;
    border-bottom: 1px solid var(--dark-3);
}

.search-section-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    text-align: center;
}

.search-section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    color: var(--cream);
    margin-bottom: .75rem;
}

.search-section-sub {
    color: var(--muted-2);
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

/* Category pills */
.search-cats {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.cat-pill {
    padding: .4rem 1.1rem;
    border-radius: 2px;
    border: 1px solid var(--dark-4);
    background: var(--dark-2);
    color: var(--muted-2);
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: .05em;
    cursor: pointer;
    transition: all .2s;
    text-transform: uppercase;
}

.cat-pill:hover,
.cat-pill.active {
    border-color: var(--teal);
    color: var(--teal-light);
    background: var(--teal-dim);
}

.search-section-bar {
    display: flex;
    align-items: center;
    background: var(--dark-2);
    border: 1px solid var(--dark-4);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    transition: border-color .2s, box-shadow .2s;
}

.search-section-bar:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(58,145,136,.12), 0 8px 32px rgba(0,0,0,.4);
}

.search-section-bar svg {
    padding: 0 1.2rem;
    color: var(--teal);
    flex-shrink: 0;
}

.search-section-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 1.1rem 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--cream);
    min-width: 0;
}

.search-section-bar input::placeholder { color: var(--muted); }

.search-section-bar button {
    padding: 1.1rem 2rem;
    background: var(--teal);
    border: none;
    color: var(--dark);
    font-family: 'Outfit', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}

.search-section-bar button:hover { background: var(--teal-light); }

.search-hint {
    margin-top: 1rem;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 300;
}

.search-hint a {
    color: var(--teal-light);
    text-decoration: none;
}

.search-hint a:hover { text-decoration: underline; }

/* ─── GALLERY STRIP ──────────────────────────────────────── */
.gallery-strip {
    background: var(--dark);
    padding: 5rem 0;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.25,.46,.45,.94);
    filter: saturate(.8) brightness(.85);
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: saturate(1) brightness(.95);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,13,13,.8) 0%, transparent 55%);
    opacity: 0;
    transition: opacity .3s;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--cream);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s, transform .3s;
}

.gallery-item:hover .gallery-item-label {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:first-child {
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ─── ABOUT SECTION ──────────────────────────────────────── */
#about {
    background: var(--dark-1);
    padding: 7rem 0;
    border-top: 1px solid var(--dark-3);
    border-bottom: 1px solid var(--dark-3);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.about-title em {
    font-style: italic;
    color: var(--amber-light);
}

.about-body {
    color: var(--muted-2);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat-block {
    padding: 1.25rem;
    background: var(--dark-2);
    border: 1px solid var(--dark-4);
    border-left: 2px solid var(--amber);
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--amber-light);
    line-height: 1;
    margin-bottom: .25rem;
}

.stat-label {
    font-size: .75rem;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.about-images {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: auto auto;
    gap: 4px;
}

.about-img-main {
    grid-row: span 2;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.about-img-side {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.about-img-main img,
.about-img-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.75);
    transition: filter .4s, transform .6s cubic-bezier(.25,.46,.45,.94);
}

.about-img-main:hover img,
.about-img-side:hover img {
    filter: saturate(1);
    transform: scale(1.03);
}

/* ─── HOW TO USE ─────────────────────────────────────────── */
.how-to {
    background: var(--dark);
    padding: 6rem 0;
}

.how-to-header {
    text-align: center;
    margin-bottom: 4rem;
}

.how-to-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
    color: var(--cream);
    margin-bottom: .75rem;
}

.how-to-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--dark-3);
    border: 1px solid var(--dark-3);
}

.how-step {
    background: var(--dark-1);
    padding: 2.5rem;
    position: relative;
    transition: background .2s;
}

.how-step:hover { background: var(--dark-2); }

.step-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 300;
    color: var(--teal-dim);
    line-height: 1;
    margin-bottom: 1rem;
    /* Decorative, sits behind content */
}

.step-icon {
    width: 40px;
    height: 40px;
    color: var(--teal);
    margin-bottom: 1.25rem;
}

.step-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: .75rem;
}

.step-body {
    font-size: .9rem;
    font-weight: 300;
    color: var(--muted-2);
    line-height: 1.7;
}

.step-accent {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), transparent);
    opacity: 0;
    transition: opacity .2s;
}

.how-step:hover .step-accent { opacity: 1; }

/* ─── CONTACT SECTION ────────────────────────────────────── */
#contact {
    background: var(--dark-1);
    padding: 7rem 0;
    border-top: 1px solid var(--dark-3);
}

.contact-inner {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 6rem;
    align-items: start;
}

.contact-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 1rem;
}

.contact-desc {
    color: var(--muted-2);
    font-size: .95rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--muted-2);
    font-size: .9rem;
    margin-bottom: .75rem;
    text-decoration: none;
    transition: color .2s;
}

.contact-detail:hover { color: var(--teal-light); }

.contact-detail svg {
    color: var(--teal);
    flex-shrink: 0;
}

/* Form */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.form-group.full { grid-column: 1 / -1; }

.form-label {
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.form-input,
.form-textarea {
    background: var(--dark-2);
    border: 1px solid var(--dark-4);
    border-radius: 2px;
    padding: .85rem 1rem;
    color: var(--cream);
    font-family: 'Outfit', sans-serif;
    font-size: .95rem;
    font-weight: 300;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(58,145,136,.1);
}

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

.form-input::placeholder,
.form-textarea::placeholder { color: var(--muted); }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .9rem 2rem;
    background: var(--amber);
    border: none;
    color: var(--dark);
    font-family: 'Outfit', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: background .2s, transform .15s, box-shadow .2s;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--amber-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(200,121,47,.3);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1.75rem;
    background: transparent;
    border: 1px solid var(--teal);
    color: var(--teal-light);
    font-family: 'Outfit', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: background .2s, color .2s;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--teal);
    color: var(--dark);
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
    background: var(--dark);
    border-top: 1px solid var(--dark-3);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand img {
    height: 44px;
    margin-bottom: 1.25rem;
}

.footer-brand p {
    font-size: .85rem;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.8;
    max-width: 280px;
}

.footer-socials {
    display: flex;
    gap: .75rem;
    margin-top: 1.5rem;
}

.social-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--dark-4);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
}

.social-btn:hover {
    border-color: var(--teal);
    color: var(--teal-light);
    background: var(--teal-dim);
}

.footer-col h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 1.25rem;
    letter-spacing: .03em;
}

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

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 300;
    transition: color .2s;
}

.footer-links a:hover { color: var(--teal-light); }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 300;
    margin-bottom: .75rem;
    text-decoration: none;
    transition: color .2s;
}

.footer-contact-item:hover { color: var(--teal-light); }

.footer-contact-item svg {
    color: var(--teal);
    flex-shrink: 0;
    margin-top: .15rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--dark-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: .78rem;
    color: var(--muted);
    font-weight: 300;
}

.footer-bottom a {
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}

.footer-bottom a:hover { color: var(--teal-light); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .nav-links { display: none; }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:first-child {
        grid-row: span 1;
        aspect-ratio: 4/3;
    }

    .about-inner,
    .contact-inner { grid-template-columns: 1fr; gap: 3rem; }

    .about-images { display: none; }

    .how-to-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 580px) {
    .form-grid { grid-template-columns: 1fr; }

    .gallery-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }

    .about-stats { grid-template-columns: 1fr 1fr; }
}
