:root{
  --accent:#0b6efd;
  --muted:#6b7280;
  --bg:#f6f7fb;
  --card:#ffffff;
  --radius:10px;
  --gap:18px;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

*{box-sizing:border-box}
body{
  margin:0;
  background:var(--bg);
  color:#111827;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Header */
.site-header{
  /* keep a subtle outer area; the actual image is on .header-inner */
  padding:18px 20px 10px;
  border-bottom:1px solid rgba(11,110,253,0.06);
}

/* inner header now supports a background image (inline url via template) */
.header-inner{
  max-width:1100px;
  margin:0 auto;
  padding:30px 22px;
  border-radius:12px;
  color:#fff;
  position:relative;
  overflow:hidden;
  box-shadow: 0 8px 26px rgba(2,6,23,0.06);
  /* background-image is provided inline from the template using url_for,
     but we provide defaults for background behavior here */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.header-inner .company-name{
  margin:0;
  font-size:2.25rem;
  color:#fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}
.header-inner .tagline{
  margin:6px 0 0;
  color:rgba(255,255,255,0.92);
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

/* Grid layout */
.grid{
  max-width:1100px;
  margin:26px auto;
  padding:0 20px 80px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(100px, auto);
  gap: var(--gap);
}

/* Cards - grid placement */
.card{
  background:var(--card);
  padding:18px;
  border-radius:var(--radius);
  box-shadow: 0 6px 18px rgba(15,23,42,0.06);
}

/* Placement rules: change these to adjust layout */
.hero{ grid-column: 1 / span 8; }
.services{ grid-column: 9 / span 4; }
.team{ grid-column: 1 / span 4; }
.testimonials{ grid-column: 5 / span 4; }
.contact{ grid-column: 9 / span 4; }
.external{ grid-column: 1 / span 6; }
.cta{ grid-column: 7 / span 6; }

/* Responsive breakpoints */
@media (max-width: 900px){
  .grid{ grid-template-columns: repeat(6, 1fr); }
  .hero{ grid-column: 1 / -1; }
  .services{ grid-column: 1 / -1; }
  .team{ grid-column: 1 / -1; }
  .testimonials{ grid-column: 1 / -1; }
  .contact{ grid-column: 1 / -1; }
  .external{ grid-column: 1 / -1; }
  .cta{ grid-column: 1 / -1; }

  /* reduce header-inner padding on smaller screens */
  .header-inner{ padding:22px 16px; border-radius:10px; }
}
@media (max-width: 520px){
  .grid{ grid-template-columns: repeat(1, 1fr); gap: 12px; padding: 0 12px 60px; }
}

/* Small helpers */
h2{margin:0 0 8px;font-size:1.05rem}
ul{margin:8px 0 0;padding-left:18px}
.muted{color:var(--muted)}
.testimonial{margin:8px 0;padding-left:12px;border-left:3px solid #eee}
.external-controls{margin-top:12px;display:flex;gap:8px}
.btn{
  display:inline-block;padding:8px 12px;background:var(--accent);color:#fff;border-radius:8px;text-decoration:none;
}
.error{color:#b91c1c}
.zen{font-style:italic;color:#0b5ed7}
