/*
Theme Name: EmbroiderEze
Theme URI: https://www.embroidereze.org.za
Author: EmbroiderEze
Description: Custom theme for EmbroiderEze embroidery studio, Rustenburg
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: embroidereze
*/

:root {
  --navy:   #1A1A2E;
  --linen:  #F5F0E8;
  --gold:   #C9A96E;
  --mauve:  #7B4F6E;
  --forest: #2D4A3E;
  --mid:    #3A3A52;
  --soft:   #E8E2D6;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--linen);
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 48px;
  background: rgba(26,26,46,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,169,110,0.18);
}
.nav-logo { display: flex; align-items: center; gap: 12px; cursor: pointer; text-decoration: none; }
.nav-logo img { height: clamp(60px, 8vw, 120px); width: auto; max-height: 90px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: .9rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--soft);
  text-decoration: none; transition: color .2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-links a:hover, .nav-links a.current { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.current::after { transform: scaleX(1); }
.nav-cta {
  background: var(--gold); color: var(--navy);
  border: none; padding: 10px 22px; border-radius: 2px;
  font-weight: 600; font-size: .85rem; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer; transition: background .2s;
  text-decoration: none; display: inline-block;
}
.nav-cta:hover { background: #dbb87a; color: var(--navy); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--gold); border-radius: 2px; display: block; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--gold); color: var(--navy);
  border: none; padding: 14px 32px; border-radius: 2px;
  font-weight: 600; font-size: .9rem; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer; transition: background .2s, transform .15s;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: #dbb87a; transform: translateY(-2px); color: var(--navy); }
.btn-outline {
  background: transparent; color: var(--linen);
  border: 1px solid rgba(245,240,232,.35); padding: 14px 32px; border-radius: 2px;
  font-weight: 500; font-size: .9rem; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer; transition: all .2s;
  text-decoration: none; display: inline-block;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ── STITCH UTILITIES ── */
.stitch-line {
  width: 100%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold) 0, var(--gold) 8px, transparent 8px, transparent 16px);
  opacity: .35; margin: 0 auto;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(123,79,110,.2) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(45,74,62,.25) 0%, transparent 55%);
  pointer-events: none;
}
.hero-image-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .08; pointer-events: none;
}
.hero-eyebrow {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px; position: relative;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; width: 40px; height: 1px; background: var(--gold); opacity: .5;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.05; font-weight: 700;
  color: var(--linen); margin-bottom: 10px; position: relative;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 300;
  color: rgba(245,240,232,.75); max-width: 580px;
  line-height: 1.7; margin: 20px auto 44px; position: relative;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; position: relative; }
.hero-thread {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 2px; height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent); opacity: .4;
}

/* ── GALLERY STRIP (hero) ── */
.hero-gallery {
  display: flex; gap: 12px; margin-top: 48px; position: relative;
  overflow: hidden; max-width: 900px; width: 100%;
}
.hero-gallery img {
  width: 140px; height: 100px; object-fit: cover;
  border-radius: 3px; opacity: .6; transition: opacity .3s;
  flex-shrink: 0; border: 1px solid rgba(201,169,110,.2);
}
.hero-gallery img:hover { opacity: 1; }

/* ── SECTIONS ── */
.section { padding: 88px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  color: var(--linen); line-height: 1.15; margin-bottom: 16px;
}
.section-body { color: rgba(245,240,232,.65); line-height: 1.8; max-width: 620px; }

/* ── WHY CARDS ── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 56px; }
.why-card {
  padding: 36px 28px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(201,169,110,.15); border-radius: 4px;
  transition: border-color .25s, transform .2s;
}
.why-card:hover { border-color: rgba(201,169,110,.45); transform: translateY(-4px); }
.why-icon { font-size: 2rem; margin-bottom: 16px; }
.why-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 10px; color: var(--linen); }
.why-card p { font-size: .9rem; color: rgba(245,240,232,.6); line-height: 1.7; }

/* ── EMBROIDERY SHOWCASE ── */
.showcase-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px;
}
.showcase-item {
  position: relative; border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(201,169,110,.15);
}
.showcase-item img {
  width: 100%; height: 220px; object-fit: cover; display: block;
  transition: transform .4s;
}
.showcase-item:hover img { transform: scale(1.05); }
.showcase-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,.85) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 16px;
  opacity: 0; transition: opacity .3s;
}
.showcase-item:hover .overlay { opacity: 1; }
.showcase-item .overlay span {
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
}

/* ── TESTIMONIAL ── */
.testi-strip { background: rgba(45,74,62,.15); padding: 64px 24px; }
.testi-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.testi-quote {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem); line-height: 1.65;
  color: var(--linen); margin-bottom: 20px;
}
.testi-author { font-size: .85rem; letter-spacing: .1em; color: var(--gold); text-transform: uppercase; }

/* ── PAGE HERO ── */
.page-hero {
  padding: 120px 24px 56px; text-align: center; position: relative;
  background: linear-gradient(180deg, rgba(123,79,110,.12) 0%, transparent 100%);
}
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 5vw, 4rem); color: var(--linen); margin-bottom: 16px; }
.page-hero p { color: rgba(245,240,232,.65); font-size: 1.05rem; max-width: 520px; margin: 0 auto; line-height: 1.75; }

