/* ============================================
   Krafts By Kalyn — Styles
   Classic & Elegant · Emerald + Cream
   ============================================ */

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

:root {
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --cream-50:  #faf8f5;
    --cream-100: #f5f0e8;
    --cream-200: #ebe3d5;
    --cream-300: #e0d5c3;
    --gold-400:  #d4a574;
    --gold-500:  #c49a6c;
    --text-dark:  #1a1a1a;
    --text-mid:   #3a3a3a;
    --text-light: #6b6b6b;
    --text-on-dark: #f5f0e8;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans:  'Lato', system-ui, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--cream-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---- Typography ---- */
.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 12px;
}

.section-label-light {
    color: var(--gold-400);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-title-light {
    color: var(--cream-50);
}

.text-accent {
    color: var(--emerald-700);
}

.text-accent-light {
    color: var(--gold-400);
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 560px;
    line-height: 1.8;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 14px 32px;
    border-radius: 4px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.btn-primary {
    background: var(--emerald-700);
    color: var(--cream-50);
    border-color: var(--emerald-700);
}

.btn-primary:hover {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(6, 95, 70, 0.3);
}

.btn-outline-light {
    background: transparent;
    color: var(--cream-50);
    border-color: rgba(245, 240, 232, 0.5);
}

.btn-outline-light:hover {
    background: rgba(245, 240, 232, 0.1);
    border-color: var(--cream-50);
}

.btn-light {
    background: var(--cream-50);
    color: var(--emerald-800);
    border-color: var(--cream-50);
}

.btn-light:hover {
    background: var(--cream-200);
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.8125rem;
}

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

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(6, 78, 59, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(245, 240, 232, 0.08);
    transition: box-shadow 0.3s var(--ease);
}

.nav.scrolled {
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 72px;
    gap: 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cream-50);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-logo-icon {
    color: var(--gold-400);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 36px;
    margin-left: auto;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(245, 240, 232, 0.75);
    letter-spacing: 0.03em;
    transition: color 0.25s var(--ease);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-400);
    transition: width 0.3s var(--ease);
}

.nav-links a:hover {
    color: var(--cream-50);
}

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

.nav-cta {
    background: rgba(212, 165, 116, 0.15);
    border: 1px solid rgba(212, 165, 116, 0.4);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--gold-400) !important;
    transition: all 0.3s var(--ease) !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: rgba(212, 165, 116, 0.25) !important;
    border-color: var(--gold-400);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.nav-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--cream-50);
    transition: all 0.3s var(--ease);
    display: block;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    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(
        135deg,
        rgba(6, 78, 59, 0.88) 0%,
        rgba(4, 60, 44, 0.82) 50%,
        rgba(6, 78, 59, 0.75) 100%
    );
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 28px;
    padding: 8px 20px;
    border: 1px solid rgba(212, 165, 116, 0.35);
    border-radius: 100px;
    background: rgba(212, 165, 116, 0.08);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--cream-50);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-accent {
    font-style: italic;
    color: var(--gold-400);
    font-weight: 400;
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(245, 240, 232, 0.78);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 40px;
    font-weight: 300;
}

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

/* ---- Floating Stat Cards ---- */
.hero-stats {
    position: absolute;
    bottom: 48px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 24px;
    flex-wrap: wrap;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(245, 240, 232, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(245, 240, 232, 0.15);
    border-radius: 12px;
    padding: 16px 24px;
    color: var(--cream-50);
    min-width: 180px;
}

.stat-icon {
    color: var(--gold-400);
    flex-shrink: 0;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(245, 240, 232, 0.65);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ---- About ---- */
.about {
    padding: 120px 0;
    background: var(--cream-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(6, 78, 59, 0.12);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.about-image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--emerald-700);
    border-radius: 8px;
    z-index: 0;
    opacity: 0.2;
}

.about-content {
    max-width: 480px;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-mid);
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.85;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 36px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-mid);
    font-weight: 500;
}

.about-feature svg {
    color: var(--emerald-700);
    flex-shrink: 0;
}

/* ---- Collection ---- */
.collection {
    padding: 120px 0;
    background: var(--cream-100);
}

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

