/* Base theme */
:root {
  --bg: #ffffff;        /* white */
  --text: #111111;      /* near-black text */
  --muted: #6b7280;     /* neutral gray for secondary text */
  --border: #e5e7eb;    /* light gray borders */
  --primary: #dc2626;   /* red-600 */
  --primary-600: #b91c1c;/* red-700 */
  --surface: #ffffff;   /* white cards/surfaces */
  --shadow: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.1);
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-heading: 'Poppins', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* CSS reset (light) */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
}
html { scroll-behavior: smooth; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; height: auto; }

/* Layout */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 3.5rem 0; }
.section-sm { padding: 2rem 0; }
.surface { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }

/* Header */
header {
  position: sticky; top: 0; z-index: 40; background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.brand .logo-badge { display: inline-flex; align-items: center; background: transparent; border: none; padding: 0; border-radius: 0; }
.brand .logo-img { height: 32px; width: auto; display: block; }
.nav a { color: var(--text); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-links a { padding: 0.5rem 0.75rem; border-radius: 8px; }
.nav-links a.active, .nav-links a:hover { color: var(--primary); text-decoration: none; background: transparent; }

/* Hero */
.hero { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1.1fr 0.9fr; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin: 0; }
.hero p.lead { color: var(--muted); font-size: 1.125rem; }
.cta { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; border-radius: 10px; font-weight: 700; background: var(--primary); color: white; box-shadow: var(--shadow); }
.cta:hover { background: var(--primary-600); text-decoration: none; }
.pill { display: inline-block; padding: 0.25rem 0.6rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 0.85rem; }

/* Grids */
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card { padding: 1.25rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; margin-bottom: 0.25rem; }
.muted { color: var(--muted); }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; letter-spacing: 0; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }

/* Features */
.feature { display: flex; gap: 0.9rem; align-items: flex-start; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: transparent; display: grid; place-items: center; border: none; }

/* Forms */
form { display: grid; gap: 1rem; }
label { font-weight: 600; }
input, textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: 10px; font: inherit; }
textarea { min-height: 140px; resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1rem; border-radius: 10px; font-weight: 700; border: none; background: var(--primary); color: #fff; cursor: pointer; }
.btn:hover { background: var(--primary-600); }

/* Footer */
footer { border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner { display: flex; gap: 1rem; align-items: center; justify-content: center; padding: 1.25rem 0; color: var(--muted); font-size: 0.95rem; }

/* Utilities */
.stack { display: grid; gap: 0.5rem; }
.stack-lg { display: grid; gap: 1rem; }
.center { text-align: center; }
.spacer { height: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Banner (fade slider) */
.banner { position: relative; background: var(--bg); }
.banner .viewport { position: relative; width: 100%; height: clamp(260px, 60vh, 760px); overflow: hidden; }
.banner .viewport::after { content: ""; position: absolute; inset: 0; background: none; pointer-events: none; }
.banner .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 700ms ease; }
.banner .slide.active { opacity: 1; }
.banner .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner .slide-1 img { object-position: 60% center; }
.banner .slide-2 img { object-position: 50% 35%; }
.banner .slide-3 img { object-position: center 60%; }
.banner .dots { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; }
.banner .dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.5); border: 1px solid rgba(0,0,0,0.2); }
.banner .dot.active { background: var(--primary); }
/* Hide dots for a cleaner look on the one-page layout */
.banner .dots { display: none !important; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; gap: 0.75rem; }
  .nav-links { width: 100%; justify-content: flex-start; }
}

/* Contact section tweaks (works on one-page and contact page) */
.page-contact .contact-card, #contact .contact-card { gap: 0.15rem; }
.page-contact .contact-card p, #contact .contact-card p { margin: 0; }
.page-contact .contact-card h3, #contact .contact-card h3 { margin: 0.25rem 0; }
.map-embed { width: 85%; margin: 0.5rem auto 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }
@media (max-width: 900px) {
  .map-embed { width: 100%; }
}

/* One-page layout additions */
.logo-header { position: static; border-bottom: none; background: var(--bg); }
.logo-header .logo-centered { width: clamp(160px, 22vw, 260px); height: auto; margin: 1.25rem auto 0.5rem; }

.contacts h2 { margin: 0 0 1rem; }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; max-width: 780px; margin: 0 auto; justify-items: center; }
.contact-item { padding: 1.25rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--shadow); text-align: center; width: 100%; max-width: 360px; }
.contact-item h3 { margin: 0 0 0.25rem; }
.contact-item p { margin: 0.15rem 0; }

/* If there's an odd number of cards, center the last one */
.contact-list > .contact-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
}

@media (max-width: 900px) {
  .contact-list { grid-template-columns: 1fr; }
}
