/* =========================================
   Global CSS Variables
   ========================================= */

/* Fonts  */
@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600&amp;family=Barlow:wght@400;500&amp;display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&amp;display=swap");

:root {
  /* Colors */
  --color-primary: #e22a32;
  --color-text-primary: #636466;
  --color-heading-primary: #e22a32;
  --color-heading-secondary: #647883;
  --bg-extra-light: #edf1f2;
  --bg-light: #dde7e9;
  --bg-dark: #cbdadd;

  --bg: #e9edee; /* header background (very light grey/blue) */
  --ink: #1a1a1a; /* main text */
  --muted: #6d7377; /* logo grey */
  --line: #e22a32; /* thin red divider */
  --accent: #e22a32; /* small red dots in ISO row */
  --whatsapp: #189d0e; /* WhatsApp green */
  --shadow: 0 10px 16px rgba(0, 0, 0, 0.12);

  /* Fonts */
  --font-family-base: "Nunito", sans-serif;
  --font-family-heading: "Rajdhani", sans-serif;

  /* Font Sizes (responsive friendly) */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 2.25rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-xxl: 2rem;

  /* Spacing (for margins/padding) */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);

  --border-color: #cbdadd;
}

/* =========================================
   Base Styles
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--fs-base);
  color: var(--color-text-primary);
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-heading);
  color: var(--color-heading-primary);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

h1,
h2 {
  font-size: 4.375rem;
}

p {
  font-size: 2.25rem;
  line-height: 1.4;
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  margin-bottom: 30px;
}

/* Links */
a {
  color: var(--color-link);
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

.section-space {
  padding-top: var(--space-xxl);
  padding-bottom: var(--space-xxl);
}

.btn-request {
  background-color: var(--color-primary);
  color: #fff;
  font-family: var(--font-family-heading);
  padding: 10px 35px;
  font-weight: bold;
  text-transform: none;
  border-radius: 0;
  font-size: 1.875rem;
  letter-spacing: 0.5px;
  transition: background 0.3s ease;
}
.btn-request:hover {
  background-color: #a71d22;
  color: #fff;
}

/* =========================================
   Utility Classes
   ========================================= */

/* Spacing */
.mt-xs {
  margin-top: var(--space-xs);
}
.mt-sm {
  margin-top: var(--space-sm);
}
.mt-md {
  margin-top: var(--space-md);
}
.mt-lg {
  margin-top: var(--space-lg);
}
.mt-xl {
  margin-top: var(--space-xl);
}

.mb-xs {
  margin-bottom: var(--space-xs);
}
.mb-sm {
  margin-bottom: var(--space-sm);
}
.mb-md {
  margin-bottom: var(--space-md);
}
.mb-lg {
  margin-bottom: var(--space-lg);
}
.mb-xl {
  margin-bottom: var(--space-xl);
}

.p-xs {
  padding: var(--space-xs);
}
.p-sm {
  padding: var(--space-sm);
}
.p-md {
  padding: var(--space-md);
}
.p-lg {
  padding: var(--space-lg);
}
.p-xl {
  padding: var(--space-xl);
}

/* Text Helpers */
.text-small {
  font-size: var(--fs-sm);
}
.text-large {
  font-size: var(--fs-lg);
}
.text-bold {
  font-weight: bold;
}
.text-center {
  text-align: center;
}
.text-uppercase {
  text-transform: uppercase;
}

/* Layout Helpers */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}
.shadow-md {
  box-shadow: var(--shadow-md);
}
.shadow-lg {
  box-shadow: var(--shadow-lg);
}

/* ============= Site header =============== */

/* ...existing code... */

.site-header {
  background: var(--bg-extra-light);
  box-shadow: var(--shadow);
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: box-shadow 0.3s, background 0.3s, transform 0.3s, height 0.3s,
    padding 0.3s;
  height: 180px;
}

.site-header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  transform: translateY(-20px);
  animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.site-header.compact {
  height: 108px;
  /* box-shadow: 0 4px 24px rgba(44,62,80,0.10);
  background: #fff; */
}

.site-header.compact .nav-row {
  margin-top: -75px;
}

.brand-logo {
  max-width: 421px;
  transition: max-width 0.3s, height 0.3s;
}

