/*!
  BHD Packagings Private Limited — main stylesheet
  Structure: 1. Tokens  2. Base/reset  3. Layout utilities  4. Buttons
  5. Header/Nav  6. Hero  7. Trust ribbon  8. Sections & cards
  9. Slider/carousel  10. FAQ accordion  11. Contact & form
  12. Footer  13. Back-to-top  14. Responsive  15. Reduced motion
*/

/* ===== 1. Design tokens ===== */
:root {
  --bg: #f8fbff;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-solid: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #dbe5f3;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --teal: #0f766e;
  --purple: #7c3aed;
  --accent: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --accent-alt: linear-gradient(135deg, #059669 0%, #0f766e 100%);
  --shadow: 0 24px 80px rgba(37, 99, 235, 0.12);
  --radius: 24px;
  --focus-ring: 0 0 0 3px #fff, 0 0 0 6px var(--blue);
  --header-h: 78px;
}

/* ===== 2. Base / reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.1), transparent 30%),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.08), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #f4f8ff 42%, #ffffff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  padding-left: 1.2em;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

/* Consistent, visible focus state for every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 8px;
}

/* Skip link: hidden until focused, then jumps above everything */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--blue-dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  transition: top 0.2s ease;
}

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

/* Visually hide content but keep it available to screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== 3. Layout utilities ===== */
.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.eyebrow--teal {
  background: rgba(16, 185, 129, 0.1);
  color: var(--teal);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.12);
  flex-shrink: 0;
}

.gradient-text {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== 4. Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  box-shadow: 0 26px 70px rgba(37, 99, 235, 0.32);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: #eaf1ff;
  border-color: var(--blue);
  color: var(--blue-dark);
}

.btn-green {
  background: var(--accent-alt);
  color: #fff;
  box-shadow: 0 20px 60px rgba(15, 118, 110, 0.18);
}

.btn-green:hover {
  box-shadow: 0 26px 70px rgba(15, 118, 110, 0.32);
}

.btn-block {
  width: 100%;
}

/* ===== 5. Header / navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(219, 229, 243, 0.9);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 50px;
  width: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav__list a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.primary-nav__list a:hover,
.primary-nav__list a[aria-current="page"] {
  background: #eaf1ff;
  color: var(--blue);
}

.nav-icon {
  display: none;
}

.primary-nav .btn {
  padding: 10px 20px;
  font-size: 14px;
}

/* Mobile tab bar - hidden on desktop */
.mobile-tabbar {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--surface-solid);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.1);
  z-index: 50;
  justify-content: space-around;
  align-items: stretch;
}

/* ===== 6. Hero ===== */
.hero {
  position: relative;
  padding: 46px 0 52px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  top: -230px;
  right: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2), rgba(124, 58, 237, 0.03) 62%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.98;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
}

.hero__subtitle {
  display: block;
  font-size: 0.54em;
  line-height: 1.2;
  color: var(--muted);
  font-weight: 700;
  margin-top: 6px;
}

.hero p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.stats-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stats-inline li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  vertical-align: middle;
}

.hero-visual,
.about-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 32px;
  pointer-events: none;
}

.hero-proof {
  position: absolute;
  right: -14px;
  bottom: 28px;
  z-index: 3;
  display: grid;
  width: 94px;
  height: 94px;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.26);
  color: #fff;
  text-align: center;
  transform: rotate(9deg);
}

.hero-proof span {
  color: #bfdbfe;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-proof strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.card-image {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.hero .card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 32px 90px rgba(30, 64, 175, 0.2);
}

.hero .card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(15, 23, 42, 0.18), transparent 45%, rgba(37, 99, 235, 0.08));
}

.card-image:hover {
  box-shadow: 0 30px 90px rgba(37, 99, 235, 0.22);
  transform: translateY(-4px);
}

.card-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-image:hover img {
  transform: scale(1.05);
}

/* Ken Burns effect for hero slider images */
@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.1) translate(-2%, 1%);
  }
}

.hero .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 12s ease-in-out infinite alternate;
}

.hero .card-image:hover img {
  animation-play-state: paused;
}
/* ===== 7. Trust ribbon ===== */
.ribbon {
  padding: 28px 0;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
}

.ribbon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ribbon-item {
  padding: 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.ribbon-item:hover {
  transform: translateY(-6px);
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.4);
}

.ribbon-item strong {
  display: block;
  font-size: 1.9rem;
  color: #60a5fa;
  margin-bottom: 8px;
}

/* ===== 8. Sections & cards ===== */
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 26px 0 32px;
  list-style: none;
  padding: 0;
}

.mini-item {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.mini-item:hover {
  transform: translateY(-5px);
  border-color: rgba(15, 118, 110, 0.4);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.12);
}

