/*
 * Cães y Coisas — site styles (design system "Cães y Coisas" v1).
 * Plain CSS, no framework. Fonts are self-hosted in /assets/fonts.
 */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --cream: #fff8f0;
  --surface: #fffdf9;
  --ink: #1f2b36;
  --text-secondary: #4a5662;
  --accent: #fa8c5c;
  --on-accent: var(--ink);
  --terracotta: #a33c14;
  --peach: #ffe9d9;
  --sage: #e4ecdf;
  --footer: #17212a;
  --hairline: #e9d9c8;
  --form-border: #7a6b5d;
  --shadow-float: 0 12px 32px rgba(31, 43, 54, 0.14);

  --radius-field: 14px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-sans: "DM Sans", system-ui, sans-serif;

  --gutter: 20px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--cream); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: 12px 20px; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--cream); font-weight: 700;
}
.skip-link:focus { top: 12px; outline-color: var(--cream); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Buttons and pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border: 2px solid transparent; border-radius: var(--radius-pill);
  font: 700 18px/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: opacity .15s;
}
.btn:hover { opacity: .88; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn svg { flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.on-dark .btn-outline { border-color: var(--cream); color: var(--cream); }
.btn-sm { min-height: 48px; padding: 0 22px; font-size: 17px; }
.pill {
  display: inline-flex; align-self: flex-start; padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--peach); color: var(--terracotta);
  font: 700 13px/1.2 var(--font-sans); letter-spacing: .06em; text-transform: uppercase;
}
.sage .pill { background: var(--surface); }

/* Top strip + header */
.topstrip { background: var(--ink); color: var(--cream); font-size: 14px; }
.topstrip .wrap { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; padding-block: 8px; }
.topstrip a { display: inline-flex; align-items: center; min-height: 24px; text-decoration: none; }
.topstrip a:hover { text-decoration: underline; }
.topstrip .phones { display: flex; gap: 20px; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--hairline); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand img { width: 170px; height: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 2px solid var(--ink); border-radius: 14px; background: transparent; color: var(--ink); cursor: pointer;
}
.site-nav { display: none; flex-basis: 100%; flex-direction: column; gap: 4px; padding-bottom: 12px; }
.site-nav.is-open { display: flex; }
.site-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 4px; font-weight: 700; text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--terracotta); }
.site-nav .btn { margin-top: 8px; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; flex-basis: auto; flex-direction: row; align-items: center; gap: 28px; padding: 0; }
  .site-nav .btn { margin: 0; min-height: 48px; padding: 0 24px; font-size: 17px; }
}

/* Sections */
.section { padding-block: 64px; }
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 32px; }
.h2 { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; max-width: 760px; }
.lead { font-size: 18px; }
.muted { color: var(--text-secondary); }

/* Hero */
.hero .wrap { display: grid; gap: 24px; padding-block: 20px 64px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero h1 { font-size: clamp(42px, 5.4vw, 74px); line-height: 1.02; font-weight: 800; letter-spacing: -0.025em; }
.hero h1 .mark { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 6px; text-underline-offset: 6px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.hero-media { position: relative; margin-top: 12px; }
.hero-media::before {
  content: ""; position: absolute; right: -12px; top: -16px; width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--accent);
}
.hero-media img {
  position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 64% 50%;
  border-radius: 999px 999px var(--radius-xl) var(--radius-xl); background: var(--hairline);
}
.hours-card {
  position: relative; display: flex; align-items: center; gap: 14px; margin: -36px 12px 0; padding: 14px 18px;
  border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-float);
  line-height: 1.35;
}
.hours-card svg { flex: none; color: var(--terracotta); }
.hours-card small { display: block; font-size: 15px; color: var(--text-secondary); }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; padding-block: 48px 88px; }
  .hero-actions { flex-direction: row; width: auto; }
  .hero-media { margin-top: 0; }
  .hours-card { margin: -36px 0 0 -40px; width: max-content; max-width: 100%; }
}

/* Services */
.grid-services { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-services { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1000px) { .grid-services { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--hairline); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--hairline); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.card h3 { font-size: 26px; line-height: 1.15; font-weight: 700; }
.card p { color: var(--text-secondary); }

/* About */
.sage { background: var(--sage); }
.about-grid { display: grid; gap: 32px; }
.about-copy { display: flex; flex-direction: column; gap: 18px; }
.trust { display: grid; gap: 16px; align-content: start; }
.trust-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius-md); background: var(--surface); }
.trust-item .icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
}
.trust-item h3 { font-size: 21px; line-height: 1.2; margin-bottom: 4px; }
.trust-item p { color: var(--text-secondary); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }

/* Contact */
.contact-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; } }
.panel { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--hairline); }
#contactForm { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field textarea {
  min-height: 54px; padding: 0 16px; border: 1.5px solid var(--form-border); border-radius: var(--radius-field);
  background: #fff; color: var(--ink); font: inherit;
}
.field textarea { padding: 14px 16px; resize: vertical; min-height: 120px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-secondary); }
.consent input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--terracotta); }
.consent a { color: var(--terracotta); font-weight: 700; }
#submitButton { min-height: 58px; }
.form-feedback { padding: 14px 16px; border-radius: var(--radius-field); border: 1.5px solid; font-size: 16px; }
.form-feedback-success { background: var(--sage); border-color: #3f6b3a; color: var(--ink); }
.form-feedback-error { background: var(--peach); border-color: var(--terracotta); color: var(--ink); }
.form-feedback a { color: var(--terracotta); font-weight: 700; }

.info-card { display: flex; flex-direction: column; gap: 24px; padding: 24px; border-radius: var(--radius-lg); background: var(--ink); color: var(--cream); }
.info-card h3 { font-size: 26px; line-height: 1.15; }
.info-card .sub { color: var(--hairline); }
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row svg { flex: none; margin-top: 4px; color: var(--accent); }
.info-row strong { display: block; }
.info-row a { color: var(--accent); font-weight: 700; }
.info-row .phone { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); font-size: 20px; text-decoration: none; }
.info-row .phone:hover { text-decoration: underline; }
.info-row small { display: block; font-size: 14px; color: var(--hairline); }
.social { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { background: var(--footer); color: var(--hairline); padding-block: 40px 32px; }
.site-footer .wrap { display: grid; gap: 24px; }
.site-footer img { width: 180px; height: auto; }
.site-footer p { font-size: 15px; }
.site-footer nav { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); }
.copy { padding-top: 16px; border-top: 1px solid #2e3b47; font-size: 14px; }
@media (min-width: 900px) {
  .site-footer .wrap { grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
  .site-footer nav { flex-direction: column; }
  .copy { grid-column: 1 / -1; }
}

/* Mobile call bar */
.callbar {
  position: sticky; bottom: 0; z-index: 40; display: flex; gap: 12px; padding: 12px var(--gutter);
  background: var(--surface); border-top: 1px solid var(--hairline);
}
.callbar .btn { flex: 1; min-height: 52px; padding: 0 12px; }
@media (min-width: 900px) { .callbar { display: none; } }

/* Legal pages */
.legal { padding-block: 48px 72px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 24px; }
.legal h2, .legal h3 { font-size: 26px; line-height: 1.2; margin: 36px 0 12px; }
.legal p, .legal ul, .legal ol { margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--terracotta); font-weight: 700; }
.legal table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 15px; }
.legal th, .legal td { padding: 8px 10px; border: 1px solid var(--hairline); text-align: left; vertical-align: top; }
