
/* ==========================================================
   FULL UI ENHANCEMENT PASS
   Spacing, Typography, Buttons, Cards, Shadows, Transitions
   ========================================================== */

/* Improved spacing scale */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --space-10: 64px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);

  --transition-base: all 0.25s ease;
}

/* Typography refinement */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans, sans-serif);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

p {
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

/* Buttons */
button, .btn, a.button {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  font-weight: 600;
}

button:hover, .btn:hover, a.button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Card/Panel enhancements */
.card, .panel, .box {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-4);
}

/* Nav refinements */
nav a {
  transition: var(--transition-base) !important;
}
nav a:hover {
  opacity: 0.8;
}

/* Smooth section separation */
section {
  margin-bottom: var(--space-10);
}

/* Improve generic transitions */
* {
  transition: var(--transition-base);
}


/* --------------------------
       Variables & base styles
       -------------------------- */
    /* --------------------------
    Variables & base styles
   -------------------------- */

:root {
  --accent: var(--brand-green);
  --blue: var(--brand-blue);
  --blue-600: var(--brand-blue-600);
  --border: #e6eef4;
  --brand-blue: #0b3b5a;
  --brand-blue-600: #0d4b6f;
  --brand-green: #2fa86b;
  --brand-green-dark: #1f8b51;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --leading-normal: 1.45;
  --leading-relaxed: 1.6;
  --leading-tight: 1.15;
  --light-blue-bg: #eff7ff;
  --light-green-bg: #f1fbf6;
  --max-width: 1100px;
  --muted: #6b7885;
  --overlay: rgba(2, 6, 23, 0.4);
  --radius: 10px;
  --radius-full: 999px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 4px;
  --radius-xl: 18px;
  --shadow: 0 6px 18px var(--shadow-color);
  --shadow-color: rgba(11, 59, 90, 0.08);
  --shadow-lg: 0 12px 24px var(--shadow-color);
  --shadow-md: 0 4px 10px var(--shadow-color);
  --shadow-sm: 0 1px 3px var(--shadow-color);
  --shadow-xl: 0 20px 40px var(--shadow-color);
  --space-0: 0;
  --space-1: 4px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-high: 64px;
  --surface: #f7fafc;
  --surface-alt: #fbfdff;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-sm: 0.875rem;
  --text-xl: 1.25rem;
  --text-xs: 0.75rem;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  background: var(--surface);
  color: var(--blue);
  font-family: var(--font-sans);   /* ← add this line */
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  margin: 0;
}

/* --------------------------
    Layout helpers
   -------------------------- */

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-4);
}

.card-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel img {
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  flex: 0 0 80%;
  max-width: 600px;
  scroll-snap-align: center;
}

.col {
  flex: 1 1 0%;
  min-width: 0;
}

.container {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: var(--space-2);
  width: calc(100% - 16px);
}

.gallery {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.icon-pill {
  align-items: center;
  background: var(--light-green-bg);
  border-radius: 10px;
  color: var(--blue);
  display: flex;
  font-weight: 700;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
}

.muted {
  color: var(--muted);
}

.row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

section {
  padding: var(--space-8) 0;
}

/* --------------------------
    Header / Navigation
   -------------------------- */

.brand {
  align-items: center;
  color: var(--blue);
  display: flex;
  gap: var(--space-3);
  text-decoration: none;
}

.brand-image {
  height: clamp(50px, 8vw, 70px);
  transition: height 0.25s ease;
  width: auto;
}

.contact-line {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 14px;
  gap: var(--space-3);
}

.cta {
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-md);
  color: var(--white);
  cursor: pointer;
  font-weight: 700;
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
}

header {
  background-color: var(--white);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .cta {
  color: var(--white) !important;
}

header .cta:hover {
  color: var(--white) !important;
}

header.scrolled {
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--blue);
  cursor: pointer;
  display: none;
  font-size: 24px;
}

.nav {
  align-items: center;
  display: flex;
  gap: var(--space-4);
  justify-content: space-between;
  padding-bottom: var(--space-2);
  padding-top: var(--space-2);
}

nav a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