/* ── SERVICES ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 56px; }
.service-card {
  background: rgba(255,255,255,.03); border-top: 3px solid var(--gold);
  padding: 40px 32px; border-radius: 2px; transition: background .25s;
}
.service-card:hover { background: rgba(255,255,255,.06); }
.service-card .tag {
  display: inline-block; font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mauve);
  background: rgba(123,79,110,.15); padding: 4px 10px; border-radius: 2px; margin-bottom: 16px;
}
.service-card h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 12px; color: var(--linen); }
.service-card p { font-size: .92rem; color: rgba(245,240,232,.6); line-height: 1.75; margin-bottom: 20px; }
.service-cta { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.service-cta:hover { color: #dbb87a; }

/* ── GALLERY PAGE ── */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 40px 0 44px; }
.filter-btn {
  padding: 8px 20px; border-radius: 2px;
  border: 1px solid rgba(201,169,110,.25);
  background: transparent; color: rgba(245,240,232,.7);
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: all .2s;
}
.filter-btn.active, .filter-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-card {
  position: relative; border-radius: 4px; overflow: hidden;
  aspect-ratio: 4/3; border: 1px solid rgba(201,169,110,.12);
  background: var(--mid); transition: transform .25s;
}
.gallery-card:hover { transform: scale(1.02); }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-card .placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--mid) 0%, rgba(45,74,62,.5) 100%);
}
.gallery-overlay {
  position: absolute; inset: 0; opacity: 0; transition: opacity .25s;
  background: linear-gradient(to top, rgba(26,26,46,.95) 0%, rgba(26,26,46,.4) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 4px; }
.gallery-overlay span { font-size: .78rem; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }

/* ── UPLOAD SECTION ── */
.upload-zone {
  margin-top: 56px; padding: 48px 32px; text-align: center;
  border: 2px dashed rgba(201,169,110,.3); border-radius: 4px;
  background: rgba(255,255,255,.02);
}
.upload-zone h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 12px; }
.upload-zone p { color: rgba(245,240,232,.6); font-size: .92rem; margin-bottom: 24px; }

/* ── BOOKING ── */
.booking-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; margin-top: 52px; }
.booking-info h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 16px; }
.booking-info p { font-size: .92rem; color: rgba(245,240,232,.65); line-height: 1.8; margin-bottom: 28px; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.info-list li { display: flex; align-items: flex-start; gap: 12px; font-size: .9rem; color: rgba(245,240,232,.7); }
.info-list li .dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.payment-box { margin-top: 36px; padding: 24px; border: 1px dashed rgba(201,169,110,.3); border-radius: 2px; }

.booking-form-wrap { background: rgba(255,255,255,.03); border: 1px solid rgba(201,169,110,.15); padding: 44px; border-radius: 4px; }
.progress-steps { display: flex; margin-bottom: 36px; }
.step {
  flex: 1; text-align: center;
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(245,240,232,.4); padding-bottom: 12px;
  border-bottom: 2px solid rgba(201,169,110,.15); transition: color .3s;
}
.step.active { color: var(--gold); border-bottom-color: var(--gold); }
.step-num { display: block; font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: rgba(255,255,255,.05);
  border: 1px solid rgba(201,169,110,.2); border-radius: 2px;
  color: var(--linen); font-family: 'DM Sans', sans-serif; font-size: .92rem;
  padding: 12px 14px; outline: none; transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: var(--navy); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* ── CONTACT ── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; margin-top: 52px; }
.contact-details { display: flex; flex-direction: column; gap: 28px; }
.ci-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.ci-value { font-size: 1rem; color: var(--linen); line-height: 1.65; }
.ci-value a { color: var(--linen); text-decoration: none; }
.ci-value a:hover { color: var(--gold); }
.social-row { display: flex; gap: 12px; margin-top: 8px; }
.social-btn {
  width: 42px; height: 42px; border: 1px solid rgba(201,169,110,.25);
  border-radius: 2px; display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .2s;
  text-decoration: none; color: rgba(245,240,232,.6);
}
.social-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,169,110,.08); }
.contact-form-wrap { background: rgba(255,255,255,.03); border: 1px solid rgba(201,169,110,.15); padding: 44px; border-radius: 4px; }
.contact-form-wrap h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 24px; color: var(--linen); }
.map-embed { margin-top: 56px; border-radius: 4px; overflow: hidden; border: 1px solid rgba(201,169,110,.12); }
.map-embed iframe { width: 100%; height: 280px; border: none; display: block; filter: grayscale(30%); }

/* ── SUCCESS MSG ── */
.success-msg {
  display: none; text-align: center; padding: 32px;
  background: rgba(45,74,62,.25); border: 1px solid rgba(201,169,110,.3);
  border-radius: 4px; margin-top: 12px;
}
.success-msg.show { display: block; }
.success-msg .check { font-size: 2.5rem; margin-bottom: 12px; }
.success-msg h4 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 8px; }
.success-msg p { font-size: .9rem; color: rgba(245,240,232,.65); }

/* ── FOOTER ── */
footer {
  background: rgba(0,0,0,.35); border-top: 1px solid rgba(201,169,110,.12);
  padding: 56px 24px 28px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 16px; display: block; }
.footer-brand p { font-size: .85rem; color: rgba(245,240,232,.45); line-height: 1.7; max-width: 220px; }
.footer-col h4 { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: .85rem; color: rgba(245,240,232,.5); text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1100px; margin: 32px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(201,169,110,.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .75rem; color: rgba(245,240,232,.3); flex-wrap: wrap; gap: 12px;
}
.footer-bottom img { transition: opacity .2s; }
.footer-bottom img:hover { opacity: 1 !important; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 68px; left: 0; right: 0; background: var(--navy);
    padding: 24px; gap: 20px; border-bottom: 1px solid rgba(201,169,110,.15);
    z-index: 999;
  }
  .booking-layout, .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .booking-form-wrap, .contact-form-wrap { padding: 24px; }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .hero-gallery { display: none; }
}
