:root {
  --primary-color: #1B453C;
  --secondary-color: #DAB36F;
  --text-color: #1A1A1A;
  --background-color: #ffffff;
  --light-bg: #F7F7F5;
  --offwhite-color: #F3F2ED;

  /* Header tuning knobs (desktop) */
  --logo-height-desktop: 220px;
  --logo-top-desktop: -70px;      /* raise/lower logo */
  --title-dy-desktop: 60px;        /* move title down (+) or up (-) */
}

/* ---------- GLOBAL RESET ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-color);
  background: var(--background-color);
  line-height: 1.6;
  margin-top: 0;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* ---------- HEADER ---------- */
header {
  background: var(--offwhite-color);
  color: var(--primary-color);
  border-bottom: 3px solid var(--secondary-color);
  padding: 0;
  position: relative;
}

/* Layout: nav on top, title+logo below */
.container.header-split {
  display: flex;
  flex-direction: column;
}

/* --- Nav (top row) --- */
header nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 24px;
  padding: 0;
  margin: 6px 0 4px;
}
nav a { color: var(--primary-color); text-decoration: none; font-weight: bold; }
nav a[aria-current="page"], nav a:hover { color: var(--secondary-color); text-decoration: underline; }

/* --- Title + logo row (base) --- */
.header-row {
  position: relative;   /* context for absolute logo on desktop */
  z-index: 1;
}

/* Title (base) */
header h1 {
  margin: 0;
  color: var(--primary-color);
}

