/* Site theme overrides + shared components (2025 refresh) */

:root {
  --brand-orange: #f24d12;
  --brand-green: #7b9d02;
  --brand-yellow: #fdc30b;

  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f4f8;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(2, 6, 23, 0.12);

  --shadow-xs: 0 1px 0 rgba(2, 6, 23, 0.04);
  --shadow-sm: 0 2px 10px rgba(2, 6, 23, 0.08);
  --shadow-md: 0 18px 50px rgba(2, 6, 23, 0.14);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;

  --ring: 0 0 0 4px rgba(242, 77, 18, 0.22);

  --container: 1120px;
  --gutter: 20px;
  --section-y: 84px;
  --section-y-tight: 62px;

  /* Override legacy vars used across main.css */
  --primary-color: var(--brand-orange);
  --secondary-color: var(--brand-green);
  --accent-color: var(--brand-yellow);
  --text-color: var(--text);
  --light-color: var(--surface-2);
  --dark-color: var(--text);
  --gray-color: var(--muted);
  --box-shadow: var(--shadow-sm);
  --hero-gradient-start: var(--brand-orange);
  --hero-gradient-end: var(--brand-yellow);
  color-scheme: light;
}

html {
  scroll-padding-top: 92px;
}

body {
  background: radial-gradient(1200px 800px at 12% 0%, rgba(242, 77, 18, 0.09), transparent 55%),
    radial-gradient(1100px 700px at 88% 10%, rgba(123, 157, 2, 0.09), transparent 50%),
    linear-gradient(180deg, #f6f7fb 0%, #ffffff 55%, #f6f7fb 100%);
  color: var(--text);
  letter-spacing: -0.01em;
}

::selection {
  background: rgba(242, 77, 18, 0.22);
}

.container {
  max-width: var(--container);
}

a {
  color: var(--brand-green);
}

a:hover {
  color: var(--brand-orange);
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 2600;
  background: var(--text);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
}

.skip-link:focus {
  left: 12px;
}

/* Header + navigation */
header {
  background: rgba(246, 247, 251, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(2, 6, 23, 0.08);
  box-shadow: none;
}

.header-container {
  padding: 14px 0;
}

header.scrolled .header-container {
  padding: 10px 0;
}

.logo img {
  max-height: 48px;
}

nav ul li {
  margin-left: 14px;
}

nav ul li a {
  color: var(--text);
  padding: 10px 12px;
  border-radius: 999px;
}

nav ul li a::after {
  display: none;
}

nav ul li a:hover {
  background: rgba(2, 6, 23, 0.06);
  color: var(--text);
}

nav ul li a.active {
  background: rgba(242, 77, 18, 0.12);
  color: var(--text);
}

nav ul li a.btn {
  padding: 12px 18px;
}

.mobile-menu-btn {
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.04);
}

/* Typography */
h1,
h2,
h3,
h4 {
  letter-spacing: -0.03em;
  color: var(--text);
}

p {
  color: rgba(15, 23, 42, 0.9);
}

/* Legacy layouts used on some subpages */
.about-content,
.service-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: center;
}

.about-text ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.about-text li {
  margin: 10px 0;
}

.about-image img,
.service-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(2, 6, 23, 0.10);
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.94);
}

.trusted-by-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  align-items: center;
}

.trusted-by-item {
  grid-column: span 3;
  border: 1px solid rgba(2, 6, 23, 0.10);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-xs);
  display: grid;
  place-items: center;
}

.trusted-by-item img {
  max-width: 100%;
  height: auto;
  filter: saturate(0.95);
}

/* Buttons */
.btn {
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(2, 6, 23, 0.10);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(2, 6, 23, 0.16);
    background: #fff;
  }
}

.btn:active {
  transform: translateY(0);
}

.btn-primary-hero {
  border-radius: 999px;
  border: 0;
  color: #111827;
  background-image: linear-gradient(90deg, rgba(242, 77, 18, 0.95), rgba(253, 195, 11, 0.92));
  box-shadow: 0 10px 26px rgba(242, 77, 18, 0.18);
}

@media (hover: hover) {
  .btn-primary-hero:hover {
    box-shadow: 0 16px 38px rgba(242, 77, 18, 0.22);
  }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(2, 6, 23, 0.12);
  box-shadow: none;
}

@media (hover: hover) {
  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
  }
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(2, 6, 23, 0.18);
}

/* Layout helpers */
.section {
  padding: var(--section-y) 0;
}

.section--tight {
  padding: var(--section-y-tight) 0;
}

.section-title {
  text-align: left;
  margin-bottom: 26px;
  max-width: 72ch;
}

.section-title h2,
.section-title h1 {
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  line-height: 1.15;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 650;
  color: #1f2937;
  background: rgba(123, 157, 2, 0.14);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(123, 157, 2, 0.20);
}

/* Hero */
.hero {
  display: block;
  min-height: auto;
  padding: 126px 0 56px;
  text-align: left;
  background:
    radial-gradient(1000px 520px at 12% 10%, rgba(242, 77, 18, 0.14), transparent 60%),
    radial-gradient(1000px 520px at 90% 20%, rgba(253, 195, 11, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(246, 247, 251, 0.2) 100%);
  border-bottom: 1px solid rgba(2, 6, 23, 0.06);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 42px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.15rem, 3vw, 3.4rem);
  line-height: 1.08;
  margin: 14px 0 12px;
}

