/* ============================================================
   Heritage Guitars UK — Main Stylesheet
   ============================================================ */

/* ── 1. Google Fonts Import ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Open+Sans:wght@300;400;600;700&display=swap');

/* ── 2. CSS Custom Properties ────────────────────────────── */
:root {
  /* Brand Colours */
  --dark-wood:   #3E2C23;
  --cream:       #F5F1E8;
  --charcoal:    #1F1F1F;
  --gold:        #C8A96A;
  --gold-light:  #D9BC8C;
  --gold-dark:   #A88A4A;
  --wood-mid:    #5C3D2E;

  /* Text */
  --text-dark:   #2A1F18;
  --text-body:   #4A3C32;
  --text-muted:  #7A6B5F;
  --text-light:  #F5F1E8;

  /* UI */
  --border:      rgba(62, 44, 35, 0.15);
  --overlay:     rgba(31, 18, 10, 0.55);

  /* Typography */
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'Open Sans', system-ui, sans-serif;

  /* Spacing scale */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  3rem;
  --sp-xl:  5rem;
  --sp-2xl: 8rem;

  /* Layout */
  --max-w:    1200px;
  --header-h: 78px;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  /* Shadows */
  --sh-sm: 0 2px 10px rgba(62, 44, 35, 0.10);
  --sh-md: 0 4px 24px rgba(62, 44, 35, 0.16);
  --sh-lg: 0 8px 48px rgba(62, 44, 35, 0.22);

  /* Transitions */
  --t: 0.3s ease;
}

/* ── 3. Reset & Base ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text-body);
  line-height: 1.7;
  /* Subtle wood-grain texture via repeating gradients */
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 48px,
      rgba(62, 44, 35, 0.018) 48px,
      rgba(62, 44, 35, 0.018) 49px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 72px,
      rgba(62, 44, 35, 0.012) 72px,
      rgba(62, 44, 35, 0.012) 73px
    );
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── 4. Typography ───────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem,   5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── 5. Utility Classes ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

.section {
  padding: var(--sp-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-lg);
}

.section-header h2 {
  margin-bottom: var(--sp-xs);
}

.section-header .subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.gold-line {
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: var(--sp-sm) auto;
  border-radius: 2px;
}

/* ── 6. Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--t);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--charcoal);
  box-shadow: var(--sh-sm);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--charcoal);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--dark-wood);
  color: var(--cream);
  box-shadow: var(--sh-sm);
}

.btn-dark:hover {
  background: var(--charcoal);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
}

/* ── 7. Site Header & Navigation ─────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-h);
  background: rgba(62, 44, 35, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 169, 106, 0.2);
  transition: background var(--t), box-shadow var(--t);
}

.site-header.scrolled {
  background: rgba(31, 18, 10, 0.98);
  box-shadow: var(--sh-md);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  flex-shrink: 0;
}

.logo-icon svg {
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-brand {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-menu a {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.82);
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0.85rem;
  right: 0.85rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--t);
  transform-origin: left;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--cream);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t);
}

.hamburger:hover { background: rgba(200, 169, 106, 0.15); }

.hamburger span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t), width var(--t);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 8. Page Hero Banner (inner pages) ───────────────────── */
.page-hero {
  padding-top: calc(var(--header-h) + var(--sp-lg));
  padding-bottom: var(--sp-lg);
  background: linear-gradient(135deg, var(--dark-wood) 0%, var(--charcoal) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(200, 169, 106, 0.03) 20px,
    rgba(200, 169, 106, 0.03) 40px
  );
}

.page-hero h1 {
  color: var(--cream);
  position: relative;
  z-index: 1;
}

.page-hero .subtitle {
  color: var(--gold-light);
  font-size: 1.05rem;
  margin-top: var(--sp-xs);
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(245, 241, 232, 0.5);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; }

