/* ==========================================================================
   Xolo Cinco — shared stylesheet (all 5 pages)
   ========================================================================== */

:root {
  /* Brand colors (Xolo Cinco - Brand Kit Colors + Fonts.docx) */
  --color-navy: #2c2c76;
  --color-red: #ff311a;
  --color-gold: #fbb64e;
  --color-mist: #cad1db;
  --color-tan: #bca18d;

  /* Derived surface tones */
  --color-paper: #f6f0e6;
  --color-ink: #201f3a;
  --color-cream: #fbf8f2;

  /* Type
     NOTE: "Neo Contact" is named as the title face in the brand kit doc but no
     font files were supplied — Alfa Slab One is a free stand-in with the same
     heavy vintage-poster slab feel. Swap the font-family below if/when the
     licensed Neo Contact files are available. */
  --font-title: "Alfa Slab One", "Neo Contact", Georgia, serif;
  --font-subtitle: "Space Mono", "Courier New", monospace;
  --font-heading: "Courier New", Courier, monospace;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-w: 1240px;
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---- Textures & surfaces -------------------------------------------------- */
.texture-paper {
  background-color: var(--color-cream);
  background-image: url("../assets/img/paper-grain.jpg");
  background-size: 700px;
  background-repeat: repeat;
  background-blend-mode: overlay;
}

.texture-tile {
  background-color: var(--color-tan);
  background-image: url("../assets/img/bg-green.jpg");
  background-size: 320px;
  background-repeat: repeat;
}

/* ---- Typography helpers ---------------------------------------------------- */
.eyebrow {
  font-family: var(--font-subtitle);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-navy);
}

.section-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  color: var(--color-ink);
}

.section-lede {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #4a4864;
  max-width: 56ch;
}

/* ---- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.95em 1.7em;
  border: 2px solid var(--color-ink);
  background: var(--color-cream);
  color: var(--color-ink);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-cream);
}
.btn-primary:hover { background: var(--color-ink); border-color: var(--color-ink); }

.btn-ghost {
  background: transparent;
  border-color: currentColor;
}

/* ==========================================================================
   Header
   ========================================================================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-cream);
  border-bottom: 3px solid var(--color-ink);
}

#site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo img { height: 30px; width: auto; }

#primary-nav ul {
  display: flex;
  align-items: center;
  gap: 40px;
}
#primary-nav a {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
#primary-nav a:hover,
#primary-nav a[aria-current="page"] {
  border-bottom-color: var(--color-red);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-ink);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  margin: 4px 0;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  #primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    border-bottom: 3px solid var(--color-ink);
  }
  #primary-nav.is-open { display: block; }
  #primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 20px;
  }
  #primary-nav li { width: 100%; }
  #primary-nav a { display: block; padding: 12px 0; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
#hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 9vw, 96px);
  padding-bottom: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-bottom: 40px;
}

.hero-tagline {
  margin: 28px auto 0;
  max-width: 720px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  color: var(--color-ink);
}

.hero-copy {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: 1.05rem;
  color: #3d3b58;
}

.hero-location {
  margin: 18px auto 30px;
  font-family: var(--font-subtitle);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: #6b6890;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Dogs + logo/pronunciation guide stacked on top of one another */
.hero-stack {
  position: relative;
  margin: 18px auto 0;
  display: flex;
  justify-content: center;
}

.hero-figures {
  display: flex;
  justify-content: center;
}
.hero-figures img {
  width: min(1040px, 92vw);
  height: auto;
  display: block;
  opacity: 0.58;
}

.hero-overlay {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  margin: 0 0 10px;
  max-width: 900px;
  width: 78%;
}
.hero-title img { width: 100%; height: auto; display: block; margin: 0 auto; }

/* Pronunciation guide sits right under the logo, on a soft translucent
   panel (same treatment as .tile-text-panel) so the pale mist color still
   reads against the paper texture without fully blocking it */