.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
  margin: 0;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-art {
  width: 100%;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(2, 6, 23, 0.10);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transform: translateY(2px);
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

.breadcrumbs {
  margin-top: 12px;
  font-size: 0.92rem;
  color: rgba(71, 85, 105, 0.92);
}

.breadcrumbs a {
  color: rgba(71, 85, 105, 0.92);
}

.breadcrumbs a:hover {
  color: var(--brand-orange);
}

/* Cards / grids */
.cards-grid,
.expertise-categories-grid,
.service-details-grid,
.services-grid,
.service-details {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card,
.expertise-category-card,
.service-card,
.service-detail-item {
  border: 1px solid rgba(2, 6, 23, 0.10);
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: 22px;
}

.card h3,
.expertise-category-card h3,
.service-card h3,
.service-detail-item h3 {
  font-size: 1.12rem;
  margin: 0 0 8px;
}

.card p,
.expertise-category-card p,
.service-card p,
.service-detail-item p {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

.card--4,
.service-card {
  grid-column: span 4;
}

.card--6,
.expertise-category-card,
.service-detail-item {
  grid-column: span 6;
}

.expertise-category-card .category-header,
.service-card .service-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.expertise-category-card .category-header i,
.service-card .service-icon i {
  color: var(--brand-orange);
  font-size: 1.1rem;
}

.service-detail-item > i {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(242, 77, 18, 0.10);
  border: 1px solid rgba(242, 77, 18, 0.18);
  color: var(--brand-orange);
  margin-bottom: 12px;
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.process-step {
  grid-column: span 3;
  border: 1px solid rgba(2, 6, 23, 0.10);
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: 22px;
}

.process-step .step-number {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #111827;
  background: rgba(253, 195, 11, 0.28);
  border: 1px solid rgba(253, 195, 11, 0.38);
  margin-bottom: 12px;
}

.process-step h3 {
  margin-bottom: 8px;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.portfolio-item {
  grid-column: span 4;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(2, 6, 23, 0.10);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  background: rgba(255, 255, 255, 0.94);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

@media (hover: hover) {
  .portfolio-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }
}

.portfolio-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.portfolio-overlay {
  padding: 18px;
}

.portfolio-overlay h3 {
  margin: 0 0 6px;
}

/* Callout */
.callout {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(2, 6, 23, 0.10);
  background:
    radial-gradient(1000px 500px at 15% 50%, rgba(123, 157, 2, 0.16), transparent 60%),
    radial-gradient(1000px 500px at 85% 50%, rgba(242, 77, 18, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 247, 251, 0.6) 100%);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
}

.callout p {
  margin: 6px 0 0;
  color: var(--muted);
}

/* Forms */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
  align-items: start;
}

.contact-info,
.contact-form {
  border: 1px solid rgba(2, 6, 23, 0.10);
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 22px;
}

.contact-details p {
  color: var(--muted);
  margin: 10px 0;
}

.contact-details i {
  color: var(--brand-orange);
  margin-right: 10px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: rgba(15, 23, 42, 0.9);
}

.form-group input,
.form-group textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(2, 6, 23, 0.14);
  background: rgba(255, 255, 255, 0.98);
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(2, 6, 23, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-group textarea {
  min-height: 140px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(242, 77, 18, 0.45);
  box-shadow: var(--ring);
}

.form-response {
  border-radius: 14px;
}

/* Footer */
footer {
  border-top: 1px solid rgba(2, 6, 23, 0.08);
  background: rgba(246, 247, 251, 0.72);
  backdrop-filter: blur(10px);
}

.footer-content p,
.footer-content li,
.footer-content a {
  color: rgba(15, 23, 42, 0.82);
}

.footer-content a:hover {
  color: var(--brand-orange);
}

footer .footer-column ul li a {
  color: rgba(15, 23, 42, 0.74);
}

footer .footer-column ul li a:hover {
  color: var(--brand-orange);
}

footer .social-links a {
  background: rgba(2, 6, 23, 0.06);
  border: 1px solid rgba(2, 6, 23, 0.10);
  color: rgba(15, 23, 42, 0.92);
}

@media (hover: hover) {
  footer .social-links a:hover {
    background: rgba(2, 6, 23, 0.10);
    transform: translateY(-2px);
  }
}

footer .footer-bottom {
  border-top: 1px solid rgba(2, 6, 23, 0.08);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 116px 0 52px;
    text-align: left;
  }

  .card--4,
  .card--6,
  .expertise-category-card,
  .service-detail-item,
  .portfolio-item,
  .process-step {
    grid-column: span 12;
  }

  .callout {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .about-content,
  .service-content {
    grid-template-columns: 1fr;
  }

  .trusted-by-item {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  nav {
    background: rgba(246, 247, 251, 0.98);
    backdrop-filter: blur(12px);
    border-left: 1px solid rgba(2, 6, 23, 0.08);
  }

  nav ul {
    gap: 8px;
  }

  nav ul li {
    margin: 0;
  }

  nav ul li a {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
    border-radius: 14px;
    padding: 12px 14px;
  }

  nav ul li a.btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  nav ul li {
    margin-left: 0;
  }

  .hero-buttons .btn {
    width: 100%;
  }
}

/* Sales wizard modal: full-viewport iframe (avoid inner scrollbars) */
#sales-wizard-modal {
  background-color: rgba(0, 0, 0, 0.72);
  overflow: hidden;
  z-index: 2500;
}

#sales-wizard-modal .modal-content {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

#sales-wizard-modal .modal-body {
  height: 100%;
  overflow: hidden;
}

#close-wizard-modal {
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  z-index: 5;
}
