/* ============================================
   Tinker Flats Vineyard — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    line-height: 1.6;
    color: #1e293b;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 48px;
    }
}

/* --- Section Layout --- */
.section {
    padding: 96px 0;
}

.section--light {
    background-color: #f8fafc;
}

.section--teal {
    background-color: #0d9488;
    color: #f0fdfa;
}

@media (min-width: 768px) {
    .section {
        padding: 120px 0;
    }
}

/* --- Section Labels --- */
.section-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0d9488;
    margin-bottom: 16px;
}

.section-label--light {
    color: #99f6e4;
}

/* --- Section Titles --- */
.section-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 300;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.1;
}

.section-title--light {
    color: #f0fdfa;
}

.section-lead {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    font-weight: 400;
    line-height: 1.65;
    color: #475569;
    max-width: 560px;
    margin-bottom: 24px;
}

.section-lead--light {
    color: #ccfbf1;
}

.section-subtitle {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: #64748b;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 64px;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 80px;
    }
}

.section-cta {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.section-note {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 0;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn--sm {
    padding: 12px 24px;
    font-size: 12px;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

.btn-primary {
    background-color: #0d9488;
    color: #f0fdfa;
    border-color: #0d9488;
}

.btn-primary:hover {
    background-color: #0f766e;
    border-color: #0f766e;
}

.btn-ghost {
    background-color: transparent;
    color: #f0fdfa;
    border-color: rgba(240, 253, 250, 0.4);
}

.btn-ghost:hover {
    border-color: #f0fdfa;
    background-color: rgba(240, 253, 250, 0.08);
}

/* --- Navigation --- */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.nav-fixed.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-fixed.scrolled .nav-logo-text,
.nav-fixed.scrolled .nav-menu-link,
.nav-fixed.scrolled .nav-menu-phone {
    color: #1e293b;
}

.nav-fixed.scrolled .nav-menu-line {
    background-color: #1e293b;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #f0fdfa;
    transition: color 0.4s ease;
    z-index: 1001;
}

.nav-logo-icon {
    color: #99f6e4;
    transition: color 0.4s ease;
}

.nav-logo-text {
    transition: color 0.4s ease;
}

.nav-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav-menu-line {
    display: block;
    width: 22px;
    height: 1px;
    background-color: #f0fdfa;
    transition: all 0.3s ease;
}

.nav-menu-btn.active .nav-menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-menu-btn.active .nav-menu-line:nth-child(2) {
    opacity: 0;
}

.nav-menu-btn.active .nav-menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

.nav-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(4, 47, 46, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 999;
}

.nav-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-menu-content {
    text-align: center;
}

.nav-menu-link {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    color: #f0fdfa;
    padding: 12px 0;
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0.85;
}

.nav-menu-link:hover {
    opacity: 1;
    color: #5eead4;
}

.nav-menu-divider {
    width: 40px;
    height: 1px;
    background-color: rgba(153, 246, 228, 0.3);
    margin: 24px auto;
}

.nav-menu-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: #99f6e4;
    padding: 10px 20px;
    border: 1px solid rgba(153, 246, 228, 0.3);
    transition: all 0.3s ease;
}

.nav-menu-phone:hover {
    border-color: #99f6e4;
    background-color: rgba(153, 246, 228, 0.08);
}

@media (min-width: 1024px) {
    .nav-menu-btn {
        display: none;
    }
    
    .nav-menu-overlay {
        position: static;
        background: none;
        opacity: 1;
        visibility: visible;
        display: flex;
        align-items: center;
    }
    
    .nav-menu-content {
        display: flex;
        align-items: center;
        gap: 32px;
    }
    
    .nav-menu-link {
        font-family: 'Inter', sans-serif;
        font-size: 12px;
        font-weight: 400;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        padding: 8px 0;
        color: #f0fdfa;
    }
    
    .nav-menu-divider {
        display: none;
    }
    
    .nav-menu-phone {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(4, 47, 46, 0.55) 0%,
        rgba(4, 47, 46, 0.45) 50%,
        rgba(4, 47, 46, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #99f6e4;
    margin-bottom: 28px;
}

.hero-tag-line {
    display: block;
    width: 32px;
    height: 1px;
    background-color: #99f6e4;
}

.hero-headline {
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 300;
    color: #f0fdfa;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-headline-accent {
    font-style: italic;
    font-weight: 300;
    color: #5eead4;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: #ccfbf1;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(240, 253, 250, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* --- Divider --- */
.divider {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 24px;
    max-width: 400px;
    margin: 0 auto;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: #e2e8f0;
}

.divider-icon {
    color: #0d9488;
    flex-shrink: 0;
}

/* --- About --- */
.about-grid {
    display: grid;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.about-image {
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.about-content .section-lead {
    margin-bottom: 16px;
}

.about-content p {
    font-size: 15px;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 12px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #0d9488;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background-color: #e2e8f0;
}

/* --- Wine Cards --- */
.wine-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .wine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .wine-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.wine-card {
    group: wine-card;
}

.wine-card-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}

.wine-card-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.wine-card:hover .wine-card-image img {
    transform: scale(1.04);
}

.wine-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #042f2e;
    background-color: #99f6e4;
    padding: 4px 10px;
}

.wine-card-type {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0d9488;
    margin-bottom: 6px;
}

.wine-card-name {
    font-size: 1.35rem;
    font-weight: 400;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.2;
}

.wine-card-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
}

/* --- Visit --- */
.visit-grid {
    display: grid;
    gap: 48px;
    align-items: start;
}

@media (min-width: 768px) {
    .visit-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 40px;
}

.visit-detail {
    display: flex;
    gap: 16px;
}

.visit-detail-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(153, 246, 228, 0.3);
    border-radius: 50%;
    color: #99f6e4;
}

.visit-detail-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #5eead4;
    margin-bottom: 4px;
}

.visit-detail-value {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    color: #f0fdfa;
    line-height: 1.5;
}

.visit-detail-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    color: #5eead4;
    text-decoration: none;
    border-bottom: 1px solid rgba(94, 234, 212, 0.3);
    transition: border-color 0.3s ease;
}

.visit-detail-link:hover {
    border-color: #5eead4;
}

.visit-detail-note {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #99f6e4;
    display: block;
    margin-top: 2px;
}

.visit-map {
    position: relative;
    min-height: 400px;
}

.visit-map-wrapper {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(153, 246, 228, 0.2);
}

.visit-map-wrapper iframe {
    border-radius: 0;
    filter: saturate(0.8) contrast(1.05);
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 280px);
    }
    
    .gallery-item--large {
        grid-column: span 2;
    }
    
    .gallery-item:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1;
    }
    
    .gallery-item:nth-child(5) {
        grid-column: 2 / 4;
        grid-row: 2;
    }
}

