/* Anthony Freed Technical Services — Template B: light / corporate (DRAFT) */
:root {
  --bg: #faf9f6;            /* warm off-white */
  --bg-soft: #f1efe9;       /* soft panel */
  --bg-card: #ffffff;       /* card surface */
  --ink: #1c1f1d;           /* body text */
  --ink-dim: #4c554f;       /* secondary text */
  --muted: #8a918b;         /* faint text */
  --line: #e2ded4;          /* borders */
  --accent: #7f1d1d;        /* AFTS brand red */
  --accent-dark: #5c1414;
  --accent-soft: #f5e6e6;   /* light red tint */
  --accent-ink: #ffffff;
  --radius: 10px;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Archivo', 'Inter', system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(28,31,29,.05), 0 8px 24px rgba(28,31,29,.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- draft banner ---------- */
.draft-banner {
  background: #7f1d1d;
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 8px 12px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,249,246,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(28,31,29,.08); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-head); font-weight: 800; font-size: 17px;
  border-radius: 8px;
}
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.25; }
.brand-text em { display: block; font-style: normal; font-weight: 500; font-size: 12px; color: var(--ink-dim); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) { color: var(--ink-dim); text-decoration: none; font-weight: 500; font-size: 15px; }
.main-nav a:not(.btn):hover { color: var(--accent); }
.main-nav a:not(.btn).active { color: var(--accent); font-weight: 600; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 3px 18px;
  border-radius: 5px;
  font-weight: 600; font-size: 13px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--bg-card); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 5px 24px; font-size: 14px; }
.nav-cta { margin-left: 8px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; margin: 18px 0 20px; }
h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; margin-bottom: 14px; }
h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.accent { color: var(--accent); }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 4px;
}
.lede { font-size: 18px; color: var(--ink-dim); }
.section-sub { color: var(--ink-dim); max-width: 62ch; margin-bottom: 28px; }

/* ---------- hero ---------- */
.hero { padding: 32px 0 28px; background: var(--bg); }
.hero-grid {
  display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.hero-card {
  margin-left: auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.hero-card h3 { font-size: 17px; }
.tick-list { list-style: none; margin: 14px 0; }
.tick-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-dim); }
.tick-list li:last-child { border-bottom: 0; }
.tick-list strong { color: var(--accent); font-family: var(--font-head); margin-right: 6px; }
.hero-card-note { font-size: 13px; color: var(--muted); }

/* ---------- trust strip ---------- */
.trust-strip { background: #1f2937; color: #fff; }
.trust-strip strong { color: #ff1a1a; }
.trust-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding: 26px 24px;
}
.trust-item { text-align: center; }
.trust-item strong { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 800; }
.trust-item span { font-size: 13px; opacity: .85; }

/* ---------- sections ---------- */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-soft); }

/* ---------- services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(28,31,29,.06), 0 16px 40px rgba(28,31,29,.12); }
.card-icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 10px; margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; }
.card p { color: var(--ink-dim); font-size: 15px; margin-bottom: 14px; }
.card-link { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 15px; }
.card-link:hover { color: var(--accent-dark); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about-grid p { color: var(--ink-dim); margin-bottom: 16px; }
.check-list { list-style: none; margin-top: 20px; }
.check-list li { padding: 8px 0 8px 30px; position: relative; color: var(--ink-dim); font-size: 15px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: var(--accent); font-weight: 700;
}
.about-panel-inner {
  background: var(--accent); color: #fff;
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
}
.about-panel-inner .panel-quote { font-family: var(--font-head); font-size: 20px; font-weight: 600; line-height: 1.4; margin-bottom: 14px; color: #fff; }
.about-panel-inner .panel-attr { font-size: 14px; opacity: .85; color: #fff; }

/* ---------- dogs ---------- */
.dogs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.dog-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.dog-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(28,31,29,.06), 0 16px 40px rgba(28,31,29,.12); }
.dog-photo {
  background: #1a1a1a;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.dog-photo img {
  width: 100%; height: auto;
  max-height: 320px;
  object-fit: contain; display: block;
}
.dog-card h3 { padding: 20px 24px 0; }
.dog-card p { color: var(--ink-dim); font-size: 15px; padding: 8px 24px 24px; }