.site-header.compact .brand-logo {
  max-width: 210px;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1px minmax(420px, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 30px;
  row-gap: 12px;
  padding: 22px 0px;
  align-items: center;
  position: relative;
  transition: padding 0.3s;
}

.site-header.compact .header-inner {
  padding: 30px 0px 10px 0px;
}

.search-wrap,
.contact {
  transition: opacity 0.3s, visibility 0.3s, max-height 0.3s;
  opacity: 1;
  visibility: visible;
  max-height: 100px;
}
.site-header.compact .search-wrap,
.site-header.compact .contact,
.site-header.compact .iso-row {
  opacity: 0;
  display: none;
  max-height: 0;
  pointer-events: none;
}

/* ...existing code... */

.navbar-toggler {
  color: var(--color-text-primary);
  border-color: var(--color-text-primary);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* red vertical divider spanning both rows */
.vline {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 1px;
  background: var(--color-primary);
  align-self: stretch;
  justify-self: stretch;
}

/* ===== Left block (Logo + ISO) ===== */
.brand {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 260px;
}

.brand-text {
  font: 600 44px/1 "Rajdhani", sans-serif;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* the ISO row (under the logo on the left) */
.iso-row {
  grid-column: 1;
  grid-row: 2;
  font-size: 24px;
  color: #333;
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-top: 2px;
  font-weight: 500;
  font-family: var(--font-family-heading);
}
.iso-row .dot {
  color: var(--color-primary);
  font-weight: 700;
  margin: 0 0.1rem;
}

.iso-row .dot:last-of-type {
  display: none;
}

/* ===== Middle (Search) ===== */
.search-wrap {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.search-field {
  flex: 1 1 auto;
  /*      max-width: 680px; */
  /* keeps the long bar look on wide screens */
  position: relative;
  outline: none;
  transition: box-shadow background 0.5s ease;
  border: none;
}

/* Change styles when focused */
.search-field input:focus-visible {
  /* red border */
  background-color: var(--bg-light) !important;
  box-shadow: 1px 1px 15px rgba(205, 205, 205, 0.6) !important;
  border: 1px solid var(--bg-dark) !important;
  /* text color */
}

.search-wrap .search-field input {
  border: 0 !important;
}
.search-field input {
  width: 100% !important;
  height: 42px !important;
  border-radius: 4px !important;
  background: #fff !important;
  padding: 0 14px !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04) inset, 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  font-size: 16px !important;
  outline: 0 !important;
  color: var(--color-text-primary) !important;
}
.search-field [type="submit"],
.search-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--color-text-primary);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 30px;
  margin-left: 2px;
}
.search-field form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-field [type="submit"] .is-search-icon {
  background-color: transparent;
  border: none !important;
}

.search-field [type="submit"] .is-search-icon svg {
  width: 34px !important;
}
/* ===== Right (Contact) ===== */
.contact {
  grid-column: 4;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.contact .wa {
  color: var(--whatsapp);
  font-size: 40px;
  line-height: 1;
}

/* ===== Navigation (lower-right) ===== */
.nav-row {
  grid-column: 3 / span 2;
  grid-row: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(16px, 5vw, 64px);
  margin-top: 4px;
  flex-wrap: wrap;
}
.nav-row a {
  text-decoration: none;
  color: var(--color-text-primary);
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 0.08em; /* stretched look */
  line-height: 1.1;
}
.site-header.compact .nav-row {
  grid-row: 1;
}

.navbar-expand-lg .navbar-nav li {
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

.navbar-expand-lg .navbar-nav li a {
  padding-right: 0px;
  padding-left: 0px;
  text-transform: uppercase;
}

/* .nav-row a:hover{ color:#000; text-decoration:underline; text-underline-offset: 4px; } */

/* ...existing code... */

/* Animated underline for nav links */
.nav-row a {
  position: relative;
  color: inherit;
  text-decoration: none;
}

.nav-row a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--color-text-primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s;
}

.nav-row a:hover {
  color: var(--color-text-primary);
}

.nav-row a:hover::after {
  width: 100%;
}

/* Active nav-link underline color red */
.navbar-nav .nav-link.active {
  color: var(--color-primary);
}
.navbar-nav .nav-link.active::after {
  width: 100%;
  background: var(--color-primary);
}
/*

/* Base icon */
.toggler-icon {
  position: relative;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  display: inline-block;
  transition: background 0.2s ease-out;
  top: -5px;
}

.toggler-icon::before,
.toggler-icon::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.25s ease;
}

.toggler-icon::before {
  top: -6px;
  left: 0;
}

.toggler-icon::after {
  top: 6px;
  left: 0;
}

/* Active (cross) state */
.navbar-toggler.active .toggler-icon {
  background: transparent; /* Hide middle bar */
}

.navbar-toggler.active .toggler-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.navbar-toggler.active .toggler-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* =========================================
   footer Styles
   ========================================= */

.footer-section {
  background-color: var(--bg-light);
}
.footer-logo {
  max-height: 87px;
}
.footer-heading {
  font-weight: bold;
  color: var(--color-text-primary);
  margin-bottom: 10px;
  font-size: 2.25rem;
}
.footer-text {
  color: var(--color-text-primary);
  font-size: 1.75rem;
  margin-bottom: 8px;
}
.footer-text.red {
  color: var(--color-primary);
  font-weight: bold;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  font-size: 1.875rem;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.footer-list li a {
  position: relative;
}

.footer-list li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--color-text-primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s;
}

.footer-list li a:hover::after {
  width: 100%;
}

.footer-list li::before {
  content: "";
  background-color: var(--color-primary);
  margin-right: 16px;
  line-height: 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

@media (max-width: 992px) {
  .site-header {
    height: 170px;
  }
}
