/* ============================================
   Mac's General Merchandise — Styles
   Bold editorial | Burgundy + Blush | Playfair + Inter
   ============================================ */

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

:root {
  --color-burgundy: #7B2D3B;
  --color-burgundy-deep: #5C1F2C;
  --color-burgundy-light: #9A3D4E;
  --color-blush: #F5E6E0;
  --color-blush-light: #FBF5F2;
  --color-blush-mid: #EDD8D0;
  --color-cream: #FDF8F5;
  --color-white: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-muted: #5A5A5A;
  --color-text-light: #8A8A8A;
  --color-border: #E8D8D2;
  --color-bg-warm: #F7EDE8;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-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: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(123, 45, 59, 0.06), 0 1px 2px rgba(123, 45, 59, 0.04);
  --shadow-md: 0 4px 16px rgba(123, 45, 59, 0.08), 0 2px 4px rgba(123, 45, 59, 0.04);
  --shadow-lg: 0 12px 40px rgba(123, 45, 59, 0.12), 0 4px 12px rgba(123, 45, 59, 0.06);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

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

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-burgundy-deep);
}

em {
  font-style: italic;
  color: var(--color-burgundy);
}

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

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-burgundy);
  color: var(--color-white);
  border: 2px solid var(--color-burgundy);
}

.btn-primary:hover {
  background: var(--color-burgundy-deep);
  border-color: var(--color-burgundy-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-burgundy);
  border: 2px solid var(--color-burgundy);
}

.btn-outline:hover {
  background: var(--color-burgundy);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-nav {
  background: var(--color-burgundy);
  color: var(--color-white);
  padding: 0.625rem 1.25rem;
  font-size: 0.85rem;
}

.btn-nav:hover {
  background: var(--color-burgundy-deep);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-burgundy-deep);
}

.logo--light {
  color: var(--color-white);
}

.logo-mark {
  color: var(--color-burgundy);
  flex-shrink: 0;
}

.logo--light .logo-mark {
  color: var(--color-blush);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-burgundy);
  transition: var(--transition);
}

.nav-links a:not(.btn):hover {
  color: var(--color-burgundy);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-burgundy-deep);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

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

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

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

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-burgundy-deep);
  transition: var(--transition);
}

.mobile-nav-link:hover {
  color: var(--color-burgundy);
}

.mobile-nav-link--cta {
  margin-top: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 2rem;
  background: var(--color-burgundy);
  color: var(--color-white);
  border-radius: var(--radius-sm);
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: var(--color-cream);
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(123, 45, 59, 0.04) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(245, 230, 224, 0.8) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 1;
}

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

.hero-headline {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: var(--space-md);
  color: var(--color-burgundy-deep);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  max-width: 520px;
}

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

.hero-image-wrap {
  position: relative;
  height: 600px;
}

.hero-image {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.hero-image--main {
  width: 360px;
  height: 460px;
  top: 0;
  right: 0;
  z-index: 2;
}

.hero-image--secondary {
  width: 220px;
  height: 280px;
  bottom: 40px;
  left: 0;
  z-index: 3;
  border: 4px solid var(--color-cream);
}

.hero-accent {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--color-blush);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  animation: float 2s ease-in-out infinite;
}

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

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

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

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

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

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

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

.about-image-accent {
  position: absolute;
  width: 120px;
  height: 120px;
  background: var(--color-blush);
  border-radius: 50%;
  bottom: -30px;
  right: -30px;
  z-index: -1;
  pointer-events: none;
}

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

.about-content p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.about-stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

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

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-burgundy);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

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

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

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.product-card-image {
  height: 220px;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

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

.product-card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--color-burgundy-deep);
}

.product-card-body p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- COMMUNITY --- */
.community {
  background: var(--color-burgundy-deep);
  color: var(--color-white);
}

.community .section-eyebrow {
  color: var(--color-blush);
}

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

.community .section-title em {
  color: var(--color-blush);
}

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

.community-text p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.community-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.community-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.feature-icon {
  color: var(--color-blush);
  flex-shrink: 0;
  margin-top: 2px;
}

.community-image-stack {
  position: relative;
  height: 560px;
}

.stack-item {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.stack-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stack-item--1 {
  width: 280px;
  height: 380px;
  top: 0;
  right: 0;
  z-index: 2;
}

.stack-item--2 {
  width: 260px;
  height: 260px;
  bottom: 0;
  left: 20px;
  z-index: 3;
  border: 4px solid var(--color-burgundy-deep);
}

/* --- VISIT --- */
.visit {
  background: var(--color-white);
}

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

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

.visit-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.visit-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.visit-detail-icon {
  color: var(--color-burgundy);
  flex-shrink: 0;
  margin-top: 2px;
}

.visit-detail strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-burgundy);
  margin-bottom: 0.25rem;
}

.visit-detail span,
.visit-detail a {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

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

.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-placeholder {
  background: var(--color-blush);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder-inner {
  text-align: center;
  padding: var(--space-xl);
}

.map-placeholder-inner svg {
  color: var(--color-burgundy);
  margin-bottom: var(--space-sm);
}

.map-placeholder-inner p {
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.map-placeholder-inner p:first-of-type {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

/* --- CONTACT --- */
.contact {
  background: var(--color-blush-light);
}

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

.contact-text p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.contact-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

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

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  color: var(--color-text);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-burgundy);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.08);
}

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

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

.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(123, 45, 59, 0.06);
  border-radius: var(--radius-sm);
  color: var(--color-burgundy);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: var(--space-sm);
}

.form-success svg {
  flex-shrink: 0;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--color-burgundy-deep);
  color: var(--color-white);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: var(--space-sm);
  max-width: 320px;
}

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

.footer-links strong {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blush);
  margin-bottom: var(--space-xs);
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-white);
  padding-left: 4px;
}

.footer-contact strong {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blush);
  display: block;
  margin-bottom: var(--space-xs);
}

.footer-contact p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s 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-image-wrap {
    height: 480px;
  }

  .hero-image--main {
    width: 280px;
    height: 380px;
  }

  .hero-image--secondary {
    width: 180px;
    height: 220px;
  }

  .stack-item--1 {
    width: 220px;
    height: 300px;
  }

  .stack-item--2 {
    width: 200px;
    height: 200px;
  }
}

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

  .nav-toggle {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-xl) 0 var(--space-2xl);
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image-wrap {
    display: none;
  }

  .about-grid,
  .community-inner,
  .visit-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .about-image-wrap {
    order: -1;
  }

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

  .community-image-stack {
    height: 400px;
    order: -1;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

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

  .hero {
    padding-top: 64px;
  }

  .hero-headline {
    font-size: 2rem;
  }

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

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

  .about-stats {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .contact-form-wrap {
    padding: var(--space-md);
  }

  .section {
    padding: var(--space-2xl) 0;
  }
}