nav ul {
  align-items: center;
  display: flex;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --------------------------
    Hero Section
   -------------------------- */

.hero {
  background: linear-gradient(90deg, rgba(11,59,90,0.03), rgba(47,168,107,0.02));
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}

.hero-copy h1 {
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
}

.hero-copy p {
  font-size: 16px;
}

.hero-inner {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.hero-visual {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  height: auto;
  max-width: 100%;
  overflow: hidden;
  width: 100%;
}

.hero-visual img {
  display: block;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  width: 100%;
}

.kicker {
  background: rgba(47,168,107,0.12);
  border-radius: var(--radius-full);
  color: var(--accent);
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 6px 10px;
}
/* --------------------------
    Products
   -------------------------- */

.product-card img {
  border-radius: 8px;
  height: 160px;
  object-fit: cover;
  width: 100%;
}

.products {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* --------------------------
    Reviews / Testimonials
   -------------------------- */

.rating-button {
  background-color: var(--accent);
  border: none;
  border-radius: 6px;
  color: var(--white);
  display: inline-block;
  font-size: small;
  font-weight: bold;
  padding: 0.1rem .3rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.rating-stars {
  color: #f1c40f;
  font-size: 18px;
  margin-top: 8px;
  text-decoration: none;
}

.review-author {
  color: #0b3d91;
  font-weight: bold;
}

.review-text {
  color: #444;
  font-style: italic;
}

.testimonial {
  background: linear-gradient(180deg, rgba(11,59,90,0.03), var(--white));
  border-radius: 12px;
  padding: 16px;
}

.badge {
  background: var(--brand-blue) !important;
  border-radius: var(--radius-full);
  color: var(--white) !important;
  display: inline-block;
  font-size: medium;
  font-weight: 700;
  padding: 6px 10px;
}

/* --------------------------
    Steps
   -------------------------- */

.step {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: var(--space-4);
  text-align: center;
}

.step-number {
  align-items: center;
  background: var(--accent);
  border-radius: var(--radius-full);
  color: var(--white);
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  height: 44px;
  line-height: 44px;
  max-width: 44px;
  min-width: 44px;
  width: 44px;
}

.step strong {
  color: #333;
  display: inline-block;
  font-size: 1.1rem;
  line-height: 1;
  margin-left: 0.5rem;
  padding-top: 10px;
}

.step p {
  color: #777;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.5rem;
  max-width: 220px;
  text-align: center;
}

.steps {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* --------------------------
    Sticky CTA
   -------------------------- */

.sticky-cta {
  bottom: 18px;
  position: fixed;
  right: 18px;
  z-index: 60;
}

/* --------------------------
    Modal / Form
   -------------------------- */

.btn-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.form-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr 1fr;
}

.form-grid .full {
  grid-column: 1 / -1;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  background: var(--surface-alt);
  border: 1px solid #d7e3ee;
  border-radius: var(--radius-md);
  font-size: 15px;
  padding: 10px;
  width: 100%;
}

label {
  color: var(--blue);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 680px;
  padding: 22px;
  width: 100%;
  margin-top: 110px;
}

.modal-backdrop {
  align-items: center;
  background: var(--overlay);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 70;
}

/* --------------------------
    Buttons & Links
   -------------------------- */

.button-link {
  background-color: var(--accent);
  border-radius: 6px;
  color: var(--white);
  display: inline-block;
  font-weight: bold;
  padding: 0.1rem .3rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.button-link:hover {
  background-color: #2ecc71;
}

.phone-link {
  color: var(--blue);
  font-weight: bold;
  text-decoration: none;
}

.phone-link:hover {
  text-decoration: underline;
}

/* --------------------------
    Footer
   -------------------------- */

footer {
  color: var(--muted);
  font-size: 14px;
  padding: 28px 0;
}

.logo-sm {
  font-weight: 800;
  letter-spacing: 0.6px;
}
/* --------------------------
    Media Queries — Mobile First
   -------------------------- */

/* max-width: 576px ---------------------------------------------- */
@media screen and (max-width: 576px) {
  .brand-image {
    height: clamp(50px, 8vw, 70px);
    transition: height 0.25s ease;
    width: auto;
  }
}

/* max-width: 600px ---------------------------------------------- */
@media screen and (max-width: 600px) {
  .hero-copy h1 {
    font-size: var(--text-3xl);
    line-height: var(--leading-tight);
  }
}

/* max-width: 800px ---------------------------------------------- */
@media screen and (max-width: 800px) {
  .badge {
    font-size: small;
  }

  .brand-image {
    height: clamp(50px, 8vw, 70px);
    transition: height 0.25s ease;
    width: auto;
  }

  .card {
    padding: 9px;
  }

  .contact-container {
    display: none;
  }

  .contact-line {
    display: none;
  }

  .hero-copy,
  .hero-visual {
    width: 100%;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .hero-visual img {
    max-height: 250px;
    object-fit: cover;
  }

  .icon-pill {
    font-size: small;
    padding: 10px 6px;
  }

  .menu-toggle {
    background: none;
    border: none;
    color: var(--blue);
    cursor: pointer;
    display: block;
    font-size: 24px;
    order: 3;
    z-index: 40;
  }

  nav ul {
    align-items: flex-start;
    background: var(--white);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 12px;
    left: 0;
    padding: 16px 24px;
    position: absolute;
    top: 72px;
    width: 100%;
  }

  nav ul.is-open {
    display: flex;
  }

  nav ul .cta {
    display: inline-block;
    margin-top: 10px;
    text-align: left;
    width: auto;
  }

  .nav {
    align-items: center;
    display: flex;
    gap: var(--space-4);
    justify-content: space-between;
    padding-bottom: var(--space-2);
    padding-top: var(--space-2);
  }
}

/* min-width: 540px ---------------------------------------------- */
@media (min-width: 540px) {
  .card-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* min-width: 577px ---------------------------------------------- */
@media (min-width: 577px) and (max-width: 991px) {
  .brand-image {
    height: clamp(50px, 8vw, 70px);
    transition: height 0.25s ease;
    width: auto;
  }
}

/* min-width: 720px ---------------------------------------------- */
@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .hero-inner {
    gap: 28px;
    grid-template-columns: 1fr 520px;
  }

  .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* min-width: 900px ---------------------------------------------- */
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* min-width: 992px ---------------------------------------------- */
@media (min-width: 992px) and (max-width: 1199px) {
  .brand-image {
    height: clamp(50px, 8vw, 70px);
    transition: height 0.25s ease;
    width: auto;
  }
}

/* min-width: 1080px --------------------------------------------- */
@media (min-width: 1080px) {
  .container {
    padding: 32px;
  }

  .hero-copy h1 {
    font-size: var(--text-3xl);
    line-height: var(--leading-tight);
  }
}

/* min-width: 1200px --------------------------------------------- */
@media (min-width: 1200px) {
  .brand-image {
    height: clamp(50px, 8vw, 70px);
    transition: height 0.25s ease;
    width: auto;
  }
}


/* ==========================================================
   IMPROVED BRIGHT DARK MODE THEME
   High-contrast, brand-accented, modern surfaces
   ========================================================== */

@media (prefers-color-scheme: dark) {

  :root {
    --surface: #0d1117;
    --surface-alt: #161b22;

    --text: #f6f7f9;
    --text-muted: #e0e6eb;

    --muted: #b8bec6;
    --border: #303233;

    --brand-blue: #58a6ff;
    --brand-green: #3ddc97;

    --shadow-md: 0 4px 10px rgba(0,0,0,0.6);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.65);
  }

  body {
    background: var(--surface);
    color: var(--text);
  }

  header, nav, section, footer {
    background: var(--surface-alt);
    color: var(--text);
  }

  .card, .panel, .box, .feature-item {
    background: #1e2329;
    color: var(--text);
    box-shadow: var(--shadow-md);
  }

  a {
    color: var(--brand-blue);
  }
  a:hover {
    opacity: 0.85;
  }

  button, .btn, a.button {
    background: #21262d;
    color: var(--text);
    border: 1px solid #3d444d;
  }
  button:hover, .btn:hover, a.button:hover {
    background: #30363d;
    transform: translateY(-1px);
  }

  .brand-image {
    filter: brightness(1.50) contrast(1.30);
  }

  .icon-pill {
    background: var(--surface);
    color: var(--text);
  }

  .step {
    background: var(--surface-alt);
  }

  .step-number {
    background: var(--accent);
    color: var(--surface-alt);
  }

  .step strong {
    color: var(--text);
  }

  .step p {
    color: var(--text-muted);
  }

  .cta {
    color: var(--surface);
  }

  header .cta {
    color: var(--surface) !important;
  }

  .button-link {
    color: var(--surface);
  }

  .rating-button {
    color: var(--surface);
  }
  .modal {
    background: var(--surface-alt);
  }

  nav ul {
    background: var(--surface-alt);
  }
}
