:root {
  --background: #f5f2ec;
  --foreground: #171717;
  --card: #fbfaf7;
  --card-foreground: #171717;
  --popover: #fbfaf7;
  --popover-foreground: #171717;
  --primary: #7d1018;
  --primary-foreground: #ffffff;
  --secondary: #eae4da;
  --secondary-foreground: #2c2825;
  --muted: #eae4da;
  --muted-foreground: #6b625c;
  --accent: #b5202a;
  --accent-foreground: #ffffff;
  --destructive: #b42318;
  --border: #d8d0c4;
  --input: #d8d0c4;
  --ring: #7d1018;
  --radius: 0.25rem;
  --font-sans: Arial, Helvetica, sans-serif;
  --font-heading: Georgia, 'Times New Roman', serif;
}

.dark {
  --background: #151312;
  --foreground: #f6f1e9;
  --card: #201d1b;
  --card-foreground: #f6f1e9;
  --popover: #201d1b;
  --popover-foreground: #f6f1e9;
  --primary: #d04750;
  --primary-foreground: #ffffff;
  --secondary: #2e2926;
  --secondary-foreground: #f6f1e9;
  --muted: #2e2926;
  --muted-foreground: #b7aaa0;
  --accent: #e05b63;
  --accent-foreground: #ffffff;
  --destructive: #ef6a60;
  --border: #3e3732;
  --input: #3e3732;
  --ring: #d04750;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
}
a { color: inherit; text-decoration: none; }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  min-height: 148px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.brand img { display: block; width: 440px; height: 128px; object-fit: contain; object-position: left center; }
nav { display: flex; gap: 34px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
nav a { padding: 10px 0; border-bottom: 1px solid transparent; }
nav a:hover, nav a:focus-visible { color: var(--primary); border-color: var(--primary); }

.hero {
  display: block;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  min-height: 620px;
  margin: 0 auto;
  padding: 70px 0 76px;
}
.hero-copy { max-width: 900px; }
.eyebrow { margin: 0 0 22px; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--font-heading); font-weight: 400; letter-spacing: -.03em; }
h1 { max-width: 760px; font-size: clamp(48px, 6vw, 82px); line-height: .98; }
.hero-lead { max-width: 650px; margin: 30px 0 0; color: #514a45; font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button-primary, .button-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.button-primary { background: var(--primary); color: white; }
.button-primary:hover, .button-primary:focus-visible { background: #5f0b11; }
.button-secondary { border: 1px solid #bdb3a7; background: transparent; }
.button-secondary:hover, .button-secondary:focus-visible { border-color: var(--primary); color: var(--primary); }
.credentials { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 34px; color: #706861; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.hero-portrait { width: min(100%, 400px); margin: 0; justify-self: end; }
.hero-portrait img { display: block; width: 100%; max-width: 400px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; filter: saturate(.8) contrast(1.03); }
.hero-portrait figcaption { display: grid; gap: 5px; padding: 18px 0 0; border-top: 3px solid var(--primary); color: #605852; font-size: 12px; letter-spacing: .04em; }
.hero-portrait figcaption strong { color: var(--foreground); font-size: 13px; }

.intro-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--border); background: #ece7df; padding: 0 max(24px, calc((100vw - 1180px) / 2)); }
.intro-strip p { margin: 0; padding: 25px 22px; border-left: 1px solid var(--border); font-family: var(--font-heading); font-size: 17px; }
.intro-strip p:last-child { border-right: 1px solid var(--border); }

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0;
}
.section-number {
  margin: 0;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 30px;
}
.section-heading {
  display: grid;
  grid-template-columns: 80px 1.1fr .8fr;
  gap: 50px;
  align-items: start;
}
.section-heading.compact { grid-template-columns: 80px 1fr; }
.section-heading h2,
.about-section h2,
.qualifications-section h2,
.partnership-section h2,
.contact-section h2 {
  font-size: clamp(37px, 4.5vw, 58px);
  line-height: 1.06;
}
.section-heading > p:last-child {
  margin: 39px 0 0;
  color: #5f5750;
  font-size: 17px;
  line-height: 1.8;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 68px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.service-card {
  min-height: 290px;
  padding: 34px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #f8f6f1;
}
.service-card svg { color: var(--primary); }
.service-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 15px;
}
.service-card h3,
.timeline-item h3 {
  margin: 58px 0 14px;
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 400;
}
.service-card p,
.timeline-item > p:last-child {
  margin: 0;
  color: #615950;
  font-size: 15px;
  line-height: 1.75;
}

.about-section {
  display: grid;
  grid-template-columns: 170px 260px 1fr;
  gap: 62px;
  padding: 112px max(24px, calc((100vw - 1180px) / 2));
  background: #1d1a18;
  color: #f7f2eb;
}
.about-kicker { display: grid; align-content: start; gap: 22px; }
.about-section .section-number,
.about-section .eyebrow { color: #e65e67; }
.about-copy { max-width: 800px; }
.about-portrait { width: 260px; margin: 0; }
.about-portrait img {
  display: block;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  filter: saturate(.75) contrast(1.03);
}
.about-portrait figcaption {
  display: grid;
  gap: 5px;
  padding: 15px 0 0;
  border-top: 3px solid #a71d26;
  color: #bfb2a6;
  font-size: 11px;
}
.about-portrait strong { color: #f7f2eb; font-family: var(--font-heading); font-size: 17px; }
.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  margin-top: 48px;
}
.about-columns p {
  margin: 0;
  color: #cfc3b7;
  font-size: 16px;
  line-height: 1.85;
}
blockquote {
  margin: 56px 0 0;
  padding: 26px 0 0 30px;
  border-top: 1px solid #4c443e;
  border-left: 3px solid #a71d26;
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
}

.timeline { margin-top: 70px; border-top: 1px solid var(--border); }
.timeline-item {
  display: grid;
  grid-template-columns: 190px 270px 1fr;
  gap: 42px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-period {
  margin: 4px 0 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.timeline-item h3 { margin: 0; }

.qualifications-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
  padding: 100px max(24px, calc((100vw - 1180px) / 2));
  background: #e9e3d9;
}
.qualifications-section ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #c9beb1;
}
.qualifications-section li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #c9beb1;
  color: #463f39;
  font-size: 15px;
  line-height: 1.5;
}
.qualifications-section li svg { flex: 0 0 auto; width: 20px; color: var(--primary); stroke-width: 1.5; }
.qualification-mark {
  flex: 0 0 auto;
  width: 20px;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 18px;
  text-align: center;
}

.partnership-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 100px;
  align-items: center;
}
.partnership-content {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 50px;
}
.partnership-content > div > p:not(.eyebrow) {
  max-width: 700px;
  margin: 26px 0 0;
  color: #5f5750;
  font-size: 16px;
  line-height: 1.8;
}
.partner-expertise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
}
.partner-expertise article {
  padding-top: 18px;
  border-top: 2px solid var(--primary);
}
.partner-expertise span {
  display: block;
  min-height: 38px;
  color: var(--foreground);
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.15;
}
.partner-expertise p {
  margin: 12px 0 0;
  color: #625a53;
  font-size: 13px;
  line-height: 1.65;
}
.partnership-content > div > .partner-credentials {
  margin-top: 28px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 32px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--primary);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}
