/* Casbah Clay — shared site styles
   Bold Moroccan-inspired palette: terracotta, emerald, gold, indigo */

:root {
  --terracotta: #c1502e;
  --terracotta-dark: #9c3d20;
  --emerald: #0f6b5c;
  --emerald-dark: #0a4a40;
  --gold: #d4a017;
  --gold-light: #f0c75e;
  --indigo: #2e3a6e;
  --indigo-dark: #1f2850;
  --sand: #f4e9d8;
  --cream: #fbf5ea;
  --charcoal: #2b241d;
  --pattern-line: rgba(212, 160, 23, 0.35);
  --shadow: 0 10px 30px rgba(43, 36, 29, 0.18);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Georgia', 'Iowan Old Style', serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
}

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

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Moroccan zellige-inspired repeating pattern strip */
.pattern-strip {
  height: 10px;
  width: 100%;
  background-image: repeating-linear-gradient(
    45deg,
    var(--gold) 0, var(--gold) 10px,
    var(--terracotta) 10px, var(--terracotta) 20px,
    var(--emerald) 20px, var(--emerald) 30px,
    var(--indigo) 30px, var(--indigo) 40px
  );
}

/* Header / Nav */
header.site-header {
  background: var(--indigo);
  color: var(--cream);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
}

.brand .brand-mark {
  width: 34px;
  height: 34px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.2s, color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 55%, var(--indigo-dark) 100%);
  color: var(--cream);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
      135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 40px
    ),
    repeating-linear-gradient(
      45deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 40px
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 90px 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 0.4em;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 14px;
  display: block;
}

.hero p.lede {
  font-size: 1.15rem;
  max-width: 46ch;
  color: var(--sand);
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art svg {
  width: 100%;
  max-width: 340px;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.35));
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Palatino Linotype', Georgia, serif;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
}
.btn-gold:hover { box-shadow: 0 8px 18px rgba(212,160,23,0.4); }

.btn-outline {
  background: transparent;
  border-color: var(--cream);
  color: var(--cream);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-emerald {
  background: var(--emerald);
  color: var(--cream);
}
.btn-emerald:hover { box-shadow: 0 8px 18px rgba(15,107,92,0.4); }

/* Sections */
section { padding: 80px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head .eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--terracotta);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 2.1rem;
  color: var(--indigo-dark);
}

.section-head p {
  color: #5c5142;
}

.bg-sand { background: var(--sand); }
.bg-indigo { background: var(--indigo); color: var(--cream); }
.bg-indigo .section-head h2 { color: var(--gold-light); }
.bg-indigo .section-head p { color: var(--sand); }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--gold);
  text-align: center;
}

.feature-card:nth-child(2) { border-top-color: var(--terracotta); }
.feature-card:nth-child(3) { border-top-color: var(--emerald); }

.feature-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
}

.feature-card h3 {
  font-size: 1.2rem;
  color: var(--indigo-dark);
}

.feature-card p {
  color: #5c5142;
  font-size: 0.96rem;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.product-card:hover { transform: translateY(-6px); }

.product-media {
  background: linear-gradient(160deg, var(--sand), #fff);
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 4px solid var(--gold);
}

.product-media img { max-height: 200px; }

.product-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body h3 {
  font-size: 1.25rem;
  color: var(--indigo-dark);
  margin-bottom: 6px;
}

.product-body .tagline {
  color: var(--terracotta);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.product-body p.desc {
  color: #5c5142;
  font-size: 0.95rem;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--emerald-dark);
}

/* Featured strip on home */
.featured-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Testimonial / quote */
.quote-block {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--indigo-dark);
  position: relative;
  padding: 0 40px;
}

.quote-block cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terracotta);
}

/* About page specifics */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.story-grid .story-art svg { max-width: 320px; margin: 0 auto; }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.timeline-step {
  text-align: center;
  padding: 20px 14px;
  border-left: 3px solid var(--gold);
}

.timeline-step .year {
  font-weight: 700;
  color: var(--terracotta);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.timeline-step p {
  font-size: 0.9rem;
  color: #5c5142;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-card {
  background: var(--indigo);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-info-card h3 {
  color: var(--gold-light);
  margin-bottom: 18px;
}

.contact-info-card .info-line {
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.contact-info-card .info-line strong {
  display: block;
  color: var(--gold-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.social-row {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--gold-light);
  transition: background 0.2s;
}
.social-row a:hover { background: rgba(212,160,23,0.2); }

form.contact-form {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-row { margin-bottom: 20px; }

.form-row label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--indigo-dark);
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9c9a8;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.98rem;
  background: #fff;
}

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

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--terracotta);
}

/* Newsletter band */
.newsletter-band {
  background: var(--emerald);
  color: var(--cream);
  padding: 50px 0;
  text-align: center;
}

.newsletter-band h2 { color: var(--gold-light); font-size: 1.6rem; }

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  width: 320px;
  max-width: 80vw;
  font-family: inherit;
}

/* Footer */
footer.site-footer {
  background: var(--charcoal);
  color: var(--sand);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: var(--gold-light);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid li a:hover { color: var(--gold-light); }

.footer-grid p { font-size: 0.92rem; color: #cbbfa8; }

.footer-bottom {
  border-top: 1px solid #453b2e;
  padding-top: 22px;
  text-align: center;
  font-size: 0.82rem;
  color: #a89a7d;
}

/* Utility */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 60px 24px; text-align: center; }
  .hero p.lede { margin: 0 auto; }
  .feature-grid, .product-grid, .featured-strip { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav.main-nav ul { gap: 18px; flex-wrap: wrap; }
  .nav-wrap { flex-direction: column; gap: 14px; }
}
