/* ==========================================================================
   Broadway Inspections - Shared Design System
   Based on exact branding: Pathway Extreme + Inter, #1076BC primary
   ========================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Pathway+Extreme:wght@400;500;600;700;800&display=swap');

/* CSS Custom Properties - Exact Brand Colors */
:root {
  /* System Colors */
  --color-white: #FFFFFF;
  --color-text: #4C4B48;
  --color-button: #1076BC;
  --color-black: #101010;

  /* Custom Colors */
  --color-light-primary-bg: #D6E9FC;
  --color-dark-primary-bg: #0D5F96;
  --color-secondary-bg: #F6F6F4;
  --color-button-hover: #0862A0;
  --color-border: #DADADA;
  --color-divider: #E0E0EE;
  --color-light-grey-bg: #F4F4F4;
  --color-dark-grey-bg: #201010;
  --color-light-secondary-bg: #E6F3FF;
  --color-dark-secondary-bg: #0D3261;
  --color-internal-link: #1064F3;

  /* Typography Scale */
  --font-heading: 'Pathway Extreme', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.44rem;
  --space-sm: 0.67rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.25rem;
  --space-2xl: 3.38rem;
  --space-3xl: 5.06rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Shadows - modernized with layered depth */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.08);
  --shadow-soft: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-medium: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.10), 0 8px 16px -8px rgba(0,0,0,0.06);

  /* Transitions */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.1px;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-internal-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-dark-primary-bg);
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   Typography - Exact Branding Specs
   ========================================================================== */

h1, .h1 {
  font-family: var(--font-heading);
  font-size: 55px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -1.5px;
  color: var(--color-black);
}

h2, .h2 {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -1.5px;
  color: var(--color-black);
}

h3, .h3 {
  font-family: var(--font-heading);
  font-size: 35px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -1px;
  color: var(--color-black);
}

h4, .h4 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -1px;
  color: var(--color-black);
}

h5, .h5 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.5px;
  color: var(--color-black);
}

h6, .h6 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.5px;
  color: var(--color-black);
}

.text-big {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
}

.text-small {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.1px;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 800px;
}

.section {
  padding: 80px 0;
}

.section--light {
  position: relative;
  background-image: url('../Assets/sublte-bg.jpg');
  background-size: cover;
  background-position: center;
}
.section--light::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #D9EEFC;
  opacity: 0.6;
  z-index: 0;
}
.section--light > * {
  position: relative;
  z-index: 1;
}

.section--blue-light {
  background-color: var(--color-light-primary-bg);
}

.section--blue-lighter {
  background-color: var(--color-light-secondary-bg);
}

.section--dark {
  background-color: var(--color-dark-primary-bg);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: var(--color-white);
}

.section--darker {
  background-color: var(--color-dark-secondary-bg);
  color: var(--color-white);
}

.section--darker h2,
.section--darker h3,
.section--darker h4,
.section--darker h5,
.section--darker h6 {
  color: var(--color-white);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--6 { grid-template-columns: repeat(6, 1fr); }

.flex {
  display: flex;
  gap: 24px;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  align-items: center;
  justify-content: space-between;
}

.text-center { text-align: center; }
.text-white { color: var(--color-white); }

/* ==========================================================================
   Buttons - Exact Brand Specs
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--primary {
  background-color: var(--color-button);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-button-hover);
  color: var(--color-white);
}

.btn--dark {
  background-color: #32373c;
  color: var(--color-white);
}

.btn--dark:hover {
  background-color: var(--color-button-hover);
  color: var(--color-white);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn--outline:hover {
  background-color: var(--color-white);
  color: var(--color-dark-primary-bg);
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-dark-primary-bg);
}

.btn--white:hover {
  background-color: var(--color-light-primary-bg);
  color: var(--color-dark-primary-bg);
}

.btn--lg {
  padding: 18px 36px;
  font-size: 17px;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.header-top {
  background-color: var(--color-dark-secondary-bg);
  padding: 8px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.header-top a {
  color: rgba(255, 255, 255, 0.9);
}

.header-top a:hover {
  color: var(--color-white);
}

.header-main {
  padding: 16px 0;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  flex-shrink: 0;
}

.site-logo img {
  height: 80px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.2px;
  color: var(--color-text);
  transition: color var(--transition-fast);
  cursor: pointer;
}

.main-nav a:hover {
  color: var(--color-button);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-button);
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--color-button-hover);
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-black);
  transition: transform var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-dark-secondary-bg);
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.75) 0%, rgba(13, 50, 97, 0.60) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 60px 0;
}

.hero__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(16, 118, 188, 0.4);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 55px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--color-white);
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 36px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__phone {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
}

.hero__phone:hover {
  color: var(--color-light-primary-bg);
}

/* ==========================================================================
   Service Cards
   ========================================================================== */

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 118, 188, 0.2);
}

