/*
  MAIN STYLESHEET
  Customize colors and fonts below.
  - Primary color: #1f6f78 (update as needed)
  - Accent color: #f5a623 (update as needed)
  - Body font: "Segoe UI", sans-serif (update as needed)
*/

:root {
  --color-primary: #1f6f78; /* Update brand primary color */
  --color-accent: #f5a623; /* Update brand accent color */
  --color-text: #1d1d1f;
  --color-bg: #ffffff;
  --color-surface: #f7f7f7;
  --color-muted: #6b6b6b;
  --color-border: #d0d0d0;
  --max-width: 1100px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Dark theme overrides */
[data-theme="dark"] {
  --color-text: #f5f5f5;
  --color-bg: #0f1115;
  --color-surface: #1a1f27;
  --color-muted: #b5b8c0;
  --color-border: #2b313c;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif; /* Update font family */
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-menu a.active,
.nav-menu a:hover {
  border-color: var(--color-accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--color-muted);
  background: transparent;
  color: inherit;
  padding: 8px 14px;
  border-radius: 6px;
}

.theme-toggle {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: inherit;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.hero-media img {
  border-radius: 22px;
  box-shadow: var(--shadow);
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-content .eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--color-muted);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  margin-top: 12px;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

section {
  padding: 48px 24px;
}

.icon-grid,
.services-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.icon-grid article,
.service-card,
.team-grid article {
  background: var(--color-surface);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.services-preview .service-card img,
.team-grid img,
.services-detail img {
  border-radius: 14px;
  margin-bottom: 14px;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.icon-grid img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.section-cta {
  text-align: center;
  margin-top: 20px;
}

.carousel {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-track {
  overflow: hidden;
  flex: 1;
}

.testimonial {
  display: none;
  background: var(--color-surface);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.testimonial.active {
  display: block;
}

.carousel-control {
  border: none;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
}

.areas-list {
  max-width: var(--max-width);
  margin: 0 auto;
  columns: 2;
  list-style: none;
  padding: 0;
  gap: 12px;
}

.page-banner {
  padding: 0;
}

.banner-media img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.banner-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}

.split-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: center;
}

.split-content.reverse {
  direction: rtl;
}

.split-content.reverse > * {
  direction: ltr;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: inherit;
}

.form-status {
  color: var(--color-primary);
  font-weight: 600;
}

.site-footer {
  background: var(--color-text);
  color: var(--color-bg);
  display: grid;
  gap: 24px;
  padding: 32px 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.social-links {
  list-style: none;
  padding: 0;
}

.social-links a {
  color: #fff;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    background: var(--color-bg);
    position: absolute;
    right: 24px;
    top: 64px;
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .areas-list {
    columns: 1;
  }
}
