/* =========================================================
   SEI GROUP — Shared Stylesheet
   Brand: Red / Near-Black / Light Grey
   ========================================================= */

:root {
  /* Brand palette */
  --red: #C0392B;
  --red-dark: #96291E;
  --near-black: #1A1A1A;
  --dark-grey: #2C2C2C;
  --mid-grey: #6B6B6B;
  --light-grey: #F2F2F2;
  --line-grey: #E2E2E2;
  --white: #FFFFFF;

  /* Type */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Fluid spacing */
  --gutter: clamp(1.5rem, 4vw, 4.5rem);
  --section-pad: clamp(3.5rem, 9vw, 8rem);
  --radius: 6px;

  /* Fluid type scale */
  --fs-hero: clamp(2.25rem, 8vw, 5.25rem);
  --fs-h1: clamp(1.65rem, 3.8vw, 2.6rem);
  --fs-h2: clamp(1.25rem, 2.4vw, 1.85rem);
  --fs-h3: clamp(1rem, 1.4vw, 1.15rem);
  --fs-body: clamp(0.88rem, 0.9vw, 0.98rem);
  --fs-small: clamp(0.75rem, 0.85vw, 0.85rem);
}

/* Lazy reveal / image polish helpers (placed after breakpoints) */
.lazy-img {
  opacity: 0;
  transform: translateY(10px) scale(1.01);
  filter: brightness(0.96) contrast(0.98) saturate(0.96) blur(2px);
  transition: opacity 0.9s cubic-bezier(.2,.95,.25,1), transform 0.9s cubic-bezier(.2,.95,.25,1), filter 0.9s ease;
  will-change: opacity, transform, filter;
}
.lazy-img.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: none;
}

/* Ensure hero image area also transitions smoothly */
.hero, .hero .ph-img { transition: filter 0.5s ease, opacity 0.6s ease; }

/* Slight easing for page scrolling on wheel/touch (non-invasive) */
html { scroll-behavior: smooth; }

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark-grey);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
}

/* Slightly increase spacing after headings for breathing room */
h1, h2, h3, h4, h5, h6 {
  margin-block-end: 0.8rem;
}

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Typography helpers
   ========================================================= */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: clamp(20px, 4vw, 48px);
  height: 1px;
  background: var(--line-grey);
}
.section-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h1);
  line-height: 1.15;
  color: var(--near-black);
}
.section-sub {
  color: var(--mid-grey);
  font-size: var(--fs-body);
  max-width: 640px;
}
.text-center { text-align: center; margin-inline: auto; }
.red { color: var(--red); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(192,57,43,0.55);
}
.btn-outline {
  background: transparent;
  color: var(--near-black);
  border: 1px solid var(--near-black);
}
.btn-outline:hover {
  background: var(--near-black);
  color: var(--white);
  transform: translateY(-2px);
}
.link-arrow {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.25s ease;
}
.link-arrow:hover { gap: 0.75rem; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226,226,226,0.8);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: clamp(1rem, 2vw, 1.4rem);
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  letter-spacing: 0.01em;
}
.logo span.grp { color: var(--near-black); }
.logo span.sei { color: var(--red); }

/* PNG logo sizing */
.logo img, .site-logo { height: 44px; width: auto; display: block; }
@media (max-width: 860px) {
  .logo img, .site-logo { height: 36px; }
}

