:root {
  --primary: #0282dc;
  --primary-dark: #016bb8;
  --top-bar: #1a2332;
  --text: #404040;
  --heading: #000000;
  --muted: #6b7280;
  --surface: #ffffff;
  --surface-alt: #f5f7fa;
  --border: #e5e7eb;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--surface-alt);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.3;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1.25rem;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

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

.container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.container-full {
  width: min(1400px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Top bar */
.top-bar {
  background: var(--top-bar);
  color: #fff;
  font-size: 0.875rem;
  padding: 0.55rem 0;
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.contact-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-block li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.contact-block a {
  color: #fff;
}

.contact-block a:hover {
  color: #b8d9f5;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  font-size: 0.85rem;
}

.social-icons a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Navbar */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.site-branding .site-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.site-branding .site-title a,
.site-branding .site-logo {
  display: inline-block;
  line-height: 0;
  color: var(--heading);
}

.site-branding .site-logo img {
  height: 48px;
  width: auto;
  max-width: 220px;
}

.site-branding .site-title a:hover {
  opacity: 0.85;
}

.site-description {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--heading);
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--heading);
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-menu > li > a:hover,
.nav-menu > li > a[aria-current="page"] {
  color: var(--primary);
}

.nav-menu > li.has-dropdown > a::after {
  content: " ▾";
  font-size: 0.7em;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  z-index: 50;
}

.nav-menu > li.has-dropdown:hover .dropdown,
.nav-menu > li.has-dropdown.open .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 0.5rem 1.1rem;
  color: var(--text);
  font-size: 0.9rem;
}

.dropdown a:hover {
  background: var(--surface-alt);
  color: var(--primary);
}

/* Hero slider */
.theme-slider {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background: #0d1b2a;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 30, 60, 0.85) 0%, rgba(0, 30, 60, 0.45) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 420px;
  padding: 3rem 0;
}

.slide-content .title-large {
  color: #fff;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  max-width: 700px;
  margin-bottom: 1rem;
}

.slide-content .description {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 1.5rem;
}

.slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slider-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.slider-dots button.active {
  background: var(--primary);
  border-color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff !important;
}

.btn-outline-light {
  background: transparent;
  color: #fff !important;
  border-color: #fff;
  margin-left: 0.5rem;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--primary) !important;
}

.btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff !important;
}

/* Feature banner */
.feature-banner {
  background: var(--primary);
  color: #fff;
  padding: 2.5rem 0;
}

.feature-banner h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.feature-banner p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 800px;
}

.feature-banner .btn {
  margin-top: 0.5rem;
  background: #fff;
  color: var(--primary) !important;
  border-color: #fff;
}

.feature-banner .btn:hover {
  background: var(--top-bar);
  color: #fff !important;
  border-color: var(--top-bar);
}

/* Page layout */
.page-content {
  padding: 2.5rem 0 3rem;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: start;
}

.page-banner {
  background: linear-gradient(135deg, #0d1b2a, #1a3a5c);
  color: #fff;
  padding: 2.5rem 0;
  margin-bottom: 0;
}

.page-banner h1 {
  color: #fff;
  margin: 0;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0.5rem 0 0;
}

/* Section headings */
.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin-bottom: 0.5rem;
}

.section-heading p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(2, 130, 220, 0.15);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.service-card h3 a {
  color: var(--heading);
}

.service-card h3 a:hover {
  color: var(--primary);
}

.service-card p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--muted);
}

.service-card .card-icon {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* Sidebar widgets */
.sidebar .widget {
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  padding: 1.25rem;
}

.sidebar .widget-title {
  font-size: 1rem;
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--primary);
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar ul li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.sidebar ul li:last-child {
  border-bottom: none;
}

.sidebar-search {
  display: flex;
  gap: 0;
}

.sidebar-search input {
  flex: 1;
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  font: inherit;
  border-radius: 3px 0 0 3px;
}

.sidebar-search button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 0 3px 3px 0;
  font-weight: 600;
}

.philosophy-box {
  background: var(--surface-alt);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.service-detail {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail h2 {
  font-size: 1.2rem;
}

.checklist {
  padding-left: 1.25rem;
  color: var(--text);
}

.checklist li {
  margin: 0.4rem 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  font: inherit;
  border-radius: 3px;
}

.contact-details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  padding: 1.5rem;
}

.contact-details h2 {
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.form-status {
  margin: 0;
  min-height: 1.2rem;
  font-size: 0.9rem;
}

.form-status.success {
  color: #0d8050;
}

.form-status.error {
  color: #c0392b;
}

/* Footer */
.site-footer {
  background: var(--top-bar);
  color: rgba(255, 255, 255, 0.85);
  padding: 1.5rem 0;
  font-size: 0.9rem;
  text-align: center;
}

.site-footer a {
  color: #7ec8ff;
}

.site-footer a:hover {
  color: #fff;
}

.whatsapp-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  background: #25d366;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

.whatsapp-fab:hover {
  color: #fff;
  background: #1da851;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background: var(--surface-alt);
  }

  .nav-menu > li.has-dropdown.open .dropdown {
    display: block;
  }

  .services-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .btn-outline-light {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .slide-content .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}