/* ---------- dogs: featured + gallery ---------- */
.dogs-featured {
  margin: 0 0 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-card);
}
.dogs-featured img { width: 100%; display: block; }
.dogs-featured figcaption {
  padding: 12px 20px;
  font-size: 14px; color: var(--ink-dim);
}
.gallery-heading { margin: 56px 0 24px; }
.dogs-gallery { columns: 3; column-gap: 20px; }
.dogs-gallery figure {
  break-inside: avoid;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-card);
}
.dogs-gallery img { width: 100%; display: block; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: stretch; }
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.form-note { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.contact-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 15px;
  background: var(--bg); color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-confirm { margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 14px; }

.contact-info h3 { margin-bottom: 14px; }
.contact-info ul { list-style: none; margin-bottom: 18px; }
.contact-info li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-dim); }
.draft-tag { font-size: 12px; color: var(--muted); }
.contact-note { font-size: 14px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: none; background: #1f2937; color: #e5e7eb; padding: 40px 0 28px; }
.site-footer .muted { color: #9ca3af; }
.site-footer .footer-nav a { color: #d1d5db; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: var(--ink-dim); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; width: 100%; margin-top: 8px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }


/* ---------- brand logo ---------- */
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

/* ---------- why-afts banner ---------- */
.why-banner {
  line-height: 0;
  background: #111;
}
.why-banner {
  display: flex;
  justify-content: center;
  padding: 0 24px;
}
.why-banner img {
  width: 100%;
  max-width: 860px;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .dogs-grid { grid-template-columns: 1fr; }
  .dogs-gallery { columns: 2; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-card); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav .nav-cta { margin: 12px 0 0; text-align: center; border-bottom: 0; }
  .section { padding: 56px 0; }
}

.footer-logo { height: 28px; width: auto; border-radius: 6px; }

/* ---------- interior page hero ---------- */
.page-hero { padding: 56px 0 8px; background: var(--bg); }
.page-hero h1 { margin: 14px 0 16px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-soft); }
.cta-inner {
  display: flex; flex-wrap: wrap; gap: 28px;
  align-items: center; justify-content: space-between;
}
.cta-inner h2 { margin-bottom: 10px; }
.cta-inner p { color: var(--ink-dim); max-width: 56ch; margin: 0; }

/* ---------- flip sequence strip ---------- */
.flip-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 32px;
}
.flip-strip figure { margin: 0; }
.flip-strip img {
  width: 100%; height: 220px; object-fit: cover;
  border-radius: var(--radius); display: block;
}
@media (max-width: 768px) {
  .flip-strip { grid-template-columns: repeat(2, 1fr); }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain; border-radius: 8px;
}
.lightbox-close {
  position: absolute; top: 20px; right: 30px;
  background: none; border: none; color: #fff;
  font-size: 48px; cursor: pointer; line-height: 1;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: #fff;
  font-size: 48px; cursor: pointer; padding: 16px 20px;
  border-radius: 8px;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }
.dogs-gallery img, .flip-strip img { cursor: pointer; }

/* Partners */
.partners-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.partner-card {
  padding: 16px 0;
  text-align: center;
}
.partner-card h3 { font-family: var(--font-head); font-size: 22px; font-weight: 600; margin: 0; color: var(--ink); }
@media (max-width: 860px) {
  .partners-grid { grid-template-columns: 1fr; }
}

.services-intro { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: center; margin-bottom: 32px; }
.services-featured { margin: 0; }
.services-featured img { width: 100%; max-width: 320px; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .services-intro { grid-template-columns: 1fr; }
  .services-featured img { max-width: 100%; }
}

.about-panel .about-featured { margin: 16px 0 0; }
.about-panel .about-featured img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

.contact-info { display: flex; flex-direction: column; }
.contact-featured { margin: 20px 0 0; flex: 1; display: flex; }
.contact-featured img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- mobile refinements ---------- */
@media (max-width: 560px) {
  .trust-inner { grid-template-columns: 1fr; gap: 24px; }
  .dogs-gallery { columns: 1; }
  .flip-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
  .flip-strip img { height: 160px; }
  .section { padding: 40px 0; }
  .page-hero { padding: 36px 0 8px; }
  .container { padding-left: 20px; padding-right: 20px; }
  .btn { padding: 14px 24px; font-size: 16px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .site-header .container { flex-wrap: wrap; }
  h1 { font-size: clamp(24px, 7vw, 32px); }
  .lightbox-prev, .lightbox-next { font-size: 32px; padding: 12px 14px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .contact-featured img { height: auto; }
}