.service-card__image {
  height: 220px;
  background-color: var(--color-light-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__icon {
  width: 64px;
  height: 64px;
  color: var(--color-dark-primary-bg);
}

.service-card__body {
  padding: 25px;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.5px;
  color: var(--color-black);
  margin-bottom: 10px;
}

.service-card__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 16px;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-button);
  cursor: pointer;
}

.service-card__link:hover {
  color: var(--color-button-hover);
}

.service-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.service-card__link:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Benefit / Feature Cards
   ========================================================================== */

.benefit-card {
  text-align: center;
  padding: 32px 20px;
}

.benefit-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--color-button);
}

.benefit-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--color-black);
  margin-bottom: 8px;
}

.benefit-card__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
}

/* Benefit card with background */
.benefit-card--bordered {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.benefit-card--bordered:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(16, 118, 188, 0.2);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section-header {
  margin-bottom: 48px;
}

.section-header--center {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-button);
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 0;
}

.section--dark .section-label,
.section--darker .section-label {
  color: var(--color-light-primary-bg);
}

.section-header p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text);
  margin-top: 16px;
}

.section--dark .section-header p,
.section--darker .section-header p {
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Split Content (Image + Text)
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-light-primary-bg);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__content h2 {
  margin-bottom: 20px;
}

.split__content p {
  margin-bottom: 16px;
}

.split__content ul {
  margin: 16px 0 24px;
}

.split__content ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.7;
}

.split__content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  background-color: var(--color-button);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ==========================================================================
   Process Steps
   ========================================================================== */

.process-step {
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.process-step__number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-button);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.process-step__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.process-step__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
}

/* Connector line between steps */
.process-grid {
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 15%;
  right: 15%;
  height: 2px;
  background-color: var(--color-border);
  z-index: 0;
}

.process-step__number {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Stats / Trust Indicators
   ========================================================================== */

.stat {
  text-align: center;
  padding: 24px 16px;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--color-button);
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.section--dark .stat__number,
.section--darker .stat__number {
  color: var(--color-white);
}

.stat__label {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  margin-top: 8px;
}

.section--dark .stat__label,
.section--darker .stat__label {
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 32px;
}

.cta-section .btn + .btn {
  margin-left: 12px;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */

.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--color-black);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-button);
  box-shadow: 0 0 0 3px rgba(16, 118, 188, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ==========================================================================
   Service Areas / Tags
   ========================================================================== */

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.area-tag {
  display: inline-block;
  padding: 8px 18px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.area-tag:hover {
  background-color: var(--color-button);
  border-color: var(--color-button);
  color: var(--color-white);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: #101010;
  color: rgba(255, 255, 255, 0.65);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  margin-top: 20px;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}
.footer-contact-item:hover svg {
  color: #3A9AD9;
}

.footer-bottom {
  padding: 28px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   Testimonial
   ========================================================================== */

.testimonial {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: box-shadow var(--transition-normal);
}

.testimonial:hover {
  box-shadow: var(--shadow-medium);
}

.testimonial__quote {
  font-size: 17px;
  line-height: 1.7;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 20px;
}

.testimonial__quote::before {
  content: '\201C';
  font-size: 48px;
  font-family: var(--font-heading);
  color: var(--color-button);
  line-height: 0;
  position: relative;
  top: 16px;
  margin-right: 4px;
}

.testimonial__author {
  font-weight: 600;
  color: var(--color-black);
}

.testimonial__role {
  font-size: 14px;
  color: var(--color-text);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(16, 118, 188, 0.2);
}

.faq-item.active {
  box-shadow: var(--shadow-soft);
  border-color: rgba(16, 118, 188, 0.25);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--color-white);
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-black);
  text-align: left;
  transition: background-color var(--transition-fast);
}

.faq-item__question:hover {
  background-color: var(--color-light-secondary-bg);
}

.faq-item__question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  color: var(--color-button);
}

.faq-item.active .faq-item__question svg {
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-item__answer {
  padding: 0 24px 20px;
  max-height: 500px;
}

.faq-item__answer p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet (max 1150px) */
@media (max-width: 1150px) {
  h1, .h1, .hero__title { font-size: 44px; }
  h2, .h2 { font-size: 36px; }
  h3, .h3 { font-size: 28px; }

  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--6 { grid-template-columns: repeat(3, 1fr); }

  /* 5-column step grid to 3 on tablet */
  [style*="grid-template-columns: repeat(5"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .split {
    gap: 32px;
  }

  /* Switch to mobile nav on tablet */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 16px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    gap: 0;
    z-index: 50;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-divider);
    width: 100%;
  }

  .mobile-toggle {
    display: flex;
  }

  .header-phone {
    display: none;
  }
}