.text-link:hover, .text-link:focus-visible { color: #57090f; }
.partner-portrait { width: 300px; margin: 0; }
.partner-portrait img {
  display: block;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  filter: saturate(.75);
}
.partner-portrait figcaption {
  display: grid;
  gap: 6px;
  padding: 17px 0 0;
  border-top: 3px solid var(--primary);
}
.partner-portrait strong { font-family: var(--font-heading); font-size: 19px; }
.partner-portrait span { color: #6a625b; font-size: 12px; }

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  padding: 100px max(24px, calc((100vw - 1180px) / 2));
  background: #1d1a18;
  color: #f7f2eb;
}
.contact-section .eyebrow { color: #e65e67; }
.contact-intro > p:last-child {
  max-width: 600px;
  margin: 28px 0 0;
  color: #cfc3b7;
  font-size: 16px;
  line-height: 1.8;
}
.contact-panel { border-top: 1px solid #4c443e; }
.contact-label {
  margin: 26px 0 10px;
  color: #e65e67;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.contact-panel a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid #4c443e;
  color: #ede5dc;
  font-size: 15px;
}
.contact-panel a svg { width: 18px; }
.contact-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  color: #e65e67;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}
.contact-panel a:hover, .contact-panel a:focus-visible { color: white; border-color: #e65e67; }

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 19px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  background: #128c4a;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
  animation: whatsapp-pulse 3s ease-in-out infinite;
}
.whatsapp-float:hover, .whatsapp-float:focus-visible {
  background: #0d743c;
  box-shadow: 0 15px 36px rgba(0,0,0,.34);
  color: #fff;
  transform: translateY(-3px);
}
.whatsapp-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  font-size: 15px;
}

.hero-copy { animation: hero-enter .85s cubic-bezier(.2,.8,.2,1) both; }
.intro-strip p { animation: hero-enter .7s cubic-bezier(.2,.8,.2,1) both; }
.intro-strip p:nth-child(2) { animation-delay: .08s; }
.intro-strip p:nth-child(3) { animation-delay: .16s; }
.intro-strip p:nth-child(4) { animation-delay: .24s; }
.service-card, .qualification-card { transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.service-card:hover, .qualification-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(30,22,18,.08); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease var(--reveal-delay, 0ms), transform .7s cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes whatsapp-pulse {
  0%, 72%, 100% { box-shadow: 0 12px 32px rgba(0,0,0,.28), 0 0 0 0 rgba(18,140,74,.3); }
  84% { box-shadow: 0 12px 32px rgba(0,0,0,.28), 0 0 0 12px rgba(18,140,74,0); }
}

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 34px max(24px, calc((100vw - 1180px) / 2));
  background: #11100f;
  color: #bdb1a6;
}
footer img { width: 150px; height: 56px; object-fit: contain; object-position: left center; filter: invert(1) grayscale(1) brightness(3); opacity: .65; }
footer div { display: grid; gap: 5px; font-size: 11px; letter-spacing: .05em; }
footer strong { color: #f2ece5; font-size: 12px; }
footer a { font-size: 12px; }
footer a:hover, footer a:focus-visible { color: white; }

@media (max-width: 820px) {
  .site-header { width: min(100% - 32px, 1180px); min-height: 0; flex-direction: column; align-items: stretch; padding-bottom: 18px; }
  .brand { align-self: flex-start; }
  .brand img { width: min(320px, 82vw); height: 104px; }
  nav { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
  nav a { padding: 12px 8px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; font-size: 10px; }
  .hero { grid-template-columns: 1fr; width: min(100% - 32px, 1180px); min-height: 0; padding: 58px 0; }
  h1 { font-size: clamp(46px, 13vw, 68px); }
  .hero-portrait { justify-self: start; }
  .intro-strip { grid-template-columns: 1fr 1fr; padding: 0 16px; }
  .intro-strip p:nth-child(odd) { border-left: 0; }
  .intro-strip p { border-bottom: 1px solid var(--border); }
  .section { width: min(100% - 32px, 1180px); padding: 78px 0; }
  .section-heading, .section-heading.compact { grid-template-columns: 1fr; gap: 22px; }
  .section-heading > p:last-child { margin: 0; }
  .service-grid { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .about-section, .qualifications-section, .contact-section { grid-template-columns: 1fr; gap: 42px; padding: 78px 16px; }
  .about-kicker { display: block; }
  .about-columns { grid-template-columns: 1fr; gap: 24px; }
  .timeline-item { grid-template-columns: 140px 1fr; gap: 24px; }
  .timeline-item > p:last-child { grid-column: 2; }
  .partnership-section { grid-template-columns: 1fr; gap: 48px; }
  .partnership-content { grid-template-columns: 1fr; gap: 22px; }
  .partner-expertise { grid-template-columns: 1fr 1fr; }
  .partner-portrait { justify-self: start; }
  footer { grid-template-columns: 1fr; }
  footer img { width: 140px; }
}

@media (max-width: 520px) {
  .intro-strip { grid-template-columns: 1fr; }
  .intro-strip p { border-left: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 250px; }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; }
  .timeline-item > p:last-child { grid-column: 1; }
  .partner-portrait { width: min(100%, 300px); }
  .about-portrait { width: min(100%, 240px); }
  .partner-expertise { grid-template-columns: 1fr; }
  .credentials { display: grid; }
  .button-primary, .button-secondary { width: 100%; }
  .contact-panel a { overflow-wrap: anywhere; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 54px; min-height: 54px; padding: 0; justify-content: center; }
  .whatsapp-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
