/* ============================================
   410 VINTAGE MARKET — Styles
   Palette: Emerald Green + Cream
   Fonts: Cormorant Garamond + Inter
   ============================================ */

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

:root {
  --emerald: #0d6e3f;
  --emerald-dark: #084d2b;
  --emerald-light: #e8f5ec;
  --cream: #f5f0e8;
  --cream-light: #faf7f2;
  --cream-dark: #e8e0d0;
  --ink: #1a1a1a;
  --ink-light: #4a4a4a;
  --ink-faint: #8a8a8a;
  --white: #ffffff;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background-color: var(--cream-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 24px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--ink-light);
  max-width: 520px;
  line-height: 1.7;
}

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

.btn-primary {
  background: var(--emerald);
  color: var(--white);
  border-color: var(--emerald);
}

.btn-primary:hover {
  background: var(--emerald-dark);
  border-color: var(--emerald-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13, 110, 63, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-full {
  width: 100%;
}

/* — Navigation — */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-dark);
  transition: box-shadow 0.3s var(--ease);
}

.nav.scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-mark {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--emerald);
  line-height: 1;
}

.nav-logo-text {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light);
  position: relative;
  transition: color 0.3s var(--ease);
}

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

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

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
}

/* — Hero — */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: var(--cream-light);
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(13, 110, 63, 0.04) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(13, 110, 63, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 28px;
}

.hero-headline-accent {
  font-style: italic;
  color: var(--emerald);
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--ink-light);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* — Hero Stat Cards — */
.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--emerald);
  opacity: 0.6;
}

.stat-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 32px rgba(13, 110, 63, 0.1);
}

.stat-card-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.stat-card-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 4px;
}

.stat-card-sub {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  line-height: 1.4;
}

.stat-card--2::before { opacity: 0.4; }
.stat-card--3::before { opacity: 0.3; }

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

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

.about-image-wrap {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/5;
}

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

.about-image-wrap:hover img {
  transform: scale(1.03);
}

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

.about-content p {
  font-size: 1rem;
  color: var(--ink-light);
  line-height: 1.85;
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--cream-dark);
}

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

.about-stat-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--emerald);
  line-height: 1;
}

.about-stat-desc {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  line-height: 1.4;
}

.about-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--cream-dark);
  flex-shrink: 0;
}

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

.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(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

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

.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-body {
  padding: 28px 32px;
}

.collection-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
}

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

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

.visit-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.visit-desc {
  font-size: 1.0625rem;
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 48px;
}

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

.visit-detail dt {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.visit-detail dd {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
}

.visit-detail dd a {
  color: var(--emerald);
  transition: color 0.3s var(--ease);
}

.visit-detail dd a:hover {
  color: var(--emerald-dark);
}

.visit-map-wrap {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--cream-dark);
  aspect-ratio: 4/3;
}

.visit-map-wrap iframe {
  width: 100%;
  height: 100%;
}

/* — Contact — */
.contact {
  padding: 120px 0;
  background: var(--emerald);
  color: var(--white);
}

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

.contact .section-eyebrow {
  color: rgba(255, 255, 255, 0.6);
}

.contact .section-title {
  color: var(--white);
}

.contact-desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-direct {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--white);
  transition: opacity 0.3s var(--ease);
}

.contact-phone:hover {
  opacity: 0.8;
}

/* — Form — */
.contact-form-wrap {
  background: var(--white);
  border-radius: 8px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--cream-light);
  border: 1px solid var(--cream-dark);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(13, 110, 63, 0.1);
}

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

.form-success {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--emerald);
}

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

/* — Footer — */
.footer {
  padding: 64px 0 40px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}

.footer-logo-text {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s var(--ease);
}

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

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
}

/* — Scroll Animations — */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* — Responsive — */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr 300px;
    gap: 40px;
  }
  
  .about-grid {
    gap: 48px;
  }
  
  .contact-layout {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid var(--cream-dark);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
    pointer-events: none;
  }
  
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-cards {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .stat-card {
    flex: 1;
    min-width: 180px;
  }
  
  .about {
    padding: 80px 0;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-image-wrap {
    aspect-ratio: 3/2;
  }
  
  .collection {
    padding: 80px 0;
  }
  
  .collection-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .visit {
    padding: 80px 0;
  }
  
  .visit-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .visit-map-wrap {
    aspect-ratio: 16/9;
  }
  
  .contact {
    padding: 80px 0;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .contact-form-wrap {
    padding: 28px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }
  
  .hero-headline {
    font-size: 2.25rem;
  }
  
  .hero-cta-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-cards {
    flex-direction: column;
  }
  
  .stat-card {
    min-width: auto;
  }
  
  .about-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .about-stat-divider {
    width: 48px;
    height: 1px;
  }
}