.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    gap: 48px;
    align-items: start;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #475569;
    transition: color 0.3s ease;
}

.contact-method:hover {
    color: #0d9488;
}

.contact-method-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #0d9488;
    flex-shrink: 0;
}

/* --- Form --- */
.contact-form-wrapper {
    background-color: #ffffff;
    padding: 32px;
    border: 1px solid #e2e8f0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
}

.form-input {
    width: 100%;
    padding: 12px 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #1e293b;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 0;
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input:focus {
    border-color: #0d9488;
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background-color: #f0fdfa;
    border: 1px solid #ccfbf1;
    color: #0d9488;
    font-size: 14px;
    margin-top: 8px;
}

/* --- Footer --- */
.footer {
    background-color: #042f2e;
    color: #ccfbf1;
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        padding-bottom: 48px;
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #f0fdfa;
    margin-bottom: 16px;
}

.footer-logo-icon {
    color: #5eead4;
}

.footer-tagline {
    font-size: 14px;
    color: #99f6e4;
    line-height: 1.65;
    opacity: 0.8;
}

.footer-heading {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #5eead4;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: #ccfbf1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: #5eead4;
}

.footer-links span {
    font-size: 14px;
    color: #ccfbf1;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(153, 246, 228, 0.15);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-bottom p {
    font-size: 12px;
    color: #99f6e4;
    opacity: 0.6;
}

.footer-legal {
    font-size: 11px !important;
}
