/* ============================================================
   Claro General Services Ltd. — Site styles
   ============================================================ */

/* Brand tokens from CLARO_BRAND_KIT */
:root {
  --navy: #0e223d;
  --navy-secondary: #1a3354;
  --gold: #cdab69;
  --gold-soft: #e0c896;
  --cream: #f5f4ef;
  --white: #ffffff;
  --border: #e8e6df;
  --text-body: #1f2933;
  --text-muted: #6b7280;
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebe5a;

  --font-heading: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(14, 34, 61, 0.06);
  --shadow-md: 0 4px 14px rgba(14, 34, 61, 0.10);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }

/* Base */
html, body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--cream);
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.25rem; font-weight: 700; line-height: 1.15; }
h2 { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-secondary); }

@media (min-width: 768px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { top: 0; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(205, 171, 105, 0.12);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  gap: 1rem;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-link img {
  height: 38px;
  width: auto;
}
@media (min-width: 768px) {
  .brand-link img { height: 44px; }
}
.brand-link:focus-visible { outline-offset: 6px; }

/* Desktop nav */
.primary-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
.primary-nav a {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-body);
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.primary-nav a:hover { color: var(--navy); }
.primary-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--gold);
}
.lang-switcher {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.lang-switcher a { text-decoration: none; color: var(--text-body); }
.lang-switcher a:hover { color: var(--navy); }
.lang-switcher .active {
  color: var(--gold);
  font-weight: 600;
}
.lang-switcher .sep {
  color: var(--border);
  margin: 0 0.4rem;
}
.header-cta {
  display: none;
}
@media (min-width: 980px) {
  .primary-nav { display: flex; }
  .header-cta { display: inline-flex; }
}

/* Mobile nav toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle:hover { background: var(--cream); }
.nav-toggle svg { width: 22px; height: 22px; }
@media (min-width: 980px) {
  .nav-toggle { display: none; }
}

/* Mobile menu panel */
.mobile-menu {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.5rem;
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.mobile-menu li { border-bottom: 1px solid var(--border); }
.mobile-menu li:last-child { border-bottom: 0; }
.mobile-menu a {
  display: block;
  padding: 0.875rem 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-body);
  text-decoration: none;
}
.mobile-menu a[aria-current="page"] { color: var(--navy); }
.mobile-menu .lang-switcher {
  padding: 0.875rem 0 1.125rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

/* ============================================================
   WhatsApp button (in-content)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  line-height: 1;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}
.btn--whatsapp:hover {
  background: var(--whatsapp-hover);
  color: var(--white);
}
.btn--whatsapp svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
  color: var(--white);
}
.btn--ghost-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost-navy:hover {
  background: var(--navy);
  color: var(--white);
}
.btn--lg {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
}

.header-cta.btn { padding: 0.55rem 1rem; font-size: 0.875rem; }
.header-cta.btn svg { width: 16px; height: 16px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at top right, rgba(205, 171, 105, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(26, 51, 84, 0.6) 0%, transparent 60%),
    linear-gradient(180deg, #0e223d 0%, #112846 100%);
  color: var(--white);
  padding: 4rem 0 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 2px;
  background: var(--gold);
}
/* Faint geometric accent — echoes the logo's triangular mark, desktop only */
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  background: url('assets/favicon.svg') center/contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
  display: none;
}
@media (min-width: 980px) {
  .hero::after { display: block; }
}
.hero h1 {
  color: var(--white);
  max-width: 820px;
  margin: 0 auto 1.25rem;
  font-weight: 600;
}
.hero__divider {
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
  border: 0;
}
.hero__sub {
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}
.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.hero__trust {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .hero { padding: 5.5rem 0 6rem; }
  .hero__sub { font-size: 1.125rem; }
}

/* ============================================================
   Generic sections
   ============================================================ */
.section {
  padding: 4rem 0;
}
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy-secondary); color: var(--white); }
.section--navy h2 { color: var(--white); }

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}
.section__head h2 { margin-bottom: 0.5rem; }
.section__head .gold-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 1rem auto 1.25rem;
  border: 0;
}
.section__intro {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.section--navy .section__intro { color: rgba(255, 255, 255, 0.85); }

@media (min-width: 768px) {
  .section { padding: 5rem 0; }
}

/* ============================================================
   Card grids
   ============================================================ */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--audience { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid--audience { grid-template-columns: repeat(4, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
@media (min-width: 768px) {
  .card { padding: 1.75rem; }
}
.card:hover {
  border-color: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 34, 61, 0.08);
}
.card__accent {
  width: 28px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1rem;
  border: 0;
}
.card__icon {
  color: var(--navy);
  margin-bottom: 1rem;
  width: 28px;
  height: 28px;
}
.card__icon svg { width: 100%; height: 100%; }
.card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}
.card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Service cards (full descriptions) */
.service-card p {
  color: var(--text-body);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Centered text-link */
.text-link-row {
  text-align: center;
  margin-top: 2rem;
}
.text-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.text-link:hover {
  border-bottom-color: var(--navy);
}

/* ============================================================
   About / boundary blocks
   ============================================================ */
.prose-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.prose-block p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-body);
}
.section--navy .prose-block p {
  color: rgba(255, 255, 255, 0.92);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--navy);
  position: relative;
  padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.2s;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  margin: 0.875rem 0 0;
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.7;
}