.hero-sub {
  display: inline-flex;
  margin: 0;
  max-width: 70%;
  background: rgba(20, 20, 40, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 999px;
  padding: 6px 16px;
}
.hero-sub img { width: 260px; max-width: 100%; height: auto; display: block; }

/* Text panel that sits on top of the busy tile texture, for legibility */
.tile-text-panel {
  display: inline-block;
  max-width: 62ch;
  background: rgba(20, 20, 40, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 10px;
  padding: 26px 30px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

/* ==========================================================================
   Services preview (index.html) — same tile/card pattern as services.html
   ========================================================================== */
#services-preview { padding: clamp(84px, 7vw, 120px) 0; }

#services-preview .section-heading,
#services-preview .eyebrow { color: var(--color-cream); }
#services-preview .section-lede { color: #eee6f5; }

.services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.services-head .btn-ghost { border-color: var(--color-cream); color: var(--color-cream); }

/* ==========================================================================
   Services (services.html) — built on the "case study card" pattern:
   tile-textured section, cream cards with a thumb strip + tag + title.
   Reused verbatim so a future Case Studies page can share the same look.
   ========================================================================== */
#services-list {
  padding: clamp(56px, 9vw, 96px) 0 84px;
  color: var(--color-cream);
}

#services-list .section-heading,
#services-list .eyebrow { color: var(--color-cream); }
#services-list .section-lede { color: #eee6f5; max-width: 62ch; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 44px;
}

.work-card {
  background: var(--color-cream);
  color: var(--color-ink);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  border: 2px solid var(--color-ink);
  scroll-margin-top: 96px;
}

.work-card .work-thumb {
  height: 150px;
  background: var(--color-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-navy);
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

.work-card .work-body { padding: 24px 26px 28px; }
.work-card h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-top: 10px;
}
.work-card p {
  margin-top: 10px;
  font-size: 0.92rem;
  color: #4a4864;
}
.work-card .work-capabilities {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(32, 31, 58, 0.14);
  font-size: 0.82rem;
  color: #6b6890;
}

@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   About preview
   ========================================================================== */
#about-preview {
  padding: clamp(84px, 7vw, 120px) 0;
}
#about-story {
  padding: clamp(56px, 9vw, 96px) 0 84px;
}
.about-preview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.about-preview-figure {
  border: 2px solid var(--color-ink);
  border-radius: 6px;
  background: var(--color-mist);
  padding: 30px;
  display: flex;
  justify-content: center;
}
.about-preview-figure img { max-height: 320px; }

.about-preview-grid p.section-lede + p.section-lede { margin-top: 14px; }

@media (max-width: 860px) {
  .about-preview-grid { grid-template-columns: 1fr; }
  .about-preview-figure { order: -1; }
}

/* ==========================================================================
   Mix and match
   ========================================================================== */
#mix-and-match { padding: 64px 0; }
.mix-inner {
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}
.mix-inner .section-heading { margin-top: 10px; }
.mix-inner .section-lede { margin: 14px auto 0; }

/* ==========================================================================
   How it works
   ========================================================================== */
#how-it-works { padding: clamp(84px, 7vw, 120px) 0; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 44px;
}
.step {
  border-top: 3px solid var(--color-ink);
  padding-top: 18px;
}
.step-num {
  display: block;
  font-family: var(--font-title);
  color: var(--color-red);
  font-size: 1.7rem;
  margin-bottom: 10px;
}
.step h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.step p {
  font-size: 0.95rem;
  color: #4a4864;
}

@media (max-width: 860px) {
  .steps-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */
#contact-intro { padding: clamp(56px, 9vw, 96px) 0 84px; }
#contact-intro .section-heading,
#contact-intro .eyebrow { color: var(--color-cream); }
#contact-intro .section-lede { color: #eee6f5; }

#contact-details { padding: clamp(84px, 7vw, 120px) 0; text-align: center; }

.contact-details-simple .btn { margin-top: 28px; }

/* ==========================================================================
   Final CTA banner
   ========================================================================== */
#cta-banner {
  padding: clamp(90px, 7.5vw, 130px) 0;
  text-align: center;
}
#cta-banner .section-heading { color: var(--color-cream); }
#cta-banner p {
  color: #eee6f5;
  max-width: 46ch;
  margin: 14px auto 34px;
  font-size: 1.05rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
#site-footer {
  background: var(--color-ink);
  color: var(--color-cream);
  padding: 60px 0 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-brand img { height: 26px; margin-bottom: 14px; }
.footer-brand p {
  color: #c4c1dd;
  font-size: 0.92rem;
  max-width: 32ch;
}

.footer-col h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--color-gold);
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  text-decoration: none;
  color: #e6e4f2;
  font-size: 0.92rem;
}
.footer-col a:hover { color: var(--color-red); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-family: var(--font-subtitle);
  font-size: 0.78rem;
  color: #9a97bd;
}

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
}
