/* Luxe Web Design — OuterBox design system clone */
:root {
  --min-screen-width: 320px;
  --max-screen-width: 1458px;
  --luxe-blue: #1d4e89;
  --gold: #ffb703;
  --bright-blue: #0066dc;
  --frost: rgba(238, 243, 246, 1);
  --glacier: #f7f9fb;
  --dark: #17212e;
  --deep-blue: #033f63;
  --slate: #5c6c80;
  --bg-body: #ffffff;
  --text-body: #2d3339;
  --text-title: #17212e;
  --text-blue: #1d4e89;
  --text-white: #fff;
  --space-xs: clamp(1.02rem, calc(0.33vw + 0.92rem), 1.4rem);
  --space-s: clamp(1.28rem, calc(0.62vw + 1.08rem), 1.98rem);
  --space-m: clamp(1.6rem, calc(1.05vw + 1.26rem), 2.8rem);
  --space-l: clamp(2rem, calc(1.72vw + 1.45rem), 3.96rem);
  --space-xl: clamp(2.5rem, calc(2.72vw + 1.63rem), 5.6rem);
  --space-2xl: clamp(3.13rem, calc(4.21vw + 1.78rem), 7.92rem);
  --text-base: clamp(1.8rem, calc(0vw + 1.8rem), 1.8rem);
  --text-h2: clamp(3.6rem, calc(0.79vw + 3.35rem), 4.5rem);
  --text-h1: clamp(4.2rem, calc(1.14vw + 3.83rem), 5.5rem);
  --radius-cta: 25px;
  --radius-m: clamp(1rem, calc(0.18vw + 0.94rem), 1.2rem);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  font-family: "Roboto", sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-body);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(100% - 4rem, var(--max-screen-width));
  margin-inline: auto;
}

h1 {
  font-size: var(--text-h1);
  line-height: 1.15;
  color: var(--text-white);
  font-weight: 900;
  margin-bottom: 2rem;
}

h2 {
  font-size: var(--text-h2);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--luxe-blue);
  font-weight: 900;
}

.sub-heading {
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 1rem;
}

p { margin-bottom: 1.2rem; }

/* Top bar */
.top-bar {
  background: var(--dark);
  color: var(--text-white);
  font-size: 1.4rem;
  padding: 0.8rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
}

.top-bar a { color: var(--text-white); font-weight: 500; }
.top-bar a:hover { color: var(--gold); }

/* Header */
.site-header {
  background: var(--bg-body);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-s) 0;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--luxe-blue), var(--bright-blue));
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.8rem;
}

.logo-text {
  font-size: 2rem;
  font-weight: 900;
  color: var(--luxe-blue);
  line-height: 1.1;
}

.logo-text span {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 0.5rem; }

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

.main-nav > li > a,
.main-nav > li > button {
  display: block;
  padding: 1rem 1.2rem;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-title);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.main-nav > li > a:hover,
.main-nav > li:hover > button { color: var(--luxe-blue); }

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
  padding: 2.4rem 3rem;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
  z-index: 100;
}

.main-nav > li:hover .mega-menu {
  opacity: 1;
  visibility: visible;
}

.mega-menu ul li a {
  display: block;
  padding: 0.6rem 0;
  font-size: 1.6rem;
  color: var(--text-body);
}

.mega-menu ul li a:hover { color: var(--luxe-blue); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.4rem;
  border-radius: var(--radius-cta);
  font-size: 1.8rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  font-family: inherit;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.15); }

.btn-primary {
  background: var(--luxe-blue);
  color: var(--text-white);
}

.btn-secondary {
  background: var(--gold);
  color: var(--dark);
}

.btn-white {
  background: var(--text-white);
  color: var(--luxe-blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  position: absolute;
  transition: .2s;
}

.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle span::before { content: ""; top: -9px; }
.nav-toggle span::after { content: ""; top: 9px; }

/* Hero */
.dark-hero {
  background-color: var(--deep-blue);
  background-image: linear-gradient(rgba(3, 63, 99, 0.82), rgba(23, 33, 46, 0.88)),
    url("https://images.unsplash.com/photo-1547658719-da2b51169166?w=1920&q=80");
  background-size: cover;
  background-position: center;
  color: var(--text-white);
  padding: var(--space-xl) 0 var(--space-2xl);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-l);
  align-items: start;
}

.dark-hero p {
  color: rgba(255,255,255,.9);
  font-size: 1.8rem;
  max-width: 54rem;
}

.hero-form {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-m);
  padding: var(--space-m);
}

.hero-form label {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,.85);
}

.hero-form input {
  width: 100%;
  padding: 1.2rem 1.6rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  background: rgba(255,255,255,.95);
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  font-family: inherit;
}

.hero-form .required-note {
  font-size: 1.2rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid rgba(255,255,255,.12);
}

.badge-item {
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 0.8rem 1.4rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  text-align: center;
  min-width: 7rem;
}