/* ── 9. Home Page — Hero ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/1010519/pexels-photo-1010519.jpeg?auto=compress&cs=tinysrgb&w=1920');
  /* Photo by Pexels — CC0 licence */
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(31, 18, 10, 0.65) 0%,
    rgba(31, 18, 10, 0.50) 50%,
    rgba(31, 18, 10, 0.80) 100%
  );
}

.hero:hover .hero-bg { transform: scale(1); }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: var(--sp-lg) var(--sp-md);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-sm);
  border: 1px solid rgba(200, 169, 106, 0.4);
  padding: 0.3rem 1rem;
  border-radius: 2px;
}

.hero-content h1 {
  color: var(--cream);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
  margin-bottom: var(--sp-sm);
}

.hero-content h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(245, 241, 232, 0.88);
  margin-bottom: var(--sp-lg);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(245, 241, 232, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2.4s ease infinite;
}

.hero-scroll span { display: block; width: 1px; height: 36px; background: rgba(200, 169, 106, 0.5); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── 10. Home — Feature Bar ──────────────────────────────── */
.features-bar {
  background: var(--dark-wood);
  padding: var(--sp-md) 0;
  border-bottom: 2px solid rgba(200, 169, 106, 0.25);
}

.features-bar .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-sm);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream);
  padding: 0.5rem;
}

.feature-item svg {
  flex-shrink: 0;
  color: var(--gold);
}

.feature-item p { margin: 0; font-size: 0.85rem; }
.feature-item strong { display: block; font-size: 0.9rem; }

/* ── 11. Home — Categories ───────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-md);
}

.category-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  height: 340px;
  box-shadow: var(--sh-md);
  transition: transform var(--t), box-shadow var(--t);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover img { transform: scale(1.06); }

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31, 18, 10, 0.85) 0%, rgba(31, 18, 10, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-md);
}

.category-overlay h3 {
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.category-overlay p {
  color: var(--gold-light);
  font-size: 0.85rem;
  margin-bottom: var(--sp-sm);
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap var(--t);
}

.category-link:hover { gap: 0.7rem; }

/* ── 12. Home — About Intro ──────────────────────────────── */
.about-intro {
  background: var(--dark-wood);
  color: var(--cream);
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

.about-intro-img {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 4/3;
}

.about-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-intro-text h2 { color: var(--cream); }
.about-intro-text .gold-line { margin-left: 0; }
.about-intro-text p { color: rgba(245, 241, 232, 0.82); }

.stats-row {
  display: flex;
  gap: var(--sp-lg);
  margin: var(--sp-md) 0;
}

.stat { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(245, 241, 232, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── 13. Home — Testimonials ─────────────────────────────── */
.testimonials { background: var(--cream); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-md);
}

.testimonial-card {
  background: var(--white, #fff);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  transition: box-shadow var(--t);
}

.testimonial-card:hover { box-shadow: var(--sh-md); }

.stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: var(--sp-sm);
  line-height: 1.65;
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark-wood);
  display: block;
}

.testimonial-card cite span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ── 14. Shop Page ───────────────────────────────────────── */
.shop-controls {
  padding: var(--sp-md) 0 var(--sp-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
}

.filter-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.55rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-body);
  background: transparent;
  transition: all var(--t);
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--dark-wood);
}

.filter-btn.active {
  background: var(--dark-wood);
  border-color: var(--dark-wood);
  color: var(--cream);
}

.product-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.product-count strong { color: var(--dark-wood); }

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--sp-md);
  padding-bottom: var(--sp-xl);
}

/* Product Card */
.product-card {
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
  transition: transform var(--t), box-shadow var(--t);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
}

.product-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img { transform: scale(1.06); }

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--dark-wood);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

.product-info {
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-make {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.2rem;
}

.product-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: var(--sp-sm);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--border);
}

.product-price {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark-wood);
}

/* Fade-in animation for product cards */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.product-card.fade-in {
  animation: fadeUp 0.45s ease both;
}

/* ── 15. About Page ──────────────────────────────────────── */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
  margin-bottom: var(--sp-xl);
}

.about-story-img {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  position: relative;
}

