/* CHA Properties design system */
:root {
  --primary: #006372;
  --primary-hover: #00798c;
  --primary-dark: #004d59;
  --primary-deep: #002d34;
  --accent: #f9530c;
  --accent-hover: #fa6525;
  --teal-light: #2baab1;
  --ink: #24313c;
  --body: #4a5560;
  --muted: #6b7680;
  --bg-soft: #f3f6f7;
  --bg-warm: #efefef;
  --white: #ffffff;
  --whatsapp: #25d366;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 45, 52, 0.10);
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; font-weight: 700; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff;
  padding: 8px 16px; z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 6px; font-weight: 700;
  font-size: 0.98rem; letter-spacing: 0.01em; transition: all 0.18s ease; border: 2px solid transparent;
  cursor: pointer; text-align: center;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--primary); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; margin-top: 10px; }
.btn-whatsapp:hover { background: #1fb857; color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  box-shadow: 0 2px 14px rgba(0, 45, 52, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; }
.logo-link img { display: block; width: 150px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.site-nav > ul > li > a {
  display: block; padding: 10px 13px; color: var(--ink); font-weight: 600; font-size: 0.95rem;
}
.site-nav > ul > li > a:hover { color: var(--primary); }
.has-sub { position: relative; }
.has-sub > a::after { content: " \25BE"; font-size: 0.7em; color: var(--muted); }
.sub {
  position: absolute; top: 100%; left: 0; background: #fff; min-width: 230px;
  box-shadow: var(--shadow); border-radius: 8px; padding: 8px 0 !important;
  display: none !important; flex-direction: column; align-items: stretch;
}
.sub li a { display: block; padding: 9px 18px; font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.sub li a:hover { background: var(--bg-soft); color: var(--primary); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: flex !important; }
.nav-cta a { margin-left: 8px; padding: 11px 20px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--primary); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero {
  background: linear-gradient(rgba(0, 45, 52, 0.66), rgba(0, 45, 52, 0.66)), var(--hero-img, none) center/cover no-repeat, var(--primary-deep);
  color: #fff; text-align: center; padding: 110px 20px 120px;
}
.hero h1 { color: #fff; max-width: 800px; margin: 0 auto 0.4em; }
.hero .lead { font-size: 1.2rem; max-width: 640px; margin: 0 auto 1.6em; color: rgba(255, 255, 255, 0.92); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Page hero */
.page-hero {
  background: var(--primary-deep); color: #fff; padding: 64px 0 56px; background-size: cover; background-position: center;
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255, 255, 255, 0.9); font-size: 1.12rem; max-width: 720px; margin-bottom: 0; }
.post-hero { padding: 52px 0 40px; }
.breadcrumbs { font-size: 0.85rem; margin-bottom: 14px; color: rgba(255, 255, 255, 0.75); }
.breadcrumbs a { color: rgba(255, 255, 255, 0.85); }
.breadcrumbs span { margin: 0 4px; }
.post-meta { color: rgba(255, 255, 255, 0.8); font-size: 0.92rem; margin: 0; }

/* Sections */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-deep { background: var(--primary-deep); color: #fff; }
.section-deep h2 { color: #fff; }
.section-head { max-width: 700px; margin: 0 auto 44px; text-align: center; }
.section-head .kicker { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; display: block; margin-bottom: 8px; }

/* Cards / grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px; height: 100%;
}
.card h3 { margin-top: 0; }
.card .icon { font-size: 1.9rem; color: var(--accent); margin-bottom: 10px; display: block; }
.img-rounded { border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

/* Article cards */
.post-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.18s ease;
}
.post-card:hover { transform: translateY(-4px); }
.post-card img { width: 100%; height: 190px; object-fit: cover; }
.post-card .pc-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 1.06rem; margin: 0; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--primary); }
.post-card .pc-date { color: var(--muted); font-size: 0.83rem; }
.post-card p { font-size: 0.93rem; margin: 0; }
.post-card .pc-more { margin-top: auto; font-weight: 700; font-size: 0.9rem; color: var(--accent); }

/* Post layout */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding-top: 44px; padding-bottom: 64px; }
.post-body h2 { margin-top: 1.6em; }
.post-body h3 { margin-top: 1.3em; }
.post-hero-img { border-radius: var(--radius); margin-bottom: 26px; box-shadow: var(--shadow); }
.post-body blockquote {
  border-left: 4px solid var(--accent); background: var(--bg-soft); margin: 1.6em 0;
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0;
}
.post-body blockquote p { margin: 0; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin-bottom: 0.4em; }
.post-side { display: flex; flex-direction: column; gap: 24px; }
.side-card { background: var(--bg-soft); border-radius: var(--radius); padding: 26px; position: sticky; }
.side-card h2 { font-size: 1.15rem; }
.side-card .btn { width: 100%; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { border-bottom: 1px solid rgba(0, 99, 114, 0.12); padding: 9px 0; font-size: 0.93rem; }
.side-list li:last-child { border-bottom: 0; }

/* Team */
.team-card { text-align: center; }
.team-card img { width: 100%; max-width: 240px; border-radius: 50%; aspect-ratio: 1; object-fit: cover; margin: 0 auto 14px; }
.team-card .role { color: var(--accent); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.team-card .area { color: var(--muted); font-size: 0.9rem; }

/* Testimonials */
.testimonial { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.testimonial p { font-style: italic; font-size: 0.97rem; }
.testimonial .who { font-style: normal; font-weight: 700; color: var(--ink); margin: 0; }
.stars { color: #f5a623; letter-spacing: 2px; }

/* Forms */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { font-weight: 600; color: var(--ink); font-size: 0.92rem; display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #d6dee1; border-radius: 6px;
  font-family: var(--font); font-size: 0.97rem; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal-light); border-color: var(--teal-light); }
.form-note { font-size: 0.83rem; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; text-align: center; padding: 64px 20px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 560px; margin: 0 auto 24px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* FAQ */
details.faq {
  background: #fff; border-radius: 8px; box-shadow: var(--shadow); padding: 4px 22px; margin-bottom: 12px;
}
details.faq summary { font-weight: 700; color: var(--ink); cursor: pointer; padding: 14px 0; }

/* Footer */
.site-footer { background: var(--primary-deep); color: rgba(255, 255, 255, 0.82); font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 36px; padding: 60px 20px 30px; }
.site-footer h3 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0 0 20px; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: rgba(255, 255, 255, 0.82); }
.site-footer a:hover { color: #fff; }
.footer-tagline { font-weight: 700; color: var(--teal-light); margin: 10px 0 6px; }
.social-links { display: flex; gap: 10px; margin-top: 6px; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 50%; font-size: 0.8rem; font-weight: 700;
}
.social-links a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 18px 20px; text-align: center; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 56px; height: 56px;
  background: var(--whatsapp); color: #fff; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); transition: transform 0.15s ease;
}
.whatsapp-fab:hover { transform: scale(1.07); color: #fff; }

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.iframe-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.iframe-wrap iframe { display: block; width: 100%; border: 0; min-height: 640px; }

/* Responsive */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0; }
  .site-nav > ul > li > a { padding: 13px 24px; border-bottom: 1px solid var(--bg-soft); }
  .sub { position: static; box-shadow: none; display: none !important; padding-left: 16px !important; }
  .has-sub.sub-open .sub { display: block !important; }
  .nav-cta { padding: 14px 24px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 20px 88px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}
