/* ============================================
   POINT 5 JERSEY — Styles
   Classic & Elegant | Terracotta + Sand
   ============================================ */

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

:root {
  --color-terracotta: #B55239;
  --color-terracotta-dark: #9A4229;
  --color-terracotta-light: #D4755E;
  --color-sand: #F5EDE3;
  --color-sand-light: #FDF6EE;
  --color-sand-dark: #E8D9C8;
  --color-cream: #FFFAF5;
  --color-charcoal: #2C2420;
  --color-warm-gray: #5C4F47;
  --color-medium-gray: #8A7E76;
  --color-light-gray: #C4B8AE;

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Lora', Georgia, 'Times New Roman', serif;

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

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px rgba(44, 36, 32, 0.08);
  --shadow-md: 0 4px 16px rgba(44, 36, 32, 0.1);
  --shadow-lg: 0 8px 32px rgba(44, 36, 32, 0.12);

  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-terracotta);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-terracotta-dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ---------- ICON ---------- */
.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-terracotta {
  background-color: var(--color-terracotta);
  color: #FDF6EE;
  border-color: var(--color-terracotta);
}

.btn-terracotta:hover {
  background-color: var(--color-terracotta-dark);
  border-color: var(--color-terracotta-dark);
  color: #FDF6EE;
}

.btn-outline-light {
  background-color: transparent;
  color: #FDF6EE;
  border-color: rgba(253, 246, 238, 0.6);
}

.btn-outline-light:hover {
  background-color: rgba(253, 246, 238, 0.1);
  border-color: #FDF6EE;
  color: #FDF6EE;
}

.btn-small {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* ---------- SECTION UTILITIES ---------- */
.section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}

.section-eyebrow {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--color-warm-gray);
  line-height: 1.7;
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(253, 246, 238, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-sand-dark);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--color-charcoal);
}

.logo-mark {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-terracotta);
  line-height: 1;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-terracotta);
  border-radius: 50%;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- NAV ---------- */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-menu a {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-warm-gray);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-terracotta);
  transition: width var(--transition);
}

.nav-menu a:hover {
  color: var(--color-terracotta);
}

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

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

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-charcoal);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-charcoal);
}

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

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

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 36, 32, 0.55) 0%,
    rgba(44, 36, 32, 0.7) 50%,
    rgba(44, 36, 32, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
  max-width: 800px;
}

.hero-eyebrow {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-sand-dark);
  margin-bottom: var(--space-md);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: #FDF6EE;
  margin-bottom: var(--space-md);
}

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

.hero-sub {
  font-size: 1.125rem;
  color: rgba(253, 246, 238, 0.8);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto var(--space-lg);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.hero-meta {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: rgba(253, 246, 238, 0.7);
}

.hero-meta-item a {
  color: rgba(253, 246, 238, 0.7);
  text-decoration: none;
  transition: color var(--transition);
}

.hero-meta-item a:hover {
  color: #FDF6EE;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(253, 246, 238, 0.5);
  animation: heroScrollPulse 2s ease-in-out infinite;
}

.hero-scroll:hover {
  color: rgba(253, 246, 238, 0.9);
}

@keyframes heroScrollPulse {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ---------- ABOUT ---------- */
.about {
  background-color: var(--color-cream);
}

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

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

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.about-image-accent {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-terracotta);
  border-radius: var(--radius-md);
  z-index: -1;
  opacity: 0.3;
}

.about-content {
  padding: var(--space-md) 0;
}

.about-content p {
  color: var(--color-warm-gray);
  margin-bottom: var(--space-md);
  font-size: 1.0625rem;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-sand-dark);
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-charcoal);
}

.value-item .icon {
  color: var(--color-terracotta);
  width: 1.25rem;
  height: 1.25rem;
}

/* ---------- PRODUCTS ---------- */
.products {
  background-color: var(--color-sand);
}

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

