/* ============================================
   Freeport Emporium — Styles
   Clean minimalist · Teal + Slate Grey
   ============================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  --container-max: 1200px;
  --transition: 0.3s 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(--slate-800);
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow var(--transition);
}

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

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo-mark {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--teal-700);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--teal-700);
  border-radius: 4px;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--slate-800);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
}

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

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

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

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

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--slate-700);
  transition: all var(--transition);
  transform-origin: center;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}
.nav-toggle.active .nav-toggle-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .nav-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition);
}

.mobile-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.mobile-overlay .mobile-nav-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile-overlay .mobile-nav-links a {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--slate-800);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.mobile-overlay .mobile-nav-links a:hover {
  color: var(--teal-700);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding-top: 72px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
}

.hero-inner {
  flex: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-text {
  padding-right: var(--space-lg);
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: var(--space-lg);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--slate-900);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

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

.hero-desc {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--slate-500);
  max-width: 440px;
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--teal-700);
  color: #ffffff;
  border: 1.5px solid var(--teal-700);
}

.btn-primary:hover {
  background: var(--teal-800);
  border-color: var(--teal-800);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-700);
  border: 1.5px solid var(--slate-300);
}

.btn-ghost:hover {
  border-color: var(--teal-700);
  color: var(--teal-700);
}

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

/* Hero image */
.hero-image {
  position: relative;
}

.hero-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

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

.hero-img-wrapper:hover img {
  transform: scale(1.02);
}

.hero-img-accent {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--teal-200);
  border-radius: 2px;
  z-index: -1;
}

/* Hero bottom line */
.hero-line {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.hero-line::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: var(--slate-200);
}

/* ============================================
   Section shared
   ============================================ */
.section-divider {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-400);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--slate-900);
  letter-spacing: -0.01em;
}

/* Label */
.about-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.label-line {
  width: 32px;
  height: 1px;
  background: var(--teal-600);
  flex-shrink: 0;
}

.label-text {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-600);
}

.section-subtitle {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--slate-500);
  max-width: 520px;
  margin-top: var(--space-md);
}

/* ============================================
   About
   ============================================ */
.about {
  padding: var(--space-4xl) 0;
  background: var(--slate-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-4xl);
  align-items: start;
}

.about-content {
  padding-top: var(--space-xs);
}

.about-text {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--slate-600);
  margin-bottom: var(--space-md);
}

.about-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--slate-200);
}

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

.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--teal-700);
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--slate-500);
  letter-spacing: 0.02em;
}

.stat-divider {
  flex: 1;
  height: 1px;
  background: var(--slate-200);
}

/* ============================================
   Collections
   ============================================ */
.collections {
  padding: var(--space-4xl) 0;
}

.collections-header {
  margin-bottom: var(--space-3xl);
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.collection-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  display: block;
  group: true;
}

.collection-card-img {
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3/2;
}

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

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

.collection-card-info {
  padding: var(--space-md) 0;
}

.collection-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--slate-900);
  margin-bottom: 0.375rem;
}

.collection-card-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--slate-500);
}

.collection-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal-600);
  transition: width var(--transition);
}

.collection-card:hover::after {
  width: 100%;
}

/* ============================================
   Visit
   ============================================ */
.visit {
  padding: var(--space-4xl) 0;
  background: var(--slate-50);
}

.visit-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.visit-detail {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.visit-icon {
  width: 20px;
  height: 20px;
  color: var(--teal-600);
  flex-shrink: 0;
  margin-top: 3px;
}

.visit-detail-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 0.25rem;
}

.visit-detail-value {
  font-size: 1rem;
  color: var(--slate-700);
  line-height: 1.6;
}

.visit-detail-value a {
  color: var(--teal-700);
  transition: color var(--transition);
}

.visit-detail-value a:hover {
  color: var(--teal-500);
  text-decoration: underline;
}

.visit-hours {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--slate-200);
}

.visit-hours-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: var(--space-md);
}

.visit-hours-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.visit-hours-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
  font-size: 0.9375rem;
  color: var(--slate-700);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--slate-100);
}

.hours-day {
  color: var(--slate-600);
}

.hours-time {
  color: var(--slate-500);
  font-weight: 400;
}

.visit-hours-note {
  font-size: 0.8125rem;
  color: var(--slate-400);
  margin-top: var(--space-sm);
  font-style: italic;
}

.visit-map {
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 6/7;
}

.visit-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   Contact
   ============================================ */
.contact {
  padding: var(--space-4xl) 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.contact-desc {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--slate-500);
  margin-top: var(--space-lg);
}

.contact-form-wrapper {
  background: var(--slate-50);
  padding: var(--space-2xl);
  border-radius: 2px;
  border: 1px solid var(--slate-200);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

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

.form-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.form-input {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--slate-800);
  background: #ffffff;
  border: 1px solid var(--slate-300);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-input:focus {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-input::placeholder {
  color: var(--slate-400);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

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

/* Form success */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  gap: var(--space-md);
}

.form-success svg {
  width: 48px;
  height: 48px;
  color: var(--teal-600);
}

.form-success-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--slate-900);
}

.form-success-text {
  font-size: 0.9375rem;
  color: var(--slate-500);
  line-height: 1.7;
  max-width: 300px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--slate-800);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-brand .nav-logo-mark {
  width: 44px;
  height: 44px;
  font-size: 1.75rem;
  border-color: var(--teal-500);
  color: var(--teal-400);
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--slate-200);
  font-weight: 400;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.6;
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

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

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

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

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

.footer-bottom {
  padding-top: var(--space-lg);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--slate-600);
}

/* ============================================
   Scroll animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner {
    gap: var(--space-2xl);
  }

  .about-grid {
    gap: var(--space-2xl);
  }

  .collections-grid {
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    gap: var(--space-xl);
  }

  .hero-text {
    padding-right: 0;
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-img-wrapper {
    aspect-ratio: 4/3;
  }

  .hero-img-accent {
    display: none;
  }

  .hero-headline {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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

  .visit-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .visit-map {
    aspect-ratio: 16/9;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .stat-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --space-lg: 1.25rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .contact-form-wrapper {
    padding: var(--space-lg);
  }
}