/* Mobile (max 767px) */
@media (max-width: 767px) {
  h1, .h1, .hero__title {
    font-size: 34px;
    letter-spacing: -1px;
  }

  h2, .h2 {
    font-size: 28px;
    letter-spacing: -1px;
  }

  h3, .h3 {
    font-size: 24px;
    letter-spacing: -0.5px;
  }

  h4, .h4 { font-size: 22px; }

  .section {
    padding: 48px 0;
  }

  .hero {
    min-height: 420px;
  }

  .hero__content {
    padding: 40px 0;
  }

  .hero__subtitle {
    font-size: 17px;
  }

  .hero__actions {
    justify-content: center;
  }

  /* Header top bar - compact on mobile */
  .header-top {
    display: none;
  }

  /* Navigation mobile */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 16px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    gap: 0;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-divider);
    width: 100%;
  }

  .mobile-toggle {
    display: flex;
  }

  .header-phone {
    display: none;
  }

  /* Hero button center on mobile */
  .hero__actions {
    justify-content: center;
  }

  /* Header - keep inline on mobile */
  .header-main .container {
    flex-wrap: nowrap;
  }

  /* Grids */
  .grid--2,
  .grid--3,
  .grid--4,
  .grid--6 {
    grid-template-columns: 1fr;
  }

  /* 5-column step grid to 1 on mobile */
  [style*="grid-template-columns: repeat(5"] {
    grid-template-columns: 1fr !important;
  }

  /* Split layout */
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split__image {
    min-height: 280px;
  }

  .split--reverse .split__image {
    order: -1;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Process line */
  .process-grid::before {
    display: none;
  }

  /* Stats */
  .stat__number {
    font-size: 36px;
  }

  .cta-section .btn + .btn {
    margin-left: 0;
  }

  /* Service card image */
  .service-card__image {
    height: 180px;
  }
}

/* Small phones (max 375px) */
@media (max-width: 375px) {
  .container {
    padding: 0 16px;
  }

  h1, .h1, .hero__title {
    font-size: 28px;
  }

  h2, .h2 {
    font-size: 24px;
  }

  .btn--lg {
    padding: 14px 24px;
    font-size: 16px;
  }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

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

.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.visible > *:nth-child(2) { transition-delay: 80ms; }
.stagger.visible > *:nth-child(3) { transition-delay: 160ms; }
.stagger.visible > *:nth-child(4) { transition-delay: 240ms; }
.stagger.visible > *:nth-child(5) { transition-delay: 320ms; }
.stagger.visible > *:nth-child(6) { transition-delay: 400ms; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Modern Accent Styles
   ========================================================================== */

/* Gradient accent line under section headers */
.section-header--center h2::after,
.section-header h2::after,
.section--dark .section-header--center h2::after,
.section--darker .section-header--center h2::after {
  display: none;
}

/* Modern stat number gradient */
.stat__number {
  background: linear-gradient(135deg, var(--color-button), var(--color-dark-primary-bg));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section--dark .stat__number,
.section--darker .stat__number {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--color-white);
  background-clip: unset;
}

/* Subtle gradient accent on process step numbers */
.process-step__number {
  background: linear-gradient(135deg, var(--color-button), var(--color-dark-primary-bg));
  box-shadow: 0 4px 12px rgba(16, 118, 188, 0.3);
}

/* Modern icon containers */
.benefit-card__icon {
  background: linear-gradient(135deg, var(--color-light-secondary-bg), var(--color-light-primary-bg));
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: transform var(--transition-normal);
}

.benefit-card--bordered:hover .benefit-card__icon {
  transform: scale(1.08);
}

/* Service card image area gradient overlay */
.service-card__image {
  background: linear-gradient(135deg, var(--color-light-secondary-bg) 0%, var(--color-light-primary-bg) 100%);
}

/* Area tag modernization */
.area-tag {
  transition: all var(--transition-normal);
  font-weight: 600;
}

.area-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(16, 118, 188, 0.2);
}

/* Form input modernization */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-button);
  box-shadow: 0 0 0 4px rgba(16, 118, 188, 0.1);
}

/* Smooth header shadow on scroll */
.site-header {
  transition: box-shadow var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* Footer link hover underline */
.footer-col ul li a {
  position: relative;
}

.footer-col ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-white);
  transition: width var(--transition-normal);
}

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