/* Logo (base) */
.brand-logo.top-right {
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  pointer-events: none;
  z-index: 1;
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(180deg, var(--offwhite-color), #ffffff);
  color: var(--text-color);
  text-align: center;
  padding: 2rem 0 3rem;
}
.hero h2 { font-size: 2rem; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; margin: 0 auto 1.5rem; max-width: 700px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: background .3s ease, transform .2s ease, box-shadow .2s ease;
  text-align: center;
}
.primary-btn { background: var(--primary-color); color: #fff; border: 1px solid var(--primary-color); }
.primary-btn:hover { background: var(--secondary-color); border-color: var(--secondary-color); color: #1A1A1A; }
.secondary-btn { background: #fff; color: var(--primary-color); border: 1px solid var(--primary-color); }
.secondary-btn:hover { background: var(--offwhite-color); }

/* CTA gold button style */
.cta .btn, .cta-small .btn, footer .btn {
  background-color: var(--secondary-color);
  color: #1A1A1A;
  border: none;
  font-weight: bold;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}
.cta .btn:hover, .cta-small .btn:hover, footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
  background-color: #E0BB74;
}

/* ---------- FEATURES ---------- */
.features { padding: 2rem 0; background: var(--light-bg); }
.features h3 { text-align: center; margin-bottom: 1rem; font-size: 1.5rem; }
.features ul { list-style: none; max-width: 800px; margin: 0 auto; padding: 0; }
.features li { position: relative; padding-left: 2rem; margin-bottom: .75rem; }
.features li::before { content: '✔'; position: absolute; left: 0; top: .1rem; color: var(--primary-color); font-weight: bold; }

/* ---------- SERVICES SUMMARY ---------- */
.services-summary { padding: 2rem 0; }
.services-summary h3 { text-align: center; margin-bottom: 1.5rem; font-size: 1.5rem; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.service-grid h4 { margin-top: 0; font-size: 1.2rem; }
.service-grid p { margin: .5rem 0; font-size: .95rem; }
.link { color: var(--primary-color); text-decoration: underline; font-weight: bold; }
.link:hover { color: var(--secondary-color); }

/* ---------- ABOUT SNIPPET ---------- */
.about-snippet { padding: 2rem 0; background: var(--light-bg); }
.about-snippet h3 { margin-bottom: 1rem; font-size: 1.5rem; }
.about-snippet p { max-width: 800px; margin-bottom: 1.25rem; line-height: 1.7; }

/* ---------- CTA ---------- */
.cta { background: var(--primary-color); color: #fff; text-align: center; padding: 2rem 0; }
.cta h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.cta p { margin-bottom: 1rem; font-size: 1rem; }

/* ---------- FOOTER ---------- */
footer { background-color: var(--primary-color); color: #fff; }
.footer-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.footer-columns h4 { color: #fff; margin-bottom: .5rem; }
.footer-columns a { color: #ddd; text-decoration: none; }
.footer-columns a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { text-align: center; margin-top: 1.5rem; border-top: 1px solid #444; padding-top: 1rem; font-size: .85rem; }

/* ---------- CONTACT ---------- */
.contact-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.contact-form { display: flex; flex-direction: column; max-width: 600px; }
.contact-form label { margin-top: .75rem; margin-bottom: .25rem; font-weight: bold; }
.contact-form input, .contact-form textarea { padding: .5rem; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
.contact-form button { margin-top: 1rem; cursor: pointer; border: none; font-size: 1rem; }

/* ---------- FAQ ---------- */
details { margin-bottom: 1rem; border: 1px solid #ddd; border-radius: 4px; padding: .75rem 1rem; background: #fff; }
details summary { cursor: pointer; font-weight: bold; margin: -.75rem -1rem 0; padding: .75rem 1rem; background: var(--light-bg); }
details summary::-webkit-details-marker { display: none; }

/* ---------- CTA SMALL ---------- */
.cta-small { margin: 2rem 0; padding: 1.5rem; background: var(--light-bg); border-left: 4px solid var(--primary-color); }
.cta-small h4 { margin-bottom: .5rem; font-size: 1.2rem; }
.cta-small p { margin-bottom: 1rem; }

/* ---------- WHATSAPP BUTTON ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  background-color: #25D366;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 6px 20px rgba(0,0,0,0.3); background-color: #1ebe57; }
.wa-icon { width: 30px; height: 30px; fill: white; }
@media (max-width: 600px) { .wa-float { width: 56px; height: 56px; right: 15px; bottom: 15px; } .wa-icon { width: 26px; height: 26px; } }

/* ================= DESKTOP (≥769px) ================= */
@media (min-width: 769px) {
  /* Keep the row shallow so the gold line sits close to the title */
  .header-row {
    display: block;          /* title on its own line */
    padding: 8px 0 4px;      /* adjust bottom for proximity to gold line */
    min-height: 115px;       /* enough to hold title */
  }

  /* Title — one line, slightly smaller for balance, adjustable Y */
  header h1 {
    white-space: nowrap;
    line-height: 1.06;
    font-size: clamp(1.7rem, 2.3vw + 0.5rem, 2.3rem);
    padding-right: clamp(180px, 28vw, 340px); /* reserve space for logo */
    transform: translateY(var(--title-dy-desktop)); /* fine tune vertical */
    overflow: hidden;
    text-overflow: ellipsis;  /* guard on ultra-narrow desktops */
  }

  /* Logo — pinned, big, does not affect row height */
  .brand-logo.top-right {
    position: absolute;
    right: 0;
    top: var(--logo-top-desktop);     /* raise/lower here */
    height: var(--logo-height-desktop);
  }

  header { padding-top: 6px; } /* soft top breathing room */
}

/* ================= MOBILE & TABLET (≤768px) ================= */
@media (max-width: 768px) {
  /* Compact, balanced header */
  .header-row{
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;  /* title | logo */
    align-items: end;
    gap: 8px;
    padding: 14px 0 8px;              /* space above + before gold line */
    min-height: auto;
  }

  /* Title: keep to one line by shrinking a touch; no ellipsis/wrap */
  header h1{
    margin: 0;
    line-height: 1.1;
    text-align: left;
    white-space: nowrap;
    font-size: clamp(0.7rem, 3.0vw + 0.2rem, 1.1rem);
    overflow: hidden;                 /* guard on very tiny phones */
    text-overflow: clip;              /* avoid dots; it just fits */
    padding-right: 0 !important;
  }

  /* Logo: inline and larger for visibility */
  .brand-logo.top-right{
    position: static ;
    height: 100px ;
    max-width: 40vw;
    width: auto ;
    top: auto ;
    right: auto;
    transform: none;
    margin: 0 !important;
    object-fit: contain;
  }

  /* Nav centered with tight spacing */
  header nav ul { justify-content: center; gap: 10px 14px; margin: 6px 0 8px; }

  /* Keep content clear of WhatsApp bubble */
  body { padding-bottom: 88px; }
}
