/*--------------------------------------------------------------
# Tokens
--------------------------------------------------------------*/

:root {
  --terracotta: #ac553e;      /* brand, hero background */
  --clay: #8f3f2c;            /* actions and links (AA on cream and white) */
  --clay-dark: #74321f;
  --amber: #dd9d47;           /* illustration, decorative accents only */
  --cream: #f7efe5;
  --cream-deep: #efe2d2;
  --sage: #5f6a50;            /* footer, secondary accent */
  --sage-soft: #e6e8dc;
  --ink: #33261f;
  --muted: #6b5a50;
  --white: #fff;

  --font-display: "Butler", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1120px;
  --gutter: 24px;
  --header-h: 72px;
  --radius-pill: 999px;
  --radius-panel: 28px;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1em; }

a {
  color: var(--clay);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

a:hover { color: var(--clay-dark); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
}

.skip-link:focus { top: 12px; color: var(--white); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.8em 1.6em;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
}

.btn .icon { font-size: 1.25em; }

.btn-small { padding: 0.55em 1.2em; font-size: 0.9375rem; white-space: nowrap; }
.btn-large { padding: 1em 2em; font-size: 1.125rem; }

.btn-primary { background: var(--clay); color: var(--white); }
.btn-primary:hover { background: var(--clay-dark); color: var(--white); }

.btn-light { background: var(--cream); color: var(--clay-dark); }
.btn-light:hover { background: var(--white); color: var(--clay-dark); }

.btn-outline-light { border-color: var(--cream); color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--clay-dark); }

.btn-ghost { border-color: currentColor; color: var(--cream); background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 239, 229, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s;
}

.site-header.is-scrolled { box-shadow: 0 1px 0 var(--cream-deep), 0 8px 24px rgba(51, 38, 31, 0.06); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.logo img { height: 26px; width: auto; }

.main-nav { margin-left: auto; }

.main-nav ul { display: flex; gap: 28px; }

.main-nav a {
  position: relative;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transition: transform 0.25s;
}

.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }

/*--------------------------------------------------------------
# Intro
--------------------------------------------------------------*/

.intro {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 120px;
  background: var(--terracotta);
  color: var(--cream);
  /* gentle curved bottom edge */
  border-bottom-left-radius: 50% 64px;
  border-bottom-right-radius: 50% 64px;
  overflow: hidden;
}

.intro-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
}

.intro h1 {
  color: var(--cream);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0.6em;
  max-width: 12ch;
}

.intro-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.intro-img img {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  animation: intro-in 1.2s ease-out both;
}

@keyframes intro-in {
  from { opacity: 0; transform: translateY(16px) rotate(-3deg); }
  to   { opacity: 1; transform: none; }
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/

.about { padding: 112px 0 96px; }

.about-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}

.about-header h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 0.4em;
}

.about-header .lead {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 34ch;
}

.about-body > p {
  font-size: 1.1875rem;
  line-height: 1.7;
  max-width: 62ch;
}

.credential {
  margin-top: 40px;
  padding: 24px 28px;
  border-left: 3px solid var(--amber);
  background: var(--white);
  border-radius: 0 16px 16px 0;
}

.credential h3 { font-size: 1.25rem; margin-bottom: 0.35em; }
.credential p { margin: 0; color: var(--muted); }

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/

.services {
  padding: 96px 0 104px;
  background: var(--white);
}

.section-header {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-header p { color: var(--muted); font-size: 1.125rem; margin: 0; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.service {
  position: relative;
  padding: 44px 40px 40px;
  border-radius: var(--radius-panel);
  overflow: hidden;
}

.service-crono { background: var(--ink); color: var(--cream); }
.service-crono h3 { color: var(--cream); }
.service-crono .service-sub { color: var(--amber); }

.service-behavior { background: var(--sage-soft); }
.service-behavior .service-sub { color: var(--sage); }

.service h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 0.25em; }

.service-sub { font-weight: 600; margin-bottom: 1.25em; }

.service p:last-child { margin: 0; max-width: 42ch; }

.service-mark {
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-crono .service-mark { stroke: var(--amber); }
.service-behavior .service-mark { stroke: var(--terracotta); }

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

.contact { padding: 104px 0; }

.contact-inner { text-align: center; }

.contact-inner > p { color: var(--muted); font-size: 1.125rem; margin-bottom: 32px; }

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  margin-top: 40px;
}

.contact-info li { display: flex; align-items: center; gap: 10px; }
.contact-info .icon { color: var(--terracotta); font-size: 1.25rem; }
.contact-info a { color: var(--ink); }

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

.site-footer {
  background: var(--sage);
  color: var(--cream);
  font-size: 0.9375rem;
  padding: 56px 0 28px;
}

.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--white); }

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 32px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4em;
}

.footer-info p:not(.footer-name) { margin: 0; opacity: 0.9; }

.footer-links li + li { margin-top: 6px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.social-links { display: flex; gap: 10px; margin-top: 16px; }

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(247, 239, 229, 0.5);
  border-radius: 50%;
  font-size: 1.125rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.social-links a:hover { background: var(--cream); color: var(--sage); }

.copyright {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(247, 239, 229, 0.25);
  font-size: 0.875rem;
  opacity: 0.85;
}

/*--------------------------------------------------------------
# Floating WhatsApp + cookie banner
--------------------------------------------------------------*/

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1d7a46;
  color: var(--white);
  font-size: 30px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(29, 122, 70, 0.35);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, background-color 0.2s;
}

.whatsapp-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.whatsapp-float:hover { background: #166238; color: var(--white); }

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 16px 24px;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(51, 38, 31, 0.25);
  font-size: 0.9375rem;
}

.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn-primary { background: var(--amber); color: var(--ink); }
.cookie-banner .btn-primary:hover { background: #e8b26a; color: var(--ink); }

body.has-cookie-banner .whatsapp-float { bottom: 112px; }

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

@media (max-width: 900px) {
  .intro-inner,
  .about-inner,
  .services-grid,
  .footer-inner { grid-template-columns: 1fr; }

  .intro { padding-bottom: 96px; border-bottom-left-radius: 50% 40px; border-bottom-right-radius: 50% 40px; }
  .intro-img { order: -1; }
  .intro-img img { max-width: 300px; margin: 0 auto; }
  .intro-info { text-align: center; }
  .intro h1 { margin-left: auto; margin-right: auto; }
  .intro-actions { justify-content: center; }

  .about { padding: 80px 0 72px; }
  .about-inner { gap: 24px; }
  .services, .contact { padding: 72px 0; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; --gutter: 16px; }

  .main-nav { display: none; }
  .header-cta { margin-left: auto; }
  .logo img { height: 22px; }

  .intro-actions .btn { flex: 1 1 100%; }
  .service { padding: 32px 24px; }
  .contact .btn-large { width: 100%; }

  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { flex: 1; }
  body.has-cookie-banner .whatsapp-float { bottom: 184px; }
}

@media (max-width: 380px) {
  .header-cta { padding: 0.5em 0.9em; font-size: 0.875rem; }
  .logo img { height: 19px; }
}
