/* Base styles */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f7fb;
  --color-primary: #1c4f82;     /* Deep blue */
  --color-primary-light: #2f6da8;
  --color-accent: #e0b45a;      /* Warm accent */
  --color-text: #1f2933;
  --color-text-muted: #6b7280;
  --color-border: #d1d5db;
  --radius-lg: 16px;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.two-column {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .two-column {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  }
}

/* Typography */

h1, h2, h3, h4 {
  color: var(--color-text);
  margin-top: 0;
}

h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Header & Nav */

.site-header {
  background: linear-gradient(135deg, #0f172a, #1f2937);
  color: #f9fafb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 0.75rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.7);
  color: #f9fafb;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: 700;
  font-size: 1rem;
}

.logo-tagline {
  font-size: 0.8rem;
  color: #9ca3af;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-phone {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 600;
}

.header-cta-btn {
  background-color: var(--color-accent);
  color: #111827;
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.header-cta-btn:hover {
  filter: brightness(1.05);
}

/* Navigation */

.site-nav {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  background: #111827;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  gap: 1.5rem;
}

.nav-links li a {
  display: block;
  padding: 0.9rem 0;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links li a:hover {
  color: var(--color-accent);
}

.nav-links li a.active {
  color: var(--color-accent);
  font-weight: 600;
}

/* Mobile nav toggle */

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.7);
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 16px;
  background: #e5e7eb;
  margin: 0 auto;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links.open {
  display: flex;
  flex-direction: column;
}

/* Desktop nav */

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex !important;
    flex-direction: row;
  }

  .nav-links li a {
    padding: 0.9rem 0.4rem;
  }
}

/* Hero */

.hero {
  padding: 3rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

/* Light hero text so it stands out on dark background */
.hero h1 {
  color: #f9fafb;
}

.hero p {
  color: #e5e7eb;
}

.hero-text p {
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.hero-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.hero-badges li {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.3rem 0.75rem;
  color: #e5e7eb;
}

/* Hero image */

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo {
  display: block;
  width: 100%;
  max-width: 840px;      /* overall width limit */
  height: auto;
  max-height: 420px;     /* overall height limit */
  object-fit: cover;
  border-radius: 16px;
}

/* Desktop layout */

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 2fr 1fr;
  }
}

/* Mobile layout */

@media (max-width: 899px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
    max-width: 420px;
    margin: 0 auto 1.5rem;
  }
}

/* Page hero (used on subpages) */

.page-hero {
  padding: 2.5rem 0 2.75rem;
  background: linear-gradient(135deg, #0f172a, #1f2937);
  color: #e5e7eb;
}

.page-hero h1 {
  color: #f9fafb;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: #cbd5f5;
  max-width: 640px;
}

/* Buttons & links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.08s ease;
}

.btn.primary {
  background-color: var(--color-primary);
  color: #f9fafb;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.7);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.4);
}

.btn.full-width {
  width: 100%;
}

.text-link,
.card-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.text-link:hover,
.card-link:hover {
  text-decoration: underline;
}

/* Cards, info panels */

.card-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-grid .card:nth-child(1):only-child {
    grid-column: span 3;
  }
}

.card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.info-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Lists */

.bullet-list {
  list-style: disc;
  padding-left: 1.2rem;
}

.bullet-list li {
  margin-bottom: 0.4rem;
  color: var(--color-text-muted);
}

.bullet-list.columns {
  columns: 2;
  column-gap: 2rem;
}

@media (max-width: 600px) {
  .bullet-list.columns {
    columns: 1;
  }
}

.checklist {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--color-text-muted);
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.9rem;
  color: var(--color-accent);
}

.number-list {
  list-style: decimal;
  padding-left: 1.2rem;
}

/* Before/After slider */

.ba-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.ba-images {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.ba-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Before image sits underneath */
.ba-before {
  position: relative;
  z-index: 1;
}

/* After image sits on top and is clipped */
.ba-after {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(0 50% 0 0); /* start at 50% */
}

/* Vertical handle */
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #f9fafb;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
}

/* Slider input */
.ba-slider {
  width: 100%;
  margin-top: 1rem;
}

.ba-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* Forms */

.contact-form {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.form-row {
  margin-bottom: 0.9rem;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  padding: 0.55rem 0.6rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text);
  background-color: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 1px;
}

/* Contact sidebar */

.contact-sidebar {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #f9fafb;
}

/* Footer */

.site-footer {
  background-color: #020617;
  color: #9ca3af;
  padding: 1.8rem 0;
  font-size: 0.85rem;
}

.footer-inner {
  text-align: center;
}

.footer-nap {
  margin-top: 0.4rem;
}