/* Two column sections */
.section { padding: var(--space-2xl) 0; }
.section-alt { background: var(--glacier); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.two-col img,
.rounded-img {
  border-radius: var(--radius-m);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}

.two-col h2 { color: var(--luxe-blue); }

/* Service slider */
.service-slider-wrap { overflow: hidden; }

.service-card {
  background: #fff;
  border-radius: var(--radius-m);
  padding: var(--space-m);
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.service-card-header img { width: 50px; height: 50px; flex-shrink: 0; }

.service-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.3;
}

.service-card p {
  font-size: 1.6rem;
  flex: 1;
}

.service-link {
  font-weight: 700;
  color: var(--luxe-blue);
  margin-top: 1.2rem;
  font-size: 1.6rem;
}

.splide__arrow {
  background: var(--slate) !important;
  border: 2px solid #fff !important;
  opacity: 1 !important;
}

.splide__pagination__page.is-active { background: var(--luxe-blue) !important; }

/* Client logos */
.logo-marquee {
  overflow: hidden;
  padding: var(--space-l) 0;
  background: var(--dark);
}

.logo-track {
  display: flex;
  gap: 4rem;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.logo-track img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.clients-section { text-align: center; }
.clients-section h2 { max-width: 80rem; margin-inline: auto; }
.clients-section .intro { max-width: 72rem; margin: 0 auto var(--space-l); font-size: 1.8rem; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-m);
  margin-top: var(--space-l);
}

.stat-item {
  text-align: center;
  padding: var(--space-m);
}

.stat-item svg { margin: 0 auto 1.2rem; }

.stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text-title);
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 1.6rem;
  color: var(--slate);
}

/* CTA full width hero */
.cta-full {
  background-color: var(--deep-blue);
  background-image: linear-gradient(rgba(3, 63, 99, 0.85), rgba(23, 33, 46, 0.9)),
    url("https://images.unsplash.com/photo-1467232004584-24124167bd93?w=1920&q=80");
  background-size: cover;
  background-position: center;
  color: var(--text-white);
  text-align: center;
  padding: var(--space-2xl) 0;
}

.cta-full h2 { color: var(--text-white); margin-bottom: 1rem; }
.cta-full p { color: rgba(255,255,255,.9); font-size: 1.8rem; max-width: 64rem; margin: 0 auto 2rem; }
.cta-full .contact-email { font-weight: 700; color: var(--gold); }
.cta-full .contact-email:hover { text-decoration: underline; }

.cta-form-inline {
  display: flex;
  gap: 1rem;
  max-width: 52rem;
  margin: 2rem auto 0;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-form-inline input {
  flex: 1;
  min-width: 220px;
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius-cta);
  border: none;
  font-size: 1.6rem;
  font-family: inherit;
}

/* Portfolio slider */
.portfolio-card {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  display: block;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 775/450;
  object-fit: cover;
  transition: transform .3s;
}

.portfolio-card:hover img { transform: scale(1.04); }

.portfolio-tag {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: var(--gold);
  color: var(--dark);
  font-size: 1.2rem;
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.portfolio-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.6rem 1.6rem;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
}

/* Dark form section */
.dark-form {
  background-color: var(--dark);
  background-image: linear-gradient(rgba(23, 33, 46, 0.92), rgba(3, 63, 99, 0.88)),
    url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=1920&q=80");
  background-size: cover;
  background-position: center;
  color: var(--text-white);
}

.dark-form h2 { color: var(--text-white); }

.contact-form {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-m);
  padding: var(--space-m);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: rgba(255,255,255,.95);
  font-size: 1.6rem;
  font-family: inherit;
}

.contact-form textarea { grid-column: 1 / -1; min-height: 120px; resize: vertical; }
.contact-form .full-width { grid-column: 1 / -1; }

.form-label {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: rgba(255,255,255,.8);
}

/* Why section */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-l);
  margin-top: var(--space-l);
}

.why-item h4 {
  font-size: 2rem;
  color: var(--luxe-blue);
  margin-bottom: 0.8rem;
  font-weight: 800;
}

.why-item p { font-size: 1.6rem; }

/* Footer */
.estimate-footer {
  background: var(--luxe-blue);
  color: var(--text-white);
  padding: var(--space-xl) 0;
}

.estimate-footer h3 {
  font-size: var(--text-h2);
  font-weight: 900;
  margin-bottom: var(--space-m);
}

.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: var(--space-xl) 0 var(--space-m);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--space-l);
  margin-bottom: var(--space-xl);
}

.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text span { color: rgba(255,255,255,.5); }

.footer-col h5 {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { font-size: 1.4rem; color: rgba(255,255,255,.65); }
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--space-m);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 1.4rem;
}

.social-links { display: flex; gap: 1.2rem; }
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.4rem;
}
.social-links a:hover { background: var(--gold); color: var(--dark); }

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }

@media (max-width: 1024px) {
  .two-col, .hero-grid, .why-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 3.6rem !important; line-height: 1.2 !important; }
  h2 { font-size: 3rem !important; line-height: 1.25 !important; }

  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    inset: 0;
    top: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform .3s;
    overflow-y: auto;
    z-index: 999;
  }

  .main-nav.open { transform: translateX(0); }

  .mega-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 0 0 0 1.6rem;
    display: none;
  }

  .main-nav li.open .mega-menu { display: block; }

  .stats-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-cta { display: none; }
}