.product-card {
  background-color: var(--color-cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card-img {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-card-body {
  padding: var(--space-lg);
}

.product-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: var(--space-sm);
}

.product-card-desc {
  font-size: 0.9375rem;
  color: var(--color-warm-gray);
  line-height: 1.7;
}

/* ---------- GALLERY ---------- */
.gallery {
  background-color: var(--color-cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-md);
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
}

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

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

.gallery-item--tall {
  grid-column: 1 / 6;
  grid-row: 1 / 3;
  aspect-ratio: 3 / 4;
}

.gallery-item:not(.gallery-item--tall) {
  aspect-ratio: 3 / 2;
}

.gallery-item--wide {
  grid-column: 6 / 13;
  aspect-ratio: 16 / 9;
}

/* ---------- VISIT ---------- */
.visit {
  background-color: var(--color-charcoal);
  color: #FDF6EE;
}

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

.visit .section-eyebrow {
  color: var(--color-terracotta-light);
}

.visit .section-title {
  color: #FDF6EE;
}

.visit-details {
  font-style: normal;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.visit-details p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(253, 246, 238, 0.8);
}

.visit-details strong {
  color: #FDF6EE;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.visit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-terracotta-light);
  text-decoration: none;
  font-size: 1.0625rem;
  transition: color var(--transition);
}

.visit-link:hover {
  color: #FDF6EE;
}

.visit-hours {
  background-color: rgba(253, 246, 238, 0.06);
  border: 1px solid rgba(253, 246, 238, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.visit-hours-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: #FDF6EE;
  margin-bottom: var(--space-md);
}

.hours-list {
  list-style: none;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(253, 246, 238, 0.08);
  font-size: 0.9375rem;
}

.hours-row:last-of-type {
  border-bottom: none;
}

.hours-row span:first-child {
  color: rgba(253, 246, 238, 0.7);
}

.hours-row span:last-child {
  color: #FDF6EE;
  font-weight: 500;
}

.hours-note {
  font-size: 0.8125rem;
  color: rgba(253, 246, 238, 0.45);
  margin-top: var(--space-sm);
  font-style: italic;
}

.visit-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

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

/* ---------- FOOTER ---------- */
.footer {
  background-color: var(--color-charcoal);
  border-top: 1px solid rgba(253, 246, 238, 0.08);
  color: rgba(253, 246, 238, 0.6);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl) 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand .logo-mark {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 2rem;
}

.footer-brand .logo-text {
  color: #FDF6EE;
  font-size: 1.5rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(253, 246, 238, 0.45);
  margin-top: 0.25rem;
}

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

.footer-links a {
  color: rgba(253, 246, 238, 0.6);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #FDF6EE;
}

.footer-contact {
  text-align: right;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.footer-contact a {
  color: var(--color-terracotta-light);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: #FDF6EE;
}

.footer-bottom {
  border-top: 1px solid rgba(253, 246, 238, 0.08);
  padding: var(--space-md) 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(253, 246, 238, 0.35);
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .about-grid {
    gap: var(--space-xl);
  }

  .gallery-item--tall {
    grid-column: 1 / 7;
    aspect-ratio: 4 / 5;
  }

  .gallery-item--wide {
    grid-column: 7 / 13;
    aspect-ratio: 16 / 10;
  }
}

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

  /* Mobile nav */
  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-sand-light);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-menu a {
    font-size: 1.125rem;
  }

  /* Hero */
  .hero {
    min-height: 100svh;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-meta {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image-wrap {
    max-height: 400px;
  }

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

  /* Products */
  .products-grid {
    grid-template-columns: 1fr;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-item--tall {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 5;
  }

  .gallery-item--wide {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .gallery-item:not(.gallery-item--tall):not(.gallery-item--wide) {
    aspect-ratio: 4 / 3;
  }

  /* Visit */
  .visit-grid {
    grid-template-columns: 1fr;
  }

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

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
  }

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

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

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

  .product-card-body {
    padding: var(--space-md);
  }

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

  .gallery-item--tall,
  .gallery-item--wide,
  .gallery-item:not(.gallery-item--tall):not(.gallery-item--wide) {
    grid-column: 1;
    aspect-ratio: 4 / 3;
  }
}
