:root {
  --accent: #f37033;
  --dark: #3c4858;
  --bg: #E5E5E5;
  --footer-bg: #1c1c1e;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Roboto Slab", "Times New Roman", serif;
  color: var(--dark);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / Nav */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
}

.site-header.is-solid {
  position: sticky;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { height: 50px; width: auto; }
.logo .logo-dark { display: none; }
.site-header.is-solid .logo .logo-light { display: none; }
.site-header.is-solid .logo .logo-dark { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
}
.site-header.is-solid .nav-toggle { border-color: var(--dark); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
}
.site-header.is-solid .nav-toggle span { background: var(--dark); }

.main-nav { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav a {
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .5px;
}
.site-header.is-solid .main-nav a { color: var(--dark); }
.main-nav a:hover { color: var(--accent); text-decoration: none; }

.main-nav .btn-nav {
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 8px 22px;
}
.site-header.is-solid .main-nav .btn-nav { border-color: var(--accent); color: var(--accent); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 6px;
  padding: 8px 0;
  list-style: none;
  margin: 0;
  z-index: 200;
}
.has-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a { color: var(--dark); display: block; padding: 8px 18px; font-size: 14px; }
.dropdown-menu li a:hover { background: #f7f7f7; color: var(--accent); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { color: var(--dark); display: block; padding: 10px 20px; width: 100%; }
  .main-nav li { width: 100%; }
  .dropdown-menu { position: static; box-shadow: none; padding-left: 16px; }
  .main-nav .btn-nav { border: none; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(60,72,88,.75), rgba(60,72,88,.55));
}
.hero .container { position: relative; z-index: 1; max-width: 640px; }
.hero h1 { font-size: 42px; margin: 0 0 12px; line-height: 1.2; }
.hero .sub-title { display: block; font-size: 20px; margin-bottom: 24px; opacity: .95; }

.page-hero {
  min-height: 320px;
}
.page-hero .container { text-align: center; margin: 0 auto; }
.page-hero h1 { font-size: 36px; }

/* Buttons */
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 14px 34px;
  font-size: 15px;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #d85f26; text-decoration: none; }
.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--accent); }

/* Sections */
section { padding: 70px 0; }
.section-alt { background: #f7f7f7; }

/* Section with background image + dark overlay, used to set "high level area" sections apart */
.section-image {
  position: relative;
  background-size: cover;
  background-position: center center;
  color: #fff;
}
.section-image::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
}
.section-image .container { position: relative; z-index: 2; }
.section-image h2, .section-image .section-title h2, .section-image .content-row h2 { color: #fff; }
.section-image p, .section-image .section-title p, .section-image .content-row p { color: #eaeaea; }

.section-title { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.section-title h2 { font-size: 36px; margin: 0 0 10px; }
.section-title p { font-size: 18px; color: #777; margin: 0; }

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.feature-box .icon {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 14px;
}
.feature-box h4 { font-size: 20px; margin: 0; }
.feature-box a { color: var(--dark); }
.feature-box a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* Alternating content rows */
.content-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}
.content-row:last-child { margin-bottom: 0; }
.content-row.reverse { flex-direction: row-reverse; }
.content-row .text, .content-row .media { flex: 1; }
.content-row h2 { font-size: 30px; margin: 0 0 14px; }
.content-row p { font-size: 17px; color: #555; }

@media (max-width: 768px) {
  .content-row, .content-row.reverse { flex-direction: column; gap: 24px; }
}

/* Icon highlight grid (used on solution pages) */
.icon-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  text-align: center;
  margin-bottom: 50px;
}
.icon-grid > div { flex: 0 1 calc(33.333% - 20px); }
.icon-grid.icon-grid-2 > div { flex: 0 1 calc(50% - 15px); }
.icon-grid.icon-grid-4 > div { flex: 0 1 calc(25% - 22.5px); }
.icon-grid .icon { font-size: 38px; color: var(--accent); margin-bottom: 12px; }
.icon-grid h4 { font-size: 18px; margin: 0; }
@media (max-width: 768px) {
  .icon-grid > div,
  .icon-grid.icon-grid-4 > div { flex: 0 1 calc(50% - 15px); }
}
@media (max-width: 480px) {
  .icon-grid > div,
  .icon-grid.icon-grid-2 > div,
  .icon-grid.icon-grid-4 > div { flex: 0 1 100%; }
}

.lead {
  text-align: center;
  font-size: 22px;
  max-width: 800px;
  margin: 0 auto 50px;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.testimonial { text-align: center; }
.testimonial img {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
}
.testimonial h4 { margin: 0 0 4px; font-size: 18px; }
.testimonial .role { color: #999; font-size: 14px; margin-bottom: 12px; }
.testimonial p { font-size: 15px; color: #555; }

@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* Project / blog cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.card .card-body { padding: 20px; }
.card .category {
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
}
.card h4 { font-size: 18px; margin: 10px 0; }
.card h4 a { color: var(--dark); }
.card h4 a:hover { color: var(--accent); }
.card p { color: #666; font-size: 15px; }

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
}

/* Contact */
.contact-section {
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(60,72,88,.85);
}
.contact-section .container { position: relative; z-index: 1; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-section h2 { font-size: 34px; margin: 0 0 10px; }
.contact-info-item { display: flex; gap: 16px; margin-top: 24px; }
.contact-info-item .icon { font-size: 22px; color: var(--accent); margin-top: 4px; }
.contact-info-item h4 { margin: 0 0 4px; font-size: 18px; }

.contact-form {
  background: #fff;
  color: var(--dark);
  border-radius: 8px;
  padding: 30px;
}
.contact-form h4 { margin-top: 0; text-align: center; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  margin-bottom: 20px;
  font-family: inherit;
  font-size: 15px;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.contact-form button { width: 100%; }
.contact-form [data-netlify-recaptcha] { margin-bottom: 20px; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: #ccc;
  padding: 40px 0;
  font-size: 14px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.footer-links a { color: #ccc; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #888;
}
.footer-bottom a { color: #aaa; }

/* Cookie banner */
.cookie-banner {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--dark);
  color: #fff;
  padding: 18px 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,.15);
}
.cookie-banner.is-visible { display: block; }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: 14px; color: #eaeaea; }
.cookie-banner a { color: var(--accent); }
.cookie-banner .btn { flex-shrink: 0; padding: 10px 28px; font-size: 14px; }
@media (max-width: 600px) {
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
}

/* Utility */
.text-center { text-align: center; }
.mt-lg { margin-top: 60px; }
.mb-lg { margin-bottom: 60px; }