.nav-links {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav-links a { position: relative; padding-bottom: 4px; transition: color 0.2s ease; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  z-index: 200;
}
.nav-toggle span {
  height: 2px;
  background: var(--near-black);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background-color: var(--light-grey);
  background-image: url('mid-century-interior-design-3.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 4rem);
  min-height: 50vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* lighter overlay on larger viewports so images appear vivid */
  background: rgba(18, 18, 18, 0.08);
  pointer-events: none;
}
.hero-top {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 640px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.02em;
  position: relative;
  /* Bright gradient text with subtle glow */
  background: linear-gradient(90deg, #FFFFFF 0%, #F7E3D0 30%, #FFD8C0 60%, #FFEBE0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
  overflow: visible;
}
.hero-title .line1 { color: #F7E3D0; display: block; }
.hero-title .line2 {
  display: block;
  /* Make the action line pop with warm red gradient and glow */
  background: linear-gradient(90deg, #FFB8B1 0%, var(--red) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 26px rgba(192,57,43,0.36);
}
.hero-title::after {
  /* subtle moving shine */
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
  filter: blur(6px);
  opacity: 0.95;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: hero-shine 3.5s ease-in-out infinite;
}

@keyframes hero-shine {
  0% { left: -120%; }
  50% { left: 120%; }
  100% { left: 120%; }
}
.hero-meta {
  max-width: 320px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: rgba(255,255,255,0.98);
  text-align: left;
  padding-bottom: clamp(0.5rem, 2vw, 1.5rem);
  line-height: 1.65;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}
/* =========================================================
   Placeholder image blocks (swap-ready)
   ========================================================= */
.ph-img {
  width: 100%;
  height: auto;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: repeating-linear-gradient(45deg, #DDDDDD 0, #DDDDDD 2px, #EDEDED 2px, #EDEDED 14px);
  background-size: cover;
  background-position: center;
  color: var(--mid-grey);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 1rem;
  border-radius: inherit;
}

.about-story .ph-img {
  min-height: 140px;
  max-height: 210px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #FAFAFA 0%, #F2F2F2 100%);
  border: 1px solid rgba(34,34,34,0.08);
  color: #4F4F4F;
  font-size: 0.88rem;
  letter-spacing: 0.09em;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
}

.about-story .ph-img.illustration {
  background: linear-gradient(180deg, #FFFFFF 0%, #F6F6F6 100%);
  box-shadow: 0 18px 35px rgba(15, 15, 15, 0.04);
}

.about-story .ph-img.illustration.team {
  background-image: url('user.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #F3F4F6;
}

.about-story .ph-img.illustration.team::before,
.about-story .ph-img.illustration.team::after {
  display: none;
}

.about-story .intro-image {
  max-width: min(420px, 100%);
  margin-inline: auto;
}

.about-story .intro-image .ph-img {
  border-radius: 24px;
  min-height: 180px;
  max-height: 220px;
}

.about-story .team-card .ph-img {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* =========================================================
   Intro / Stats section
   ========================================================= */
.intro {
  padding-block: var(--section-pad);
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
.intro-image {
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
}

.intro-image .ph-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background-size: cover;
  background-position: center;
}
.intro-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.4vw, 2.7rem);
  line-height: 1.05;
  font-weight: 600;
  color: var(--near-black);
  margin-bottom: 1rem;
}
.intro-heading .muted { color: var(--mid-grey); }
.intro-text { color: var(--mid-grey); font-size: var(--fs-body); max-width: 560px; margin-bottom: 2.5rem; }
.stats-row {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--near-black);
}
.stat-num .red { font-weight: 700; }
.stat-label {
  font-size: var(--fs-small);
  color: var(--mid-grey);
}

/* =========================================================
   What we do
   ========================================================= */
.services {
  padding-block: var(--section-pad);
  background: var(--light-grey);
}
.services-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, height 0.35s ease;
  overflow: hidden;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.2); }
.service-card.filled { background: var(--red); color: var(--white); }
.service-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.service-card p {
  font-size: var(--fs-small);
  opacity: 0.85;
  flex-grow: 1;
}
.service-card.filled .link-arrow { color: var(--white); }
.service-card:not(.filled) .link-arrow { color: var(--near-black); }
.service-gallery {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  margin-top: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding-top 0.35s ease, margin-top 0.35s ease;
}
.service-card.open .service-gallery {
  max-height: 600px;
  opacity: 1;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}
.service-thumb,
.service-more {
  min-height: 94px;
  border-radius: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1rem;
  color: var(--white);
  font-weight: 700;
  font-size: 0.88rem;
}
.service-thumb {
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.service-thumb span {
  z-index: 1;
}
.service-more {
  background: rgba(255,255,255,0.9);
  color: var(--near-black);
  text-transform: uppercase;
  justify-content: center;
  filter: blur(0.7px);
  opacity: 0.85;
}

/* =========================================================
   Standards / Why choose us
   ========================================================= */
.standards { padding-block: var(--section-pad); }
.standards-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.standards-left .eyebrow { justify-content: flex-start; }
.standards-left .eyebrow::after { display: none; }
.standards-left .section-heading { margin-block: 1rem; }
.standards-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.standard-item h4 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--near-black);
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--red);
}
.standard-item p { font-size: var(--fs-small); color: var(--mid-grey); }

/* =========================================================
   Where we serve
   ========================================================= */
.serve { padding-block: var(--section-pad); background: var(--light-grey); }
.serve-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.serve-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.serve-card {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.serve-card .ph-img { position: absolute; inset: 0; }
.serve-card span {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  padding: 1rem 0.75rem;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
}
.serve-card.highlight { outline: 3px solid var(--red); outline-offset: -3px; }
.serve-card.highlight span { background: linear-gradient(to top, rgba(192,57,43,0.85), transparent); }

/* =========================================================
   Process timeline
   ========================================================= */
.process { padding-block: var(--section-pad); }
.process-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 2vw, 2rem);
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: var(--line-grey);
  z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line-grey);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--mid-grey);
}
.step:first-child .step-num { background: var(--red); color: var(--white); border-color: var(--red); }
.step h4 {
  font-size: var(--fs-h3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--near-black);
  margin-bottom: 0.5rem;
}
.step p { font-size: var(--fs-small); color: var(--mid-grey); max-width: 220px; margin-inline: auto; }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  padding-block: var(--section-pad);
  background: var(--near-black);
  color: var(--white);
  text-align: center;
}
.cta .eyebrow { color: #999; }
.cta .eyebrow::before, .cta .eyebrow::after { background: #444; }
.cta-heading {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 600;
  margin-block: 1rem 0.75rem;
}
.cta-text { color: #BBB; max-width: 520px; margin: 0 auto 2rem; font-size: var(--fs-body); }

/* Make CTA paragraph span wider on larger viewports while remaining responsive */
.cta .cta-text {
  max-width: 900px;
  width: min(90%, 900px);
  margin: 0 auto 2rem;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--dark-grey);
  color: #CFCFCF;
  padding-top: var(--section-pad);
}
.footer-grid {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-col { flex: 1 1 220px; max-width: 300px; }
.footer-col { text-align: left; }
.footer-col h5 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col ul li { margin-bottom: 0.6rem; font-size: var(--fs-small); }
.footer-col ul li a:hover { color: var(--red); }
.footer-col p { font-size: var(--fs-small); margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid #3D3D3D;
  padding-block: 1.5rem;
  font-size: 0.75rem;
  text-align: center;
  color: #888;
}

/* =========================================================
   Generic inner-page hero (Projects / Products / About)
   ========================================================= */
.page-hero {
  background: var(--light-grey);
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  color: var(--near-black);
}
.page-hero p {
  color: var(--mid-grey);
  max-width: 560px;
  margin: 1rem auto 0;
  font-size: var(--fs-body);
}
.breadcrumb {
  font-size: var(--fs-small);
  color: var(--mid-grey);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.breadcrumb .red { font-weight: 600; }

/* Filter tabs (Projects / Products) */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}
.filter-btn {
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--line-grey);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--mid-grey);
  transition: all 0.25s ease;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* Card grids (Projects / Products) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2vw, 2rem);
  padding-block: clamp(1rem, 3vw, 2rem) var(--section-pad);
}
.item-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-grey);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.item-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(0,0,0,0.22); }
.item-card .ph-img { aspect-ratio: 4/3; border-radius: 0; }
.item-body { padding: 1.25rem 1.4rem 1.5rem; }
.item-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
  display: block;
}
.item-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--near-black);
  margin-bottom: 0.4rem;
}
.item-body p { font-size: var(--fs-small); color: var(--mid-grey); }
.item-price {
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--near-black);
  font-size: var(--fs-small);
}