.about-story-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* Keep founder portrait fully visible (face + guitar) */
.about-founder-img {
  background: var(--charcoal);
}

.about-founder-img img {
  object-fit: cover;
  object-position: center top;
}

.about-story-img::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid var(--gold);
  border-radius: calc(var(--r-md) + 8px);
  opacity: 0.4;
  z-index: -1;
}

.about-story-text .gold-line { margin-left: 0; }

.about-story-text p { color: var(--text-body); margin-bottom: 1rem; }

/* Why Choose Us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-md);
}

.why-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: var(--sp-md) var(--sp-md);
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform var(--t), box-shadow var(--t);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

.why-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--dark-wood), var(--wood-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-sm);
  color: var(--gold);
}

.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--dark-wood);
}

.why-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* Values banner */
.values-banner {
  background: var(--dark-wood);
  padding: var(--sp-xl) 0;
  text-align: center;
  color: var(--cream);
}

.values-banner h2 { color: var(--cream); margin-bottom: var(--sp-xs); }
.values-banner p  { color: rgba(245,241,232,0.75); max-width: 600px; margin: 0 auto var(--sp-lg); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-md);
  margin-top: var(--sp-md);
}

.value-item { padding: var(--sp-sm); }
.value-item svg { color: var(--gold); margin: 0 auto var(--sp-xs); display: block; }
.value-item h4 { color: var(--gold-light); margin-bottom: 0.3rem; }
.value-item p  { font-size: 0.83rem; color: rgba(245,241,232,0.65); margin: 0; }

/* ── 16. Contact Page ────────────────────────────────────── */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-xl);
  align-items: start;
}

.contact-form-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  box-shadow: var(--sh-md);
}

.contact-form-card h2 {
  margin-bottom: 0.25rem;
}

.contact-form-card > p {
  color: var(--text-muted);
  margin-bottom: var(--sp-md);
}

/* Form elements */
.form-group {
  margin-bottom: var(--sp-sm);
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select,
.form-group select option {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.18);
  background: #fff;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.form-group input.success,
.form-group textarea.success {
  border-color: #27ae60;
}

.field-error {
  display: block;
  font-size: 0.78rem;
  color: #c0392b;
  margin-top: 0.3rem;
  min-height: 1em;
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: var(--sp-lg);
}

.form-success-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--dark-wood), var(--wood-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-sm);
  color: var(--gold);
}

.form-success h3 { color: var(--dark-wood); margin-bottom: 0.5rem; }
.form-success p  { color: var(--text-muted); }

/* Contact details panel */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.contact-info-card {
  background: var(--dark-wood);
  color: var(--cream);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  box-shadow: var(--sh-md);
}

.contact-info-card h3 {
  color: var(--gold);
  margin-bottom: var(--sp-sm);
  font-size: 1.1rem;
}

.contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: var(--sp-sm);
}

.contact-item:last-child { margin-bottom: 0; }

.contact-item svg {
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}

.contact-item p {
  font-size: 0.9rem;
  color: rgba(245,241,232,0.85);
  margin: 0;
  line-height: 1.6;
}

.contact-item strong { display: block; color: var(--cream); }

/* Map placeholder */
.map-placeholder {
  background: var(--cream);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
}

.map-inner {
  height: 220px;
  background:
    linear-gradient(135deg, rgba(62,44,35,0.06) 0%, transparent 60%),
    repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(62,44,35,0.04) 20px, rgba(62,44,35,0.04) 21px),
    repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(62,44,35,0.04) 20px, rgba(62,44,35,0.04) 21px),
    #e8e4d8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--dark-wood);
}