/* ============================================================
   CTA section
   ============================================================ */
.cta {
  text-align: center;
  padding: 4rem 0 4.5rem;
}
.cta h2 {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.cta p {
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  max-width: 980px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}
.contact-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-block h2 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
.contact-block .gold-divider {
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin: 0 0 1.5rem;
  border: 0;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.contact-list li {
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.contact-list a { color: var(--navy); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.privacy-line {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2rem;
  text-align: center;
  padding: 0 1rem;
}
.privacy-line a { color: var(--text-muted); }

/* ============================================================
   Boundary panel (services)
   ============================================================ */
.boundary {
  background: var(--navy-secondary);
  color: var(--white);
  padding: 2.5rem 0;
}
.boundary__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}
.boundary__label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.875rem;
}
.boundary p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
}

.fees-line {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 2rem;
  border-top: 2px solid var(--gold);
  font-size: 0.875rem;
  line-height: 1.65;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.4fr;
    gap: 3rem;
  }
}
.footer-brand img {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.875rem;
}
.footer-col p, .footer-col a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  margin: 0.25rem 0;
  text-decoration: none;
  display: block;
}
.footer-col a:hover {
  color: var(--gold-soft);
  text-decoration: underline;
}
.footer-disclaimer {
  border-top: 1px solid rgba(205, 171, 105, 0.2);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}
.footer-disclaimer p { margin: 0 0 0.875rem; }
.footer-disclaimer p:last-child { margin: 0; }
.footer-copyright {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* ============================================================
   Floating WhatsApp button
   ============================================================ */
.whatsapp-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 200;
  background: var(--whatsapp);
  color: var(--white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  opacity: 0;
  animation: fab-in 0.4s ease-out 0.3s forwards;
}
@keyframes fab-in {
  to { opacity: 1; }
}
.whatsapp-fab:hover {
  background: var(--whatsapp-hover);
  transform: scale(1.05);
  color: var(--white);
}
.whatsapp-fab svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}
.whatsapp-fab .label {
  display: none;
}
@media (min-width: 768px) {
  .whatsapp-fab {
    right: 24px;
    bottom: 24px;
    bottom: max(24px, env(safe-area-inset-bottom));
    width: auto;
    height: auto;
    border-radius: 999px;
    padding: 0.75rem 1.25rem;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
  }
  .whatsapp-fab .label {
    display: inline-block;
  }
  .whatsapp-fab svg {
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .whatsapp-fab { opacity: 1; }
}

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

/* ============================================================
   Process / How we work — numbered steps
   ============================================================ */
.process {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.process-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.process-step:hover {
  border-color: var(--gold-soft);
  box-shadow: 0 4px 14px rgba(14, 34, 61, 0.06);
}
@media (min-width: 768px) {
  .process-step {
    padding: 1.75rem 2rem;
    gap: 1.75rem;
  }
}
.process-step__num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1;
}
.process-step__body {
  flex: 1;
  min-width: 0;
}
.process-step__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.process-step__desc {
  margin: 0;
  color: var(--text-body);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ============================================================
   Busy-people callout (intro paragraph block)
   ============================================================ */
.callout {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 0 0.5rem;
}
.callout p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
}
.section--cream .callout p { color: var(--text-body); }
.section--navy .callout p { color: rgba(255, 255, 255, 0.92); }

/* Remote-first banner — small, calm, single line at top of contact / under hero */
.remote-note {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.6;
}
.remote-note strong {
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 600;
}

/* Privacy note — small print at bottom of contact */
.privacy-note {
  max-width: 720px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}