/* Projects gallery */
.projects-gallery { padding-block: var(--section-pad); }
.projects-gallery .section-heading { margin-bottom: 0.5rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.6rem, 1.5vw, 1rem);
  margin-top: 1rem;
}
.gallery-thumb {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}


/* =========================================================
   About page specifics
   ========================================================= */
.about-story { padding-block: var(--section-pad); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.value-card {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--light-grey);
  border-radius: var(--radius);
}
.value-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--near-black);
}
.value-card p { font-size: var(--fs-small); color: var(--mid-grey); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2vw, 2rem);
}
.team-card { text-align: center; }
.team-card .ph-img {
  width: min(180px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  margin-inline: auto;
  height: auto;
  max-width: 180px;
}
.team-card h4 { margin-top: 1rem; font-family: var(--font-display); font-weight: 600; color: var(--near-black); }
.team-card span { font-size: var(--fs-small); color: var(--mid-grey); }

/* Contact section */
.contact-section { padding-block: var(--section-pad); background: var(--light-grey); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.contact-info-card {
  background: var(--near-black);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(2rem, 3vw, 2.75rem);
}
.contact-info-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  margin-bottom: 1.5rem;
}
.contact-row { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-row .icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #555;
  display: flex; align-items: center; justify-content: center;
}
.contact-row a, .contact-row p { font-size: var(--fs-small); color: #DDD; }
.contact-row a:hover { color: var(--red); }
.map-embed {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-size: var(--fs-small); font-weight: 600; color: var(--near-black); }
.form-group input, .form-group select, .form-group textarea {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-grey);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--near-black);
  background: var(--white);
  transition: border-color 0.2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.75rem; color: var(--mid-grey); margin-top: 0.75rem; }