.map-inner svg { color: var(--gold); }
.map-inner p   { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.map-address {
  padding: var(--sp-sm) var(--sp-md);
  background: var(--dark-wood);
  color: var(--cream);
  font-size: 0.85rem;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

.opening-hours {
  background: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
}

.opening-hours h3 {
  color: var(--dark-wood);
  margin-bottom: var(--sp-sm);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.opening-hours h3 svg { color: var(--gold); }

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
}

.hours-row:last-child { border-bottom: none; }
.hours-row .day { font-weight: 600; color: var(--text-dark); }
.hours-closed { color: var(--text-muted) !important; }

/* ── 17. Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  color: rgba(245, 241, 232, 0.75);
  padding: var(--sp-xl) 0 0;
  border-top: 3px solid var(--dark-wood);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-lg);
}

.footer-brand .logo { margin-bottom: var(--sp-sm); }
.footer-brand .logo-brand { color: var(--cream); }

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: var(--sp-sm);
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(200, 169, 106, 0.12);
  border: 1px solid rgba(200, 169, 106, 0.25);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: background var(--t), border-color var(--t), transform var(--t);
}

.social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-head);
  color: var(--cream);
  font-size: 1rem;
  margin-bottom: var(--sp-sm);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(200, 169, 106, 0.2);
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-col ul li a {
  font-size: 0.87rem;
  color: rgba(245, 241, 232, 0.65);
  transition: color var(--t);
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-contact li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  font-size: 0.87rem;
}

.footer-contact li svg {
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(200, 169, 106, 0.12);
  padding: 1.2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(245, 241, 232, 0.4);
  margin: 0;
}

.footer-bottom a {
  color: rgba(245, 241, 232, 0.4);
  font-size: 0.8rem;
  transition: color var(--t);
}

.footer-bottom a:hover { color: var(--gold); }

/* ── 18. Scroll Animations ───────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* ── 19. Responsive — Mobile First ───────────────────────── */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-intro-grid,
  .about-story-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .about-intro-img,
  .about-story-img {
    max-height: 320px;
  }

  .about-story-img img { height: 320px; }

  .about-founder-img img {
    object-fit: cover;
    object-position: center top;
  }

  .stats-row { gap: var(--sp-md); }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }

  /* Mobile nav */
  .hamburger { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 18, 10, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    backdrop-filter: blur(16px);
  }

  .site-nav.active { transform: translateX(0); }

  .nav-menu {
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    padding: 0 var(--sp-md);
    text-align: center;
  }

  .nav-menu a {
    font-size: 1.3rem;
    padding: 0.85rem;
    display: block;
    color: var(--cream);
  }

  .nav-menu a::after { display: none; }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
  }

  .footer-brand .footer-desc { max-width: 100%; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-content h1 { font-size: clamp(2rem, 8vw, 3rem); }

  .shop-controls {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .category-card { height: 280px; }
  .stats-row { flex-direction: column; gap: var(--sp-sm); }
  .hero-cta { flex-direction: column; align-items: center; }
  .contact-form-card { padding: var(--sp-md); }
}

/* ── Guitar Detail Modal ─────────────────────────────────── */
.guitar-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 18, 10, 0.72);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.guitar-modal {
  background: var(--cream);
  border-radius: var(--r-lg);
  box-shadow: 0 16px 64px rgba(31, 18, 10, 0.45);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: row;
  position: relative;
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.guitar-modal-image {
  flex: 0 0 42%;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  min-height: 420px;
}

.guitar-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guitar-modal-body {
  flex: 1 1 auto;
  padding: 2rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.guitar-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 0.35rem;
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}

.guitar-modal-close:hover {
  color: var(--dark-wood);
  background: rgba(62, 44, 35, 0.08);
}

.guitar-modal-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(200, 169, 106, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  width: fit-content;
}

.guitar-modal-make {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0;
}

.guitar-modal-name {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin: 0;
}

.guitar-modal-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 0;
}

.guitar-modal-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.75;
  flex: 1;
}

.guitar-modal-price {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-wood);
}

.guitar-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

@media (max-width: 640px) {
  .guitar-modal {
    flex-direction: column;
    max-height: 95vh;
  }

  .guitar-modal-image {
    flex: 0 0 220px;
    min-height: 220px;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }

  .guitar-modal-body {
    padding: 1.25rem 1.25rem 1rem;
  }

  .guitar-modal-name {
    font-size: 1.3rem;
  }
}
