/* ============================================================
   Tex-Mex C Company — "Southwestern maker"
   Fraunces (display) + Karla (body)
   terracotta / sand / dark brown ink / teal / cream
   ============================================================ */

:root {
  --terracotta: #B44A2D;
  --terracotta-deep: #93371D;
  --sand: #F4E8D8;
  --ink: #3A2A20;
  --teal: #2F6D62;
  --teal-deep: #234F47;
  --cream: #FDF8EF;
  --line: rgba(58, 42, 32, 0.28);
  --radius: 8px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Karla", "Gill Sans", "Segoe UI", Verdana, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  color: var(--ink);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* ---------- Top ribbon ---------- */

.topbar {
  background: var(--terracotta);
  color: var(--cream);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
}

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 60;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.25rem;
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span {
  color: var(--terracotta);
}

.site-nav a {
  margin-left: 1.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.6rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
}

.nav-toggle span + span {
  margin-top: 5px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 4.5rem 0 4.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.kicker {
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 1.1rem;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
}

.hero .lede {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 34rem;
  margin: 0 0 2rem;
}

/* Offset image frame: teal outline shifted behind the photo */

.offset-frame {
  position: relative;
}

.offset-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--teal);
  border-radius: var(--radius);
  transform: translate(12px, 12px);
  z-index: 0;
}

.offset-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--terracotta {
  background: var(--terracotta);
  color: var(--cream);
}

.btn--terracotta:hover {
  background: var(--terracotta-deep);
}

.btn--cream {
  background: var(--cream);
  color: var(--ink);
}

.btn--cream:hover {
  background: var(--sand);
}

/* ---------- Pattern divider band ---------- */

.band {
  height: 14px;
  background: repeating-linear-gradient(
    45deg,
    var(--terracotta) 0 12px,
    var(--sand) 12px 24px
  );
}

/* ---------- Sections ---------- */

.section {
  padding: 4.25rem 0;
}

.section-title {
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.08;
  margin: 0 0 1rem;
}

.section-lede {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 44rem;
  margin: 0 0 0.5rem;
}

/* ---------- What we make: stacked cards ---------- */

.product-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2.5rem 0 0;
}

.product-card {
  background: var(--cream);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.product-card:nth-of-type(even) .product-media {
  order: -1;
}

.product-body {
  padding: 2.8rem 2.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--terracotta);
  margin: 0 0 1rem;
}

.product-body h3 {
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.15;
  margin: 0 0 0.9rem;
}

.product-body p {
  line-height: 1.7;
  margin: 0;
}

.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

/* ---------- Wholesale ---------- */

.wholesale-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.wholesale-grid p {
  line-height: 1.7;
  margin: 0 0 1.1rem;
}

.checklist-heading {
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding: 0.8rem 0 0.8rem 2rem;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 1.02rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--terracotta);
}

.checklist li:nth-of-type(even)::before {
  background: var(--teal);
}

/* ---------- Story ---------- */

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.story-grid p {
  line-height: 1.7;
  margin: 0 0 1.1rem;
}

.text-link {
  color: var(--terracotta);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--terracotta-deep);
}

/* ---------- Teal CTA band ---------- */

.cta-band {
  background: var(--teal);
  color: var(--cream);
  text-align: center;
  padding: 4.5rem 1rem;
}

.cta-band h2 {
  color: var(--cream);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.cta-band p {
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--sand);
  padding: 3.5rem 0 1.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
}

.site-footer h3 {
  color: var(--cream);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.site-footer p {
  margin: 0 0 0.6rem;
  line-height: 1.65;
}

.site-footer a {
  color: var(--sand);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--cream);
  text-decoration: underline;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.smallprint {
  border-top: 1px solid rgba(244, 232, 216, 0.25);
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Page heads (inner pages) ---------- */

.page-head {
  padding: 3.5rem 0 2.5rem;
}

.page-head h1 {
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.page-head .lede {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 44rem;
  margin: 0;
}

/* ---------- Prose (policies, about, services) ---------- */

.prose {
  max-width: 46rem;
}

.prose h2 {
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 2.2rem 0 0.8rem;
}

.prose p,
.prose li {
  line-height: 1.75;
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose ul {
  margin: 0 0 1.1rem;
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.last-updated {
  display: inline-block;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4rem;
  font-size: 0.93rem;
}

.policy-table th,
.policy-table td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.policy-table th {
  background: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
}

/* ---------- Blockquote ---------- */

.pull-quote {
  border-left: 4px solid var(--terracotta);
  margin: 2rem 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
}

.pull-quote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.45;
  margin: 0 0 0.6rem;
}

.pull-quote cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.info-block h2 {
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}

.info-block p {
  margin: 0 0 1.4rem;
  line-height: 1.7;
}

.info-block a {
  color: var(--terracotta);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hours {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.hours li span:last-child {
  font-weight: 700;
}

.contact-form {
  background: var(--cream);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-form .field {
  margin-bottom: 1.1rem;
}

.contact-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.88rem;
  margin: 0.9rem 0 0;
}

.map-embed {
  width: 100%;
  border: 0;
  min-height: 360px;
  border-radius: var(--radius);
}

.map-wrap {
  margin-top: 3rem;
}

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--sand);
  border-top: 4px solid var(--terracotta);
  padding: 1.1rem 1rem;
}

.cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-banner a {
  color: var(--cream);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.7rem;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.cookie-btn--accept {
  background: var(--terracotta);
  color: var(--cream);
  border: 2px solid var(--terracotta);
}

.cookie-btn--accept:hover {
  background: var(--terracotta-deep);
  border-color: var(--terracotta-deep);
}

.cookie-btn--decline {
  background: transparent;
  color: var(--sand);
  border: 2px solid var(--sand);
}

.cookie-btn--decline:hover {
  color: var(--cream);
  border-color: var(--cream);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid,
  .wholesale-grid,
  .story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card .product-media {
    order: -1;
  }

  .product-body {
    padding: 2rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.5rem 1.2rem;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav a {
    display: block;
    margin: 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 3rem 0;
  }

  .cta-band {
    padding: 3.25rem 1rem;
  }
}