.form-success {
  display: none;
  background: #EAF7EE;
  color: #2E7D4F;
  border: 1px solid #BEE6C8;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: var(--fs-small);
  margin-bottom: 1.25rem;
}
.form-success.show { display: block; }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* =========================================================
   Responsive breakpoints
   ========================================================= */
@media (max-width: 1024px) {
  /* Keep two-column intro on tablet/large tablet; only collapse on narrow phones */
  .intro-grid { grid-template-columns: minmax(220px, 0.95fr) 1fr; align-items: stretch; }
  .standards-grid { grid-template-columns: 1fr; }
  .standards-list { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .values-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 5rem;
    right: 1rem;
    height: auto;
    max-height: calc(100vh - 6rem);
    width: min(280px, 75vw);
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226,226,226,0.95);
    border-radius: 14px 0 0 14px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 1.75rem 1.5rem;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    box-shadow: -10px 20px 40px rgba(0,0,0,0.15);
    z-index: 150;
    overflow-y: auto;
  }
  .nav-links.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links a { width: 100%; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }
  .hero {
    padding: clamp(1.25rem, 5vw, 2.2rem) 0 clamp(1.5rem, 5vw, 2.4rem);
    min-height: auto;
  }
  .hero-title { font-size: clamp(1.85rem, 8vw, 2.9rem); line-height: 1.08; letter-spacing: -0.04em; }
  .hero-meta { text-align: left; font-size: 0.92rem; max-width: 100%; padding-bottom: 0.85rem; letter-spacing: 0.02em; }
  .hero-image-wrap { justify-content: center; margin-top: 1.25rem; }
  .hero-image { width: min(380px, 78vw); }
  .section-heading { font-size: clamp(1.5rem, 4.2vw, 2rem); }
  .intro-heading { font-size: clamp(1.6rem, 4.5vw, 2.05rem); line-height: 1.12; margin-bottom: 0.7rem; }
  .intro-text { font-size: 0.92rem; line-height: 1.7; max-width: 100%; margin-bottom: 1.25rem; letter-spacing: 0.01em; }
  .intro { padding-block: clamp(1.25rem, 4vw, 2rem); }
  .intro-grid { gap: clamp(1rem, 3vw, 1.75rem); }
  .about-story .intro-image .ph-img { min-height: 170px; max-height: 200px; }
  .about-story .team-card .ph-img { width: min(160px, 100%); max-width: 170px; }
  .service-card { padding: clamp(1.1rem, 2vw, 1.5rem); }
  .service-card h3 { font-size: clamp(1rem, 1.4vw, 1.15rem); }
  .service-thumb { font-size: 0.8rem; }
  .services-head { margin-bottom: clamp(1.2rem, 3.5vw, 1.8rem); }
  .about-grid { gap: clamp(1.2rem, 3vw, 2.2rem); }
  .team-card h4 { font-size: 1rem; }
  .team-card span { font-size: 0.9rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero {
    padding: 1.05rem 0 1.6rem;
  }
  .hero-title { font-size: clamp(1.6rem, 10vw, 2.4rem); }
  .hero-meta { font-size: 0.85rem; }
  .section-heading { font-size: clamp(1.35rem, 6vw, 1.7rem); }
  .intro-heading { font-size: clamp(1.3rem, 7vw, 1.65rem); }
  .intro-text { font-size: 0.9rem; line-height: 1.75; margin-bottom: 1.1rem; }
  .intro { padding-block: 0.95rem; }
  .intro-grid { gap: 1rem; }
  .about-story .intro-image .ph-img { min-height: 120px; max-height: 220px; aspect-ratio: 16/9; background-size: cover; background-position: center; border-radius: 16px; }
  .about-story .team-card .ph-img { width: min(150px, 65vw); max-width: 160px; }
  .service-card { padding: 1rem; }
  .service-card h3 { font-size: 1rem; }
  .service-thumb { font-size: 0.76rem; }
  .filter-btn { font-size: 0.88rem; }
  .gallery-grid { display: none; }
  .values-grid, .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .stats-row { gap: 1rem; }
  /* Hide intro image on small screens to improve flow */
  .intro-image { display: none; }

  /* Reduce content width by adding 20px extra side padding on mobile */
  .container { padding-inline: calc(var(--gutter) + 20px); }

  /* restore stronger overlay on very small screens for text contrast */
  .hero::before { background: rgba(18,18,18,0.26); }


/* Brighten and enrich images on tablet/desktop to avoid dull look */
@media (min-width: 601px) {
  .hero, .ph-img, .gallery-thumb, .service-thumb, .serve-card .ph-img {
    filter: brightness(1.06) contrast(1.06) saturate(1.12);
    transition: filter 0.28s ease;
    will-change: filter;
  }
  .hero:hover, .service-card:hover .service-thumb, .gallery-thumb:hover, .serve-card:hover .ph-img {
    filter: brightness(1.12) contrast(1.08) saturate(1.18);
  }
}
  /* Footer: center columns and ensure equal spacing on mobile */
  .site-footer .footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 3vw, 1.6rem);
    padding-inline: var(--gutter);
  }
  .site-footer .footer-col {
    max-width: none;
    width: 100%;
    text-align: center;
    padding: 0.25rem 0;
  }
  .site-footer .footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
  }
  .site-footer .footer-col p, .site-footer .footer-col a { text-align: center; }
  .footer-bottom { text-align: center; }

  /* Make serve cards wider and less tall on phones */
  .serve-card { aspect-ratio: 16/9; }

  /* Stack services for better flow on phones */
  .services-grid { grid-template-columns: 1fr; }

  /* Make hero crop more vertically to reveal subject on narrow screens */
  .hero { background-position: center 30%; min-height: 48vh; }

  /* Force single-column stacking for major section grids for consistent vertical flow */
  .intro-grid,
  .standards-grid,
  .standards-list,
  .serve-grid,
  .timeline,
  .card-grid,
  .gallery-grid,
  .projects-gallery,
  .services-grid,
  .values-grid,
  .team-grid {
    grid-template-columns: 1fr !important;
    display: grid;
    gap: clamp(1rem, 3.5vw, 2rem);
  }

  .projects-gallery .gallery-grid {
    display: none !important;
  }

  /* Make timeline steps flow vertically and center-align text */
  .timeline { grid-auto-rows: auto; }
  .step { text-align: center; }

  /* Ensure card grids collapse to vertical list with consistent card width */
  .card-grid .item-card, .gallery-grid .gallery-thumb { width: 100%; }

  /* Mobile typography tweaks: slightly smaller headings and body for compact layout */
  body { font-size: 15px; }
  .hero-title { font-size: clamp(1.4rem, 9.5vw, 2rem); }
  .section-heading { font-size: clamp(1.15rem, 5.2vw, 1.6rem); }
  .intro-heading { font-size: clamp(1.05rem, 6.2vw, 1.45rem); }
  .stat-num { font-size: clamp(1.25rem, 3.2vw, 1.9rem); }
  .service-card h3 { font-size: 0.95rem; }
  .step h4 { font-size: 1rem; }

  /* Add vertical padding to sections on mobile for breathing room */
  .hero, .intro, .services, .standards, .serve, .process, .projects-gallery, .about-story, .contact-section, .cta {
    padding-block: clamp(1rem, 6vw, 1.8rem);
  }
}