.mini-item h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.mini-item p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
}

.about-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-card {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  padding: 28px;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.35);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.12));
  transition: transform 0.35s ease, background 0.35s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.12) rotate(-6deg);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(124, 58, 237, 0.22));
}

.feature-card p {
  color: var(--muted);
  line-height: 1.75;
}

.services {
  background: linear-gradient(180deg, #f7fafc 0%, #effcf9 100%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-card {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.35);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.08);
}

.img-placeholder {
  width: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.08));
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  padding: 24px;
}

.img-placeholder svg {
  width: 44px;
  height: 44px;
  opacity: 0.75;
}

.img-placeholder small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

.service-body {
  padding: 24px;
}

.service-tag {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.tag-pink { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.tag-gold { background: linear-gradient(135deg, #f59e0b, #f97316); }
.tag-green { background: linear-gradient(135deg, #10b981, #14b8a6); }
.tag-blue { background: linear-gradient(135deg, #2563eb, #4f46e5); }
.tag-purple { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.tag-teal { background: linear-gradient(135deg, #0f766e, #14b8a6); }

.service-card p {
  color: var(--muted);
  line-height: 1.75;
}

/* Process / how we work */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: process;
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-step {
  position: relative;
  padding: 30px 24px 24px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
}

.process-step::before {
  counter-increment: process;
  content: counter(process, decimal-leading-zero);
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.process-step h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.process-step p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ===== 9. Slider / carousel ===== */
.slider {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.slider__viewport {
  border-radius: var(--radius);
}

.slider__track {
  position: relative;
  min-height: 450px; /* Set a min-height to avoid layout shift during transitions */
}

.slider__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
  visibility: hidden;
}

.slider__slide.is-active {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
}

.slider__slide.is-exiting {
  opacity: 0;
  transform: scale(1.05);
}

.testimonial-card {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
  padding: 40px;
  text-align: center;
}

.testimonial-card__rating {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.testimonial-card blockquote {
  margin: 0 0 22px;
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text);
  font-weight: 500;
}

.testimonial-card figcaption {
  color: var(--muted);
  font-weight: 700;
}

.testimonial-card figcaption span {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 2px;
}

.slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}

.slider__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-dark);
  cursor: pointer;
  pointer-events: all; /* Make buttons clickable */
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.slider__btn:hover {
  background: #eaf1ff;
  border-color: var(--blue);
  transform: translateY(-2px);
}

.slider__btn svg {
  width: 20px;
  height: 20px;
}

.slider__dots {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider__dot[aria-current="true"] {
  background: var(--blue);
  transform: scale(1.3);
}

.hero-slider__controls {
  justify-content: flex-start;
  gap: 12px;
  margin-top: 22px;
}

.hero-slider__count {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 8px 0 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-slider__count span:first-child {
  color: var(--text);
  font-size: 1rem;
}

.hero-slider__count i {
  display: block;
  width: 34px;
  height: 1px;
  background: #cbd5e1;
}

.hero-slider__controls .slider__dots {
  order: 2;
}

.hero-slider__controls .slider__btn:first-of-type {
  order: 1;
}

.hero-slider__controls .slider__btn:last-of-type {
  order: 3;
}

.hero-slider__controls .slider__dot {
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: #cbd5e1;
  transform: none;
}

.hero-slider__controls .slider__dot[aria-current="true"] {
  width: 42px;
  background: var(--blue);
  transform: none;
}

/* Keep every hero slide visually identical while its content changes. */
.hero .slider {
  max-width: 1160px;
}

.hero .slider__track,
.hero .slider__slide,
.hero .slider__slide > .hero-grid {
  min-height: 500px;
}

.hero .slider__slide > .hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

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

/* ===== 10. FAQ accordion ===== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  text-align: left;
}

.faq-item__question:hover {
  color: var(--blue-dark);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
  transform: rotate(45deg);
  background: rgba(37, 99, 235, 0.18);
}

.faq-item__answer {
  overflow: hidden;
}

.faq-item__answer[hidden] {
  display: none;
}

.faq-item__answer p {
  padding: 0 24px 22px;
  color: var(--muted);
  line-height: 1.75;
}

/* ===== 11. CTA banner ===== */
.cta-banner {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 54px 40px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin: 0 auto 26px;
  line-height: 1.7;
}

.cta-banner .btn-secondary {
  border: 0;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== 12. Contact & form ===== */
.contact-grid {
  align-items: stretch;
}

.contact-card,
.form-card {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
  padding: 30px;
  height: 100%;
}

.contact-card p {
  color: var(--muted);
  line-height: 1.75;
}

.contact-card__list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 18px;
}

.contact-card__list li {
  color: var(--muted);
  line-height: 1.75;
}

.contact-card__list strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-card .btn {
  margin-top: 22px;
}

.quote-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-field .required {
  color: #dc2626;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-field input:hover,
.form-field textarea:hover,
.form-field select:hover {
  border-color: #94a3b8;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

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

.form-status {
  min-height: 1.2em;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-status[data-state="success"] {
  color: var(--teal);
}

.form-status[data-state="error"] {
  color: #dc2626;
}

/* ===== 13. Footer ===== */
.site-footer {
  padding: 0 0 32px;
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.28), transparent 27%),
    radial-gradient(circle at 88% 10%, rgba(124, 58, 237, 0.2), transparent 24%),
    #081120;
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 42px 0 38px;
  margin-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-kicker {
  margin: 0 0 9px;
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-cta h2 {
  max-width: 680px;
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}

.footer-cta p:not(.footer-kicker) {
  margin: 0;
  color: #a9bad3;
  line-height: 1.65;
}

.footer-cta__button {
  flex: 0 0 auto;
  color: #0b1730;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.footer-cta__button:hover {
  color: #fff;
  background: var(--blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand p {
  color: #94a3b8;
  line-height: 1.7;
  margin-top: 14px;
}

.footer-phone {
  display: inline-block;
  margin-top: 12px;
  color: #fff;
  font-weight: 700;
}

.footer-heading {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: var(--blue);
  transform: translateY(-3px) scale(1.1);
}

.footer-social a[aria-label*="WhatsApp"]:hover {
  background: #25d366;
}

.footer-social a[aria-label*="LinkedIn"]:hover {
  background: #0077b5;
}

.footer-social a[aria-label*="Facebook"]:hover {
  background: #1877f2;
}

.footer-social a[aria-label*="Google"]:hover {
  background: #db4437;
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

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

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-legal-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Client logo placeholder styles */
.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px;
  align-items: center;
}

.client-logo-placeholder {
  height: 90px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  border-radius: 16px;
  color: #94a3b8;
  font-weight: 600;
}

/* ===== 14. Back to top ===== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* WhatsApp floating action button */
.whatsapp-fab {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 40;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 20px 45px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-fab:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 26px 55px rgba(37, 211, 102, 0.5);
}

.whatsapp-fab svg {
  width: 26px;
  height: 26px;
}

/* ===== 15. Responsive ===== */
@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .feature-grid,
  .service-grid,
  .ribbon-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

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

  .footer-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: -100%; /* Hide off-screen */
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
    padding: 14px 20px 20px;
    display: flex;
    transition: left 0.3s ease;
  }

  .primary-nav.is-open {
    left: 0;
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .primary-nav__list a {
    padding: 12px 14px;
  }

  .primary-nav .btn {
    margin-top: 10px;
    width: 100%;
  }

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

  .hero {
    padding: 34px 0;
  }

  .testimonial-card {
    padding: 28px 22px;
  }

  .slider__track {
    min-height: 550px; /* Adjust for taller mobile layout */
  }

  /* A hero slide is a tall, single-column composition on mobile. Keep the
     active slide in normal flow instead of forcing it into the desktop
     carousel's fixed-height, absolute-positioned canvas. */
  .hero .slider__track {
    min-height: 500px;
  }

  .hero .slider__slide > .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.4rem; /* Reduce heading size on mobile */
  }

  /* App-like bottom navigation bar for mobile */
  body {
    padding-bottom: 70px; /* Make space for the fixed bottom nav */
  }

  .mobile-tabbar {
    display: flex;
  }

  .mobile-tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    padding: 8px 4px;
  }

  .mobile-tabbar a[aria-current="page"] {
    color: var(--blue);
  }

  .mobile-tabbar svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
  }

  .hero .hero-grid {
    align-items: start;
  }

  .hero-proof {
    right: 10px;
    bottom: 14px;
    width: 78px;
    height: 78px;
  }

  .hero .card-image img {
    animation: none;
  }

  /* Keep the main header simple on mobile; navigation lives in the separate
     bottom tab bar below. */
  .site-header .primary-nav { display: flex !important; }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== 16. Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .card-image,
  .card-image img,
  .floating-badge,
  .ribbon-item,
  .feature-card,
  .service-card,
  .feature-icon,
  .mini-item,
  .service-card img,
  .slider__track,
  .back-to-top,
  .whatsapp-fab,
  input,
  textarea {
    transition: none !important;
  }

  .btn:hover,
  .card-image:hover,
  .card-image:hover img,
  .floating-badge:hover,
  .ribbon-item:hover,
  .feature-card:hover,
  .service-card:hover,
  .feature-card:hover .feature-icon,
  .mini-item:hover,
  .service-card:hover img {
    transform: none !important;
  }
}