.section-header .section-sub {
    margin: 0 auto;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.collection-card {
    background: var(--cream-50);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(6, 78, 59, 0.12);
}

.collection-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.collection-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

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

.collection-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 78, 59, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.collection-card:hover .collection-card-overlay {
    opacity: 1;
}

.collection-card-body {
    padding: 28px 28px 32px;
}

.collection-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--emerald-800);
    margin-bottom: 8px;
}

.collection-card-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ---- Values ---- */
.values {
    padding: 120px 0;
    background: var(--emerald-800);
    position: relative;
    overflow: hidden;
}

.values::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.04);
    pointer-events: none;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

.value-card {
    background: rgba(245, 240, 232, 0.06);
    border: 1px solid rgba(245, 240, 232, 0.1);
    border-radius: 12px;
    padding: 40px 36px;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.value-card:hover {
    background: rgba(245, 240, 232, 0.1);
    border-color: rgba(212, 165, 116, 0.3);
}

.value-icon {
    color: var(--gold-400);
    margin-bottom: 20px;
}

.value-card h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--cream-50);
    margin-bottom: 12px;
}

.value-card p {
    font-size: 0.925rem;
    color: rgba(245, 240, 232, 0.65);
    line-height: 1.8;
}

/* ---- Visit ---- */
.visit {
    padding: 120px 0;
    background: var(--cream-50);
}

.visit-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(6, 78, 59, 0.12);
}

.visit-content {
    background: var(--emerald-800);
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.visit-content .section-title {
    margin-bottom: 20px;
}

.visit-text {
    color: rgba(245, 240, 232, 0.72);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 40px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.visit-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: var(--cream-50);
}

.visit-detail svg {
    color: var(--gold-400);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.visit-detail span,
.visit-detail a {
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.7);
    transition: color 0.25s var(--ease);
}

.visit-detail a:hover {
    color: var(--gold-400);
}

.visit-map {
    min-height: 480px;
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 480px;
}

/* ---- Contact ---- */
.contact {
    padding: 120px 0;
    background: var(--cream-100);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-title {
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 40px;
}

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

.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-mid);
    font-size: 0.95rem;
    transition: color 0.25s var(--ease);
}

.contact-method:hover {
    color: var(--emerald-700);
}

.contact-method svg {
    color: var(--emerald-700);
    flex-shrink: 0;
}

/* ---- Form ---- */
.contact-form-wrap {
    background: var(--cream-50);
    border-radius: 12px;
    padding: 44px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--cream-200);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--cream-50);
    border: 1.5px solid var(--cream-200);
    border-radius: 6px;
    outline: none;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
    -webkit-appearance: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald-600);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    color: var(--emerald-800);
    font-size: 0.9rem;
    margin-top: 16px;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    color: var(--emerald-600);
    flex-shrink: 0;
}

/* ---- Footer ---- */
.footer {
    background: var(--emerald-900);
    padding: 72px 0 0;
    color: var(--cream-50);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(245, 240, 232, 0.08);
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cream-50);
    margin-bottom: 16px;
}

.footer-logo svg {
    color: var(--gold-400);
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.55);
    line-height: 1.75;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--cream-50);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-contact a {
    font-size: 0.875rem;
    color: rgba(245, 240, 232, 0.55);
    transition: color 0.25s var(--ease);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--gold-400);
}

.footer-contact li {
    font-size: 0.875rem;
    color: rgba(245, 240, 232, 0.55);
    line-height: 1.7;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(245, 240, 232, 0.35);
}

/* ---- Reveal Animations ---- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 48px;
    }

    .collection-grid {
        gap: 24px;
    }

    .values-grid {
        gap: 24px;
    }

    .visit-content {
        padding: 48px 40px;
    }

    .contact-grid {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(6, 78, 59, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        transform: translateY(-120%);
        transition: transform 0.4s var(--ease);
        border-bottom: 1px solid rgba(245, 240, 232, 0.08);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        padding: 100px 24px 140px;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        bottom: 24px;
        gap: 12px;
    }

    .stat-card {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image img {
        height: 360px;
    }

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

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

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

    .visit-card {
        grid-template-columns: 1fr;
    }

    .visit-map {
        min-height: 300px;
    }

    .visit-map iframe {
        min-height: 300px;
    }

    .visit-content {
        padding: 48px 32px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-wrap {
        padding: 28px;
    }

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

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}

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

    html {
        scroll-behavior: auto;
    }

    .collection-card:hover {
        transform: none;
    }

    .collection-card-img img {
        transform: none;
    }
}
