/* ===== CharterVAT ===== */
:root {
  --green-900: #34432f;
  --green-800: #3f4e3b;
  --green-700: #4d6a50;
  --green-600: #5e7d60;
  --green-500: #6f9466;
  --green-400: #85a77b;
  --accent: #e6df8f;
  --ink: #3a3f37;
  --muted: #6b6f66;
  --page: #f0ede9;
  --card: #faf8f5;
  --line: #e1dcd4;
  --wa: #25a95a;
  --radius: 5px;
  --shadow: 0 8px 22px rgba(55, 60, 45, 0.13), 0 1px 3px rgba(55, 60, 45, 0.08);
  --font: "Cabin", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-700); }
h1, h2, h3 { line-height: 1.2; color: var(--green-800); }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 48px); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--font);
  padding: .8em 1.6em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #80a576 0%, #5f845d 55%, #527653 100%);
  border-color: #4c6e4e;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 4px rgba(40,60,40,.25);
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 10px rgba(40,60,40,.28); }
.btn-ghost { background: transparent; color: var(--green-700); border-color: var(--line); }
.btn-ghost:hover { background: #f1efe9; }
.btn:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, .file-pick:focus-within {
  outline: 3px solid rgba(111, 148, 102, .45); outline-offset: 2px;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, #6c8a6d 0%, #5a775c 100%);
  box-shadow: 0 2px 8px rgba(30, 45, 30, .25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 44px; height: 36px; }
.brand-name { font-size: 2rem; font-weight: 700; color: #fff; letter-spacing: .2px; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.brand-name span { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 46px; }
.site-nav a {
  color: #fff; text-decoration: none; font-size: 1.1rem; padding: 6px 2px;
  border-bottom: 2px solid transparent; opacity: .95;
}
.site-nav a:hover, .site-nav a.active { border-bottom-color: rgba(255,255,255,.85); opacity: 1; }
.btn-login {
  margin-left: 40px;
  font: 500 1.1rem/1 var(--font); color: #fff;
  background: rgba(45, 66, 48, .45);
  border: 1.5px solid rgba(255,255,255,.85);
  border-radius: 3px;
  padding: 13px 46px; cursor: pointer;
}
.btn-login:hover { background: rgba(45, 66, 48, .7); }
.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 410px;
  background:
    linear-gradient(180deg, rgba(246,243,238,.55) 0%, rgba(246,243,238,.2) 32%, rgba(246,243,238,0) 50%, rgba(240,237,233,0) 86%, var(--page) 100%),
    url("assets/london-skyline.jpg") center 80% / cover no-repeat;
}
.hero-text { padding-top: 46px; text-align: center; }
.hero h1 {
  margin: 0; font-size: clamp(1.7rem, 3.3vw, 2.6rem); font-weight: 600;
  color: #3e4a39; text-shadow: 0 0 18px rgba(255,255,255,.9), 0 1px 0 rgba(255,255,255,.7);
}
.hero-sub {
  margin: 14px 0 0; display: flex; align-items: center; justify-content: center; gap: 16px;
  font-size: clamp(1.1rem, 2vw, 1.6rem); color: #45503f; text-shadow: 0 0 14px rgba(255,255,255,.95);
}
.hero-sub::before, .hero-sub::after { content: ""; width: 60px; height: 2px; background: #4e5b48; opacity: .75; }

/* ===== Action cards ===== */
.cards {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  margin-top: -78px;
  align-items: start;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 34px 30px;
}
.card h2 {
  margin: 0 0 18px; padding-bottom: 16px; text-align: center;
  font-size: 2rem; font-weight: 600; border-bottom: 1px solid var(--line);
}
.btn-buy { display: flex; margin: 0 auto 14px; font-size: 1.55rem; padding: .62em 2.2em; }
.btn-buy .price { font-weight: 700; }

.select-row {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 12px;
}
.select-row label { font-weight: 700; font-size: 1.25rem; }
.select-row select {
  flex: 1; font: 400 1.2rem var(--font); color: var(--ink);
  padding: 9px 40px 9px 12px; border: 1px solid #d7d2ca; border-radius: 3px; background-color: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233a3f37' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 13px;
}

.upload-box {
  border: 1.5px dashed #cdc7bd; border-radius: 3px; background: #f1efeb;
  padding: 16px 20px 12px; text-align: center;
}
.upload-title { margin: 0 0 10px; font-size: 1.3rem; font-weight: 500; }
.file-pick {
  display: block; width: min(310px, 100%); margin: 0 auto 10px;
  padding: 8px 12px; background: #fff; border: 1.5px dashed #d2ccc2; border-radius: 3px;
  font-size: 1.1rem; color: #4a4f46; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-pick:hover { border-color: var(--green-400); }
.file-pick.has-file { border-style: solid; border-color: var(--green-400); color: var(--green-700); font-weight: 600; }
.btn-upload { font-size: 1.25rem; padding: .5em 2.6em; }
.hint { margin: 8px 0 0; font-size: .85rem; color: var(--muted); }
.hint.error { color: #a5432f; font-weight: 600; }

.consult-form { display: grid; gap: 12px; }
.consult-form textarea, .consult-form input[type="email"] {
  width: 100%; font: 400 1.15rem var(--font); color: var(--ink);
  padding: 16px 20px; border: 1px solid #ddd8d0; border-radius: 3px; background: #fff; resize: vertical;
}
.consult-form textarea { min-height: 64px; }
.btn-submit { justify-self: center; font-size: 1.5rem; padding: .5em 3em; margin-top: 8px; }

/* ===== Clients ===== */
.clients { margin-top: 26px; padding: 6px 0 18px; border-top: 1px solid var(--line); text-align: center; }
.clients h2 { margin: 0 0 10px; font-size: 1.45rem; font-weight: 700; }
.client-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; gap: 14px 30px;
}
.client-list li { font-size: 1.6rem; font-weight: 600; color: #6a6e66; letter-spacing: .3px; }
.client-list img { height: 40px; width: auto; display: block; }
.client-list img.logo-amazon { height: 48px; }
.client-list img.logo-avalara { height: 34px; }
.client-list img.logo-kpmg { height: 46px; }
.client-list img.logo-ey { height: 44px; }
.client-list img.logo-ms { height: 54px; border-radius: 2px; }

/* ===== Sections ===== */
.section { padding: 70px 0; }
.section-alt { background: #e8e5df; }
.section-title { margin: 0 0 32px; text-align: center; font-size: 2rem; font-weight: 600; }
.section-title.left { text-align: left; }

.steps-section { padding-top: 54px; padding-bottom: 20px; border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px; position: relative; }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-600); color: #fff; font-weight: 700; font-size: 1.15rem;
}
.steps h3 { margin: 14px 0 6px; font-size: 1.25rem; }
.steps p { margin: 0; color: var(--muted); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--green-500);
  border-radius: var(--radius); padding: 22px 24px;
}
.service h3 { margin: 0 0 8px; font-size: 1.2rem; }
.service p { margin: 0; color: var(--muted); }

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.about-text .section-title { margin-bottom: 10px; }
.about-sub { margin: 0 0 12px; font-size: 1.3rem; font-weight: 600; color: var(--green-600); }
.about-text p { font-size: 1.1rem; margin: 0 0 14px; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pillars li { background: var(--card); border-left: 4px solid var(--green-500); border-radius: var(--radius); padding: 16px 20px; }
.pillars h3 { margin: 0 0 4px; font-size: 1.15rem; }
.pillars p { margin: 0; color: var(--muted); }

details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 600; font-size: 1.1rem; position: relative; color: var(--green-800); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--green-600); }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info p { font-size: 1.1rem; }
.btn-whatsapp { background: var(--wa); color: #fff; font-size: 1.1rem; margin-top: 8px; box-shadow: 0 2px 6px rgba(20,90,50,.3); }
.btn-whatsapp:hover { filter: brightness(1.07); }
.btn-whatsapp svg { width: 24px; height: 24px; color: #fff; }
.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 6px; box-shadow: var(--shadow); }
.contact-form label { font-weight: 600; font-size: .95rem; margin-top: 6px; }
.contact-form input, .contact-form textarea, .field input, .field textarea {
  width: 100%; font: 400 1.05rem var(--font); color: var(--ink);
  padding: 11px 13px; border: 1px solid #d7d2ca; border-radius: 3px; background: #fff;
}
.contact-form .btn { justify-self: start; margin-top: 12px; }

/* ===== Footer ===== */
.site-footer { background: #e6e2dc; border-top: 1px solid #d6d1c9; padding: 20px 0; margin-top: 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.site-footer a { color: #4a4f46; text-decoration: none; font-size: 1.05rem; }
.site-footer a:hover { color: var(--green-700); text-decoration: underline; }
.copy { color: #5c6058; font-size: 1rem; }

/* ===== Floating WhatsApp ===== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff; text-decoration: none;
  border-radius: 999px; padding: 12px 18px 12px 14px;
  box-shadow: 0 6px 18px rgba(20, 90, 50, .35);
  font-weight: 600;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { filter: brightness(1.06); }
/* Icon only until hovered, so it doesn't cover page content */
.wa-float { padding: 14px; }
.wa-float .wa-label { display: none; }
.wa-float:hover, .wa-float:focus-visible { padding: 12px 18px 12px 14px; }
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { display: inline; }

/* ===== Dialogs ===== */
.dialog {
  width: min(640px, 100% - 32px); max-height: calc(100vh - 40px);
  border: none; border-radius: 8px; padding: 30px 32px 26px;
  background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(20, 30, 20, .35);
}
.dialog::backdrop { background: rgba(35, 45, 35, .55); }
.dialog-small { width: min(460px, 100% - 32px); }
.dialog h2 { margin: 0 0 6px; font-size: 1.6rem; }
.dialog-close {
  position: absolute; top: 10px; right: 14px; border: none; background: none;
  font-size: 2rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.dialog-summary { margin: 0 0 18px; color: var(--muted); }
.dialog-summary strong { color: var(--ink); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 4px; font-size: .95rem; }
.consent input { margin-top: 4px; accent-color: var(--green-600); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .site-nav { gap: 28px; }
  .btn-login { margin-left: 10px; padding: 12px 30px; }
}
@media (max-width: 900px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: none; border: 1.5px solid rgba(255,255,255,.7); border-radius: 4px; cursor: pointer; padding: 0 10px;
  }
  .nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }
  .site-nav {
    position: absolute; top: 82px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #5a775c; padding: 8px 24px 18px;
    box-shadow: 0 8px 16px rgba(30,45,30,.25);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .site-nav a:hover, .site-nav a.active { border-bottom-color: rgba(255,255,255,.15); }
  .btn-login { margin: 14px 0 0; }

  .cards { grid-template-columns: 1fr; margin-top: -60px; }
  .steps, .service-grid { grid-template-columns: 1fr 1fr; }
  .about, .contact { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 28px); }
  .header-inner { height: 68px; }
  .site-nav { top: 68px; }
  .brand-name { font-size: 1.6rem; }
  .brand-icon { width: 36px; height: 30px; }
  .hero { height: 340px; background-position: center, 50% 100%; }
  .hero-text { padding-top: 22px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-sub { font-size: 1.05rem; margin-top: 10px; }
  .hero-sub::before, .hero-sub::after { width: 28px; }
  .cards { margin-top: -36px; }
  .card { padding: 18px 18px 22px; }
  .card h2 { font-size: 1.65rem; }
  .btn-buy { font-size: 1.35rem; padding: .6em 1.6em; }
  .select-row label { font-size: 1.1rem; }
  .select-row select { font-size: 1.05rem; }
  .client-list li { font-size: 1.25rem; }
  .client-list img { height: 30px; }
  .client-list img.logo-amazon { height: 36px; }
  .client-list img.logo-avalara { height: 26px; }
  .client-list img.logo-kpmg { height: 34px; }
  .client-list img.logo-ey { height: 34px; }
  .client-list img.logo-ms { height: 42px; }
  .steps, .service-grid, .field-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .wa-float { padding: 14px; }
  .wa-label { display: none; }
  .dialog { padding: 26px 20px 20px; }
}
