/* ==========================================================================
   Carved — Personalized Laser Engraving Centre
   Shared stylesheet for all pages.

   PALETTE NOTE: These are starting values chosen before real product
   photography was available. Once the Instagram export / real photos are
   in hand, retune these hex values so the palette complements the actual
   wood tones, metals, and finishes being photographed.
   ========================================================================== */

:root {
  /* Wood-tone neutrals */
  --color-walnut: #6b4a30;       /* deep walnut — headings, footer bg */
  --color-tan: #a9754a;          /* warm tan — primary accent / buttons */
  --color-tan-light: #d9b895;    /* light tan — subtle backgrounds, borders */
  --color-cream: #f6efe6;        /* warm cream — page background */
  --color-white: #fffdfa;        /* card / surface background */

  /* Dark accent — lets engraving detail pop in photos */
  --color-charcoal: #2b2b2b;     /* body text, dark surfaces */
  --color-charcoal-soft: #4a4642; /* secondary text */

  /* Feedback / utility */
  --color-whatsapp: #25d366;
  --color-border: #e3d5c2;

  /* Typography */
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --max-width: 1100px;
  --radius: 6px;
  --shadow-soft: 0 2px 10px rgba(43, 43, 43, 0.08);
  --shadow-card: 0 4px 16px rgba(43, 43, 43, 0.12);
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  line-height: 1.6;
}

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

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

a:hover,
a:focus {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-walnut);
  line-height: 1.25;
  margin-top: 0;
}

p {
  margin-top: 0;
}

ul {
  padding-left: 1.2em;
}

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

section {
  padding: 2.5rem 0;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--color-charcoal);
  letter-spacing: 0.03em;
  text-decoration: none;
}

.logo span {
  color: var(--color-tan);
}

.logo:hover {
  text-decoration: none;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-charcoal);
  background: var(--color-white);
}

.main-nav {
  width: 100%;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.main-nav a {
  color: var(--color-charcoal-soft);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-tan);
  border-bottom-color: var(--color-tan);
  text-decoration: none;
}

@media (max-width: 640px) {
  .nav-toggle-label {
    display: inline-block;
  }

  .main-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0;
  }

  .nav-toggle:checked ~ .main-nav {
    max-height: 400px;
  }
}

/* ==========================================================================
   Buttons / CTAs
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-tan);
  color: var(--color-white);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-walnut);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-white);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  background-color: #1ea952;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-walnut);
  color: var(--color-walnut);
}

.btn-outline:hover,
.btn-outline:focus {
  background-color: var(--color-walnut);
  color: var(--color-white);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: linear-gradient(180deg, var(--color-tan-light) 0%, var(--color-cream) 100%);
  padding: 2.5rem 0 3rem;
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-tan);
  margin-bottom: 0.5rem;
}

.hero-copy h1 {
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
}

.hero-copy p {
  font-size: 1.05rem;
  color: var(--color-charcoal-soft);
  max-width: 42em;
}

@media (min-width: 780px) {
  .hero .container {
    flex-direction: row;
    align-items: center;
  }

  .hero-copy,
  .hero-media {
    flex: 1;
  }

  .hero-copy h1 {
    font-size: 2.6rem;
  }
}

/* ==========================================================================
   Placeholder image blocks
   ========================================================================== */

.placeholder-img {
  background: repeating-linear-gradient(
    135deg,
    var(--color-tan-light),
    var(--color-tan-light) 12px,
    #eddcc4 12px,
    #eddcc4 24px
  );
  border: 1px dashed var(--color-tan);
  border-radius: var(--radius);
  color: var(--color-walnut);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 1rem;
  min-height: 220px;
}

.hero-media .placeholder-img {
  min-height: 260px;
  font-size: 1rem;
}

.placeholder-img--square {
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.placeholder-img--wide {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

/* ==========================================================================
   Real product photography
   ========================================================================== */

.hero-img,
.about-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

.card-img,
.gallery-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ==========================================================================
   Sections / cards
   ========================================================================== */

.section-heading {
  text-align: center;
  max-width: 40em;
  margin: 0 auto 2rem;
}

.section-heading h2 {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.section-heading p {
  color: var(--color-charcoal-soft);
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.intro-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .intro-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-category {
  margin-bottom: 3rem;
}

.gallery-category h2 {
  font-size: 1.4rem;
  border-bottom: 2px solid var(--color-tan-light);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 620px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gallery-card .placeholder-img {
  min-height: 140px;
}

.gallery-card-caption {
  font-size: 0.85rem;
  color: var(--color-charcoal-soft);
  text-align: center;
}

/* ==========================================================================
   Steps (How It Works)
   ========================================================================== */

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .steps-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-tan);
  color: var(--color-white);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--color-charcoal-soft);
  font-size: 0.95rem;
}

/* ==========================================================================
   About
   ========================================================================== */

.about-story {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 780px) {
  .about-story {
    flex-direction: row;
    align-items: center;
  }

  .about-story > * {
    flex: 1;
  }
}

.placeholder-note {
  background: var(--color-tan-light);
  border-left: 4px solid var(--color-tan);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--color-walnut);
  margin: 1.5rem 0;
}

/* ==========================================================================
   Visit / contact info blocks
   ========================================================================== */

.info-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

@media (min-width: 700px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.info-card p {
  margin-bottom: 0.5rem;
}

.map-wrap {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.order-form {
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.form-field .optional {
  font-weight: 400;
  color: var(--color-charcoal-soft);
  font-size: 0.85rem;
}

.form-field input[type="text"],
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-cream);
  color: var(--color-charcoal);
}

.form-field input[type="text"]:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-tan);
  outline-offset: 1px;
}

.form-field textarea {
  resize: vertical;
  min-height: 90px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-charcoal-soft);
  background: var(--color-tan-light);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status[data-state="error"] {
  color: #b3261e;
}

.form-status[data-state="success"] {
  color: #1ea952;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--color-charcoal);
  color: #e9e3da;
  margin-top: 3rem;
  padding: 2.5rem 0 2rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--color-tan-light);
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-grid h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-sisters a {
  display: inline-block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  color: #b7b0a6;
  font-size: 0.8rem;
  text-align: center;
}
