/* ================================================================
   AMBHUTI — Inner Pages Design System
   ================================================================ */

/* Page Hero */
.page-hero {
  position: relative;
  height: 400px;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  padding-top: 100px;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,.92) 0%, rgba(100,18,15,.55) 55%, rgba(13,13,13,.7) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  width: 100%;
}
.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C8932A;
  margin-bottom: 10px;
}
.page-hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: currentColor;
}
.page-hero__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.0;
  margin-bottom: 16px;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,.35);
}
.breadcrumb a { color: rgba(255,255,255,.5); transition: color .18s ease; }
.breadcrumb a:hover { color: #C8932A; }
.breadcrumb-sep { color: rgba(255,255,255,.2); font-size: 10px; }
.breadcrumb-current { color: rgba(255,255,255,.65); }

/* Inner section */
.inner-section { padding: clamp(72px, 10vw, 120px) 0; }
.inner-section.bg-light  { background: #FAFAF8; }
.inner-section.bg-dark   { background: #161616; }
.inner-section.bg-white  { background: #fff; }

/* Rich text */
.rich-text p { margin-bottom: 16px; color: #767676; line-height: 1.85; font-size: 1.125rem; }
.rich-text h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  color: #161616; margin: 32px 0 12px; letter-spacing: -0.01em;
}

/* ================================================================
   ABOUT PAGE
   ================================================================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-split.rev { direction: rtl; }
.about-split.rev > * { direction: ltr; }
.about-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 500px;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-img-badge {
  position: absolute;
  bottom: 24px; left: 24px;
  background: #8B1C18;
  color: white;
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(139,28,24,.3);
}
.about-img-badge strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3rem; font-weight: 900; line-height: 1; letter-spacing: -0.04em;
}
.about-img-badge span { font-size: 0.7rem; opacity: .75; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-top: 4px; }
.about-text-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800; color: #161616;
  letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 20px;
}
.about-text-content p { font-size: 1.05rem; color: #767676; line-height: 1.8; margin-bottom: 16px; }

/* Vision/Mission */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card {
  background: #fff;
  border: 1px solid #EAEAE6;
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(0.4,0,0.2,1), box-shadow .35s cubic-bezier(0.4,0,0.2,1);
}
.vm-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #8B1C18, #C8932A);
}
.vm-card:hover { transform: translateY(-6px); box-shadow: 0 12px 48px rgba(0,0,0,.1); }
.vm-card__icon {
  width: 52px; height: 52px;
  background: #F7F5F3;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.vm-card__icon svg { width: 26px; height: 26px; stroke: #8B1C18; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vm-card h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 700; color: #161616; margin-bottom: 12px; letter-spacing: -0.01em; }
.vm-card p { font-size: 1rem; color: #767676; line-height: 1.75; }

/* Core Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.value-item {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  transition: background .35s cubic-bezier(0.4,0,0.2,1), border-color .35s cubic-bezier(0.4,0,0.2,1);
}
.value-item:hover { background: rgba(255,255,255,.07); border-color: rgba(139,28,24,.3); }
.value-icon {
  width: 52px; height: 52px;
  background: rgba(139,28,24,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  transition: background .35s cubic-bezier(0.4,0,0.2,1);
}
.value-item:hover .value-icon { background: #8B1C18; }
.value-icon svg { width: 24px; height: 24px; stroke: #8B1C18; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s cubic-bezier(0.4,0,0.2,1); }
.value-item:hover .value-icon svg { stroke: white; }
.value-item h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.value-item p { font-size: 0.8rem; color: rgba(255,255,255,.4); line-height: 1.65; }

/* Certifications */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cert-card {
  background: #fff;
  border: 1px solid #EAEAE6;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: transform .35s cubic-bezier(0.4,0,0.2,1), box-shadow .35s cubic-bezier(0.4,0,0.2,1);
}
.cert-card:hover { transform: translateY(-8px); box-shadow: 0 12px 48px rgba(0,0,0,.1); }
.cert-card img { max-height: 200px; width: auto; margin: 0 auto 16px; object-fit: contain; }
.cert-card p { font-size: 0.875rem; color: #767676; }

/* ================================================================
   PRODUCTS PAGE
   ================================================================ */
.product-detail {
  padding: 80px 0;
  border-bottom: 1px solid #EAEAE6;
}
.product-detail:last-of-type { border-bottom: none; }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.product-detail-grid.rev { direction: rtl; }
.product-detail-grid.rev > * { direction: ltr; }
.product-detail-media {
  border-radius: 16px;
  overflow: hidden;
  height: 460px;
  position: relative;
}
.product-detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-detail-media__label {
  position: absolute;
  bottom: 20px; left: 20px;
  background: #8B1C18;
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
}
.product-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C8932A;
  margin-bottom: 10px;
}
.product-num::after { content: ''; display: block; width: 50px; height: 1.5px; background: currentColor; }
.product-detail-text h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800; color: #161616;
  letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 16px;
}
.product-detail-text p { font-size: 1.05rem; color: #767676; line-height: 1.8; margin-bottom: 16px; }
.product-features { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 28px; }
.pf-item { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; color: #2D2D2D; line-height: 1.5; }
.pf-item svg { width: 18px; height: 18px; stroke: #C8932A; fill: none; stroke-width: 2.2; flex-shrink: 0; margin-top: 1px; }

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: flex-start;
}
.form-group { position: relative; margin-bottom: 22px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 22px 18px 10px;
  border: 1.5px solid #EAEAE6;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: #1F1F1F;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group textarea { min-height: 140px; resize: vertical; padding-top: 26px; }
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23767676' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: #8B1C18;
  box-shadow: 0 0 0 4px rgba(139,28,24,.08);
}
.form-group label {
  position: absolute;
  top: 16px; left: 18px;
  font-size: 1rem; color: #767676;
  pointer-events: none;
  transition: all .18s ease;
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label {
  top: 7px; font-size: 11px; color: #8B1C18;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.form-submit {
  width: 100%; padding: 18px;
  background: #8B1C18; color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 8px; cursor: pointer;
  transition: background .35s cubic-bezier(0.4,0,0.2,1), transform .35s cubic-bezier(0.4,0,0.2,1), box-shadow .35s cubic-bezier(0.4,0,0.2,1);
  border: none; margin-top: 4px;
}
.form-submit:hover { background: #6B1411; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(139,28,24,.28); }
.form-note { font-size: 0.75rem; color: #9A9A9A; margin-top: 10px; text-align: center; }
.contact-info-panel {
  background: #161616; border-radius: 16px; padding: 48px 40px;
}
.contact-info-panel h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 8px; letter-spacing: -0.02em; }
.contact-info-panel > p { font-size: 0.875rem; color: rgba(255,255,255,.4); margin-bottom: 36px; line-height: 1.7; }
.contact-info-items { display: flex; flex-direction: column; gap: 28px; }
.contact-info-item { display: flex; gap: 16px; }
.cii-icon {
  width: 44px; height: 44px;
  background: rgba(139,28,24,.15);
  border: 1px solid rgba(139,28,24,.2);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cii-icon svg { width: 18px; height: 18px; stroke: #C0392B; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.cii-text h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 4px; }
.cii-text p, .cii-text a { font-size: 0.875rem; color: rgba(255,255,255,.68); line-height: 1.6; transition: color .18s ease; }
.cii-text a:hover { color: #C8932A; }
.offices-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.office-card {
  background: #fff; border: 1px solid #EAEAE6;
  border-radius: 16px; padding: 28px 24px;
  transition: transform .35s cubic-bezier(0.4,0,0.2,1), box-shadow .35s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden;
}
.office-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #8B1C18, #C8932A);
  transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(0.4,0,0.2,1);
}
.office-card:hover { transform: translateY(-6px); box-shadow: 0 12px 48px rgba(0,0,0,.1); }
.office-card:hover::before { transform: scaleX(1); }
.office-type { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #C8932A; margin-bottom: 10px; }
.office-card h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; font-weight: 700; color: #161616; margin-bottom: 10px; letter-spacing: -0.01em; }
.office-card p { font-size: 0.875rem; color: #767676; line-height: 1.65; }
.map-wrap { border-radius: 16px; overflow: hidden; height: 440px; border: 1px solid #EAEAE6; }
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ================================================================
   GALLERY
   ================================================================ */
.gallery-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 48px; justify-content: center; }
.filter-btn {
  padding: 9px 22px;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 100px; border: 1.5px solid #EAEAE6;
  color: #767676; background: #fff; cursor: pointer;
  transition: all .18s ease;
}
.filter-btn:hover { border-color: #8B1C18; color: #8B1C18; }
.filter-btn.active { background: #8B1C18; border-color: #8B1C18; color: white; }
.gallery-masonry { columns: 3; column-gap: 16px; }
.gallery-item {
  break-inside: avoid; margin-bottom: 16px;
  border-radius: 8px; overflow: hidden;
  cursor: pointer; position: relative; display: block;
}
.gallery-item img { width: 100%; display: block; transition: transform .6s cubic-bezier(0.4,0,0.2,1); }
.gallery-item:hover img { transform: scale(1.06); }
.gal-overlay {
  position: absolute; inset: 0;
  background: rgba(139,28,24,.82);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; transition: opacity .35s cubic-bezier(0.4,0,0.2,1);
}
.gallery-item:hover .gal-overlay { opacity: 1; }
.gal-overlay svg { width: 34px; height: 34px; stroke: white; fill: none; stroke-width: 1.8; }
.gal-overlay span { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 8px; transform: scale(.95); transition: transform .3s ease; }
.lightbox.open img { transform: scale(1); }
.lb-close {
  position: absolute; top: 20px; right: 24px;
  color: rgba(255,255,255,.6); font-size: 32px;
  cursor: pointer; transition: color .18s ease; line-height: 1;
}
.lb-close:hover { color: white; }

/* ================================================================
   FAQ
   ================================================================ */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #EAEAE6; }
.faq-q {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; padding: 26px 0;
  cursor: pointer; font-weight: 600;
  font-size: 1.05rem; color: #161616;
  line-height: 1.4; transition: color .18s ease;
  user-select: none;
}
.faq-q:hover { color: #8B1C18; }
.faq-toggle {
  width: 30px; height: 30px;
  border: 1.5px solid #EAEAE6; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
  transition: background .35s, border-color .35s, transform .35s;
}
.faq-toggle svg { width: 14px; height: 14px; stroke: #767676; fill: none; stroke-width: 2; transition: stroke .35s; }
.faq-item.open .faq-q { color: #8B1C18; }
.faq-item.open .faq-toggle { background: #8B1C18; border-color: #8B1C18; transform: rotate(45deg); }
.faq-item.open .faq-toggle svg { stroke: white; }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.faq-body-inner { padding-bottom: 28px; font-size: 1.05rem; color: #767676; line-height: 1.8; }
.faq-item.open .faq-body { max-height: 600px; }

/* ================================================================
   CSR PAGE
   ================================================================ */
.csr-item {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 420px; overflow: hidden;
}
.csr-item.rev { direction: rtl; }
.csr-item.rev > * { direction: ltr; }
.csr-media { position: relative; overflow: hidden; }
.csr-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(0.4,0,0.2,1); }
.csr-item:hover .csr-media img { transform: scale(1.05); }
.csr-content { padding: 60px 56px; display: flex; flex-direction: column; justify-content: center; }
.csr-item:nth-child(odd) .csr-content { background: #FAFAF8; }
.csr-item:nth-child(even) .csr-content { background: #fff; }
.csr-ghost { font-family: 'Barlow Condensed', sans-serif; font-size: 6rem; font-weight: 900; color: rgba(139,28,24,.05); line-height: 1; margin-bottom: -16px; letter-spacing: -0.05em; }
.csr-content h3 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; color: #161616; letter-spacing: -0.02em; margin-bottom: 16px; line-height: 1.1; }
.csr-content p { font-size: 1.05rem; color: #767676; line-height: 1.8; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .offices-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-detail-grid.rev { direction: ltr; }
  .product-detail-media { height: 320px; }
  .about-split { grid-template-columns: 1fr; gap: 48px; }
  .about-split.rev { direction: ltr; }
  .about-img-wrap { height: 360px; }
  .csr-item { grid-template-columns: 1fr; }
  .csr-item.rev { direction: ltr; }
  .csr-content { padding: 40px 36px; }
  .gallery-masonry { columns: 2; }
  .vm-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .offices-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .gallery-masonry { columns: 1; }
  .cert-grid { grid-template-columns: 1fr; }
  .csr-content { padding: 32px 24px; }
  .csr-ghost { font-size: 4rem; }
}
