/* ============================================================
   THE AMERICAN MURAL COMPANY — main.css
   Shared styles for all pages
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Pacifico&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Colors */
  --bg:      #F4E9D2;
  --surface: #FBF6EC;
  --fg:      #2B2622;
  --muted:   #6B5648;
  --border:  #D8CCBA;
  --red:     #A8322D;
  --navy:    #1F3A5F;
  --mustard: #D9A521;
  --sage:    #5A7D5A;

  /* Typography */
  --font-display: 'Alfa Slab One', Georgia, serif;
  --font-script:  'Pacifico', cursive;
  --font-body:    'Lora', Georgia, serif;

  /* Layout */
  --nav-h:  72px;
  --max-w:  1200px;
  --radius: 3px;
}

/* ── Reset ────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

ul {
  list-style: none;
}

/* ── Base Body ────────────────────────────────────────────── */
body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* ── Grain Texture Overlay ────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.042;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23grain)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
}

/* ── Photo Treatment ──────────────────────────────────────── */
.photo-warm {
  filter: sepia(0.15) saturate(1.1) brightness(1.05);
}

/* ── Layout Helpers ───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-pad {
  padding: 80px 0;
}

.section-pad-sm {
  padding: 56px 0;
}

/* ── Typography Utilities ─────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 400; /* Alfa Slab One is a display weight */
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 0.5rem;
}

/* ── Section Header ───────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-top: 0.5rem;
}

.section-header p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ── Rule Dividers ────────────────────────────────────────── */
.rule-divider {
  border: none;
  border-top: 1.5px solid var(--border);
  margin: 2rem 0;
}

.rule-divider-red {
  border: none;
  border-top: 3px solid var(--red);
  width: 48px;
  margin: 1rem auto;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  text-align: center;
}

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

.btn-red {
  background-color: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn-red:hover {
  background-color: #8e2723;
  border-color: #8e2723;
}

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

.btn-outline:hover {
  background-color: var(--red);
  color: #fff;
}

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

.btn-outline-cream:hover {
  background-color: var(--bg);
  color: var(--fg);
}

.btn-navy {
  background-color: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-navy:hover {
  background-color: #162d4e;
  border-color: #162d4e;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--fg);
  background-color: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(168, 50, 45, 0.12);
}

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

/* ── Site Navigation ──────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--nav-h);
  background-color: var(--bg);
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-brand-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--fg);
  line-height: 1.15;
  max-width: 160px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.03em;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--red);
}

.nav-links a.active {
  color: var(--red);
  font-weight: 600;
}

.nav-links .btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
}

/* Burger button (mobile) */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--fg);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Site Footer ──────────────────────────────────────────── */
.site-footer {
  background-color: var(--navy);
  color: rgba(251, 246, 236, 0.85);
  border-top: 3px solid var(--red);
}

.footer-main {
  padding: 64px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-col-brand .footer-tagline {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 0.85rem;
}

.footer-col-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(251, 246, 236, 0.72);
  margin-bottom: 1rem;
}

.footer-copyright {
  font-size: 0.78rem;
  color: rgba(251, 246, 236, 0.45);
  margin-top: 1.5rem;
}

.footer-col-nav h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(251, 246, 236, 0.5);
  margin-bottom: 1rem;
}

.footer-col-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col-nav a {
  font-size: 0.9rem;
  color: rgba(251, 246, 236, 0.8);
  transition: color 0.15s ease;
}

.footer-col-nav a:hover {
  color: #fff;
}

.footer-col-badge {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.footer-col-badge svg {
  width: 96px;
  height: 96px;
}

.footer-bottom {
  border-top: 1px solid rgba(251, 246, 236, 0.12);
  padding: 16px 0;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(251, 246, 236, 0.4);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav mobile */
  .nav-burger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--bg);
    border-bottom: 1.5px solid var(--border);
    padding: 1rem 24px 1.5rem;
    gap: 0.75rem;
    z-index: 890;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links .btn {
    text-align: center;
    margin-top: 0.5rem;
  }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-col-badge {
    justify-content: flex-start;
  }

  /* Typography */
  .section-pad {
    padding: 56px 0;
  }

  .section-pad-sm {
    padding: 40px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }
}
