/* =========================================
   FOXSTONE CONSTRUCTION
   styles.css
   Mobile-first, semantic, no frameworks
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@700;800&family=Montserrat:wght@300;400;600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --red: #D0231A;
  --dark: #1A1A1A;
  --off-white: #F9F8F6;
  --warm-grey: #E8E5E0;
  --mid-grey: #767676;
  --white: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* scroll-padding keeps anchor targets clear of the fixed header on native
   jumps (e.g. arriving from another page via projects.html#project-6). */
html { scroll-behavior: smooth; scroll-padding-top: 115px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--off-white);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { font-family: 'Barlow Semi Condensed', sans-serif; font-weight: 700; line-height: 1.1; text-transform: uppercase; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.btn-red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { background: #b01e16; border-color: #b01e16; }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--dark); }
.btn-outline-dark { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }
.btn-white { background: var(--white); color: var(--dark); border-color: var(--white); }
.btn-white:hover { background: var(--off-white); }

/* ─── HEADER ──────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}
header.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 2.5rem;
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}
.nav-logo { height: 80px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  transition: color 0.2s;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
header.scrolled .nav-links a { color: var(--dark); }
header.scrolled .nav-links a.btn.nav-cta { color: var(--white); }
.nav-links a:not(.nav-cta):hover { color: var(--red); opacity: 1; }
header.scrolled .nav-links a:not(.nav-cta):hover { color: var(--red); opacity: 1; }
.nav-phone { display: flex; align-items: center; gap: 0.4rem; color: var(--red) !important; }
.nav-phone::before {
  content: '';
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72c.13.96.36 1.9.7 2.81a2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45c.9.34 1.85.57 2.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72c.13.96.36 1.9.7 2.81a2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45c.9.34 1.85.57 2.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .nav-phone { display: none; }
}
.nav-cta.btn {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  padding: 0.55rem 1.35rem;
  font-size: 0.875rem;
}
header.scrolled .nav-cta.btn { opacity: 1; }
.nav-cta.btn:hover { background: #b01e16; border-color: #b01e16; opacity: 1; color: var(--white); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all 0.3s;
  border-radius: 2px;
}
header.scrolled .hamburger span { background: var(--dark); }

/* Mobile Nav Overlay */
.nav-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 84vw);
  background: var(--red);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* Links sit under the close button; the contact block is pushed to the
     bottom by its own margin-top:auto. */
  justify-content: flex-start;
  gap: 0;
  padding: 5.5rem 1.75rem 2.25rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.3);
  overflow-y: auto;
}
.nav-overlay.open { transform: translateX(0); }
.nav-overlay-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
}
.nav-overlay-links a {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.1;
  transition: opacity 0.2s;
}
.nav-overlay-contact {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}
.nav-overlay-contact a {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0;
  text-transform: none;
  transition: opacity 0.2s;
}
.nav-overlay a:hover { opacity: 0.72; }
.close-overlay {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.6rem;
}

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: url('assets/foxstone-kitchen-renovation-dublin.jpg');
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.58);
}
/* Split hero (homepage): dark text panel on the left, photo panel on the right behind a diagonal edge */
.hero-split {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  background: #12161a;
  padding: 0;
}
.hero-text-panel {
  flex: 0 0 44%;
  max-width: 44%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 3rem 4rem;
}
.hero-split .hero-content {
  max-width: 100%;
  padding: 0;
}
.hero-split .hero-content h1 { display: block; }
.hero-split .hero-content p { margin-left: 0; margin-right: 0; max-width: 100%; }
.hero-split .hero-btns { justify-content: flex-start; }
.hero-photo-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-photo-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--red);
  clip-path: polygon(12% 0, 13.6% 0, 1.6% 100%, 0 100%);
}
.hero-slideshow {
  position: absolute;
  inset: 0;
  background: #12161a;
}
.hero-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-slideshow img.active {
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,22,26,0.15) 0%, rgba(18,22,26,0.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 2rem;
  color: var(--white);
}
.hero-content h1 {
  margin-bottom: 1.25rem;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4);
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--red);
  display: inline-block;
}
.hero-content p {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 600;
  margin-bottom: 2.25rem;
  opacity: 1;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s ease-in-out infinite;
  opacity: 0.65;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(9px); }
}

/* Inner page hero: solid dark band, left-aligned, with the same red diagonal
   edge as the homepage hero. No photo, so the text needs no shadow to read. */
.hero-compact {
  position: relative;
  height: auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  overflow: hidden;
  background: #12161a;
  padding: 190px 2.5rem 5rem;
}
/* Reuse the (otherwise unused) .hero-bg div as a large watermark of the mark,
   masked to white so it reads as texture rather than competing with the red
   slash beside it. */
.hero-compact .hero-bg {
  display: block;
  position: absolute;
  /* The fixed header overlaps the top of the band, so nudge down to sit
     centred in the band's *visible* area rather than its box. */
  top: calc(50% + 46px);
  right: 6%;
  left: auto;
  width: clamp(150px, 15vw, 225px);
  aspect-ratio: 1240 / 1181;
  height: auto;
  transform: translateY(-50%);
  /* Recolour the red mark to white via filter rather than a CSS mask: mask
     images are CORS-restricted and silently fail over file://, which breaks
     local previews. brightness(0) flattens to black, invert(1) to white,
     both preserving the PNG's alpha. */
  background: url('assets/foxstone-mark.png') center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.06;
  z-index: 1;
  pointer-events: none;
}
.hero-compact .hero-bg::after { display: none; }
/* Lighter charcoal wedge on the right, with the red slash along its leading
   edge — the same two-tone diagonal the homepage hero uses. */
.hero-compact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #1c222a;
  clip-path: polygon(74% 0, 100% 0, 100% 100%, 60% 100%);
  pointer-events: none;
}
.hero-compact::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  clip-path: polygon(74% 0, 75.1% 0, 61.1% 100%, 60% 100%);
  pointer-events: none;
}
.hero-compact .hero-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
.hero-compact .hero-content h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  text-shadow: none;
  margin-bottom: 1.5rem;
}
.hero-compact .hero-content p {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  margin: 0;
  max-width: 560px;
  text-shadow: none;
  line-height: 1.65;
}

/* ─── TRUST BAR ───────────────────────────────────────── */
.trust-bar {
  background: var(--dark);
  padding: 1.1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-item {
  flex: 1;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.5rem 1.5rem;
}
.trust-item + .trust-item { border-left: 1px solid rgba(255,255,255,0.15); }

/* ─── SECTIONS ─────────────────────────────────────────── */
section { padding: 5.5rem 2.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
  font-family: 'DM Sans', sans-serif;
}
.section-heading { margin-bottom: 0.75rem; }
.section-subheading {
  font-size: 1.05rem;
  color: var(--mid-grey);
  max-width: 540px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* ─── SERVICES ────────────────────────────────────────── */
.services-intro {
  font-size: 1.05rem;
  color: #555;
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid var(--warm-grey);
  transition: box-shadow 0.25s, transform 0.25s;
}
.service-card:hover { box-shadow: 0 10px 36px rgba(0,0,0,0.08); transform: translateY(-3px); }
.service-icon {
  width: 48px; height: 48px;
  background: #fef2f2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 22px; height: 22px; color: var(--red); }
.service-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.service-card p { font-size: 0.875rem; color: var(--mid-grey); line-height: 1.7; }

/* ─── PROJECT CARDS ───────────────────────────────────── */
.projects-section { background: var(--white); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.project-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--warm-grey);
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s;
  position: relative;
}
.project-card:hover { box-shadow: 0 14px 44px rgba(0,0,0,0.11); transform: translateY(-4px); }
.project-img-wrap { position: relative; overflow: hidden; }
.project-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.project-card:hover .project-card-img { transform: scale(1.04); }
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.project-card:hover .project-card-overlay { opacity: 1; }
.project-card-overlay span {
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
}
.category-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  padding: 0.22rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}
.project-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.project-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.project-location { font-size: 0.78rem; color: var(--mid-grey); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.3rem; }
.project-card p { font-size: 0.85rem; color: var(--mid-grey); line-height: 1.6; }

.project-card-coming {
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  cursor: default;
  border: none;
}
.project-card-coming:hover { transform: none; box-shadow: none; }
.project-card-coming p { color: rgba(255,255,255,0.45); font-size: 1rem; font-weight: 600; text-align: center; padding: 2rem; }

/* ─── TESTIMONIALS ────────────────────────────────────── */
.testimonials-section { background: var(--warm-grey); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 520px));
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: 22px;
  padding: 2.5rem;
}
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--red);
  line-height: 0.5;
  margin-bottom: 1.25rem;
  display: block;
  user-select: none;
}
.stars { display: flex; gap: 3px; margin-bottom: 1rem; }
.stars svg { width: 16px; height: 16px; color: #f59e0b; fill: #f59e0b; }
.testimonial-card blockquote {
  font-size: 0.96rem;
  line-height: 1.75;
  color: #333;
  margin-bottom: 1.5rem;
  font-style: italic;
}
/* "Read more" toggle — only shown on mobile, where long quotes dominate the card */
.testimonial-toggle { display: none; }
.testimonial-author { font-weight: 700; font-size: 0.875rem; color: var(--dark); }
.testimonial-project { font-size: 0.78rem; color: var(--mid-grey); margin-top: 0.2rem; }
.testimonial-project a { text-decoration: underline; text-underline-offset: 2px; }
.testimonial-project a:hover { color: var(--dark); }

/* ─── FORM ────────────────────────────────────────────── */
.form-section { background: var(--off-white); }
.form-container { max-width: 960px; margin: 0 auto; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 1.5px solid #D8D4CF;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--dark);
  transition: border-color 0.2s;
  outline: none;
  appearance: auto;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--dark); }
.form-group textarea { resize: vertical; min-height: 120px; }
.helper-text { font-size: 0.75rem; color: var(--mid-grey); }
.form-group.error input,
.form-group.error select,
.form-group.error textarea { border-color: var(--red); }
.error-msg { font-size: 0.75rem; color: var(--red); display: none; }
.form-group.error .error-msg { display: block; }
.form-submit { grid-column: 1 / -1; margin-top: 0.25rem; }
.form-submit button {
  width: 100%;
  padding: 1rem;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.01em;
}
.form-submit button:hover { background: #b01e16; }
.form-submit button:disabled { opacity: 0.6; cursor: not-allowed; }
.form-success {
  display: none;
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--white);
  border-radius: 18px;
  border: 1.5px solid var(--warm-grey);
}
.form-success.visible { display: block; }
.form-success .success-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.form-success h3 { margin-bottom: 0.5rem; font-size: 1.4rem; }
.form-success p { color: var(--mid-grey); font-size: 0.95rem; }
.form-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.75rem;
  justify-content: center;
}
.form-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--mid-grey);
  font-weight: 600;
}
.form-trust-item svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; }

/* ─── FOOTER ──────────────────────────────────────────── */
footer { background: var(--dark); color: var(--white); padding: 4rem 2.5rem 2rem; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .footer-logo { height: 64px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.45); line-height: 1.65; max-width: 260px; }
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-col p { font-size: 0.875rem; color: rgba(255,255,255,0.65); margin-bottom: 0.4rem; }
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.linkedin-link:hover { color: var(--white); }
.linkedin-link svg { width: 16px; height: 16px; }
.footer-bottom {
  max-width: 1200px;
  margin: 1.75rem auto 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  text-align: center;
}

/* ─── FILTER BAR ──────────────────────────────────────── */
.filter-bar { display: flex; gap: 0.75rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.filter-btn {
  padding: 0.55rem 1.35rem;
  border-radius: 100px;
  border: 2px solid var(--warm-grey);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--dark);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ─── MODAL ───────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  z-index: 2000;
  overflow-y: auto;
  padding: 2rem 1rem;
  align-items: flex-start;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: 22px;
  max-width: 780px;
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: auto;
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(0,0,0,0.45);
  border: none;
  color: var(--white);
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
  line-height: 1;
}
.modal-close:hover { background: rgba(0,0,0,0.7); }
.modal-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.modal-body { padding: 2rem 2.25rem 2.25rem; }
.modal-body .category-badge { margin-bottom: 0.75rem; }
.modal-body h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 1.75rem; line-height: 1.2; }
.modal-section { margin-bottom: 1.5rem; }
.modal-section h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.modal-section p { font-size: 0.95rem; line-height: 1.75; color: #444; }
.modal-cta { margin-top: 2rem; }

/* ─── CTA BAND ────────────────────────────────────────── */
.cta-band { background: var(--red); padding: 4.5rem 2.5rem; text-align: center; }
.cta-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1.5rem; color: var(--white); }

/* ─── ABOUT: WHO WE ARE ───────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.two-col-text p { font-size: 1rem; line-height: 1.85; color: #444; margin-bottom: 1rem; }
.two-col-img { border-radius: 20px; overflow: hidden; aspect-ratio: 4/3; }
.two-col-img img { width: 100%; height: 100%; object-fit: cover; }

/* ─── VALUES ──────────────────────────────────────────── */
.values-section { background: var(--warm-grey); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.value-card {
  text-align: center;
  padding: 2.5rem 1.75rem;
  background: var(--white);
  border-radius: 18px;
}
.value-icon {
  width: 56px; height: 56px;
  background: #fef2f2;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.value-icon svg { width: 24px; height: 24px; color: var(--red); }
.value-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.value-card p { font-size: 0.875rem; color: var(--mid-grey); line-height: 1.7; }

/* ─── TEAM ────────────────────────────────────────────── */
.team-section { background: var(--off-white); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.team-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--warm-grey);
  transition: box-shadow 0.25s, transform 0.25s;
}
.team-card:hover { box-shadow: 0 10px 36px rgba(0,0,0,0.08); transform: translateY(-3px); }
.team-photo { width: 100%; height: 260px; object-fit: cover; object-position: top center; display: block; }
.team-card-body { padding: 1.5rem; }
.team-card h3 { margin-bottom: 0.2rem; font-size: 1.15rem; }
.team-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.85rem;
  font-family: 'DM Sans', sans-serif;
}
.team-card p { font-size: 0.85rem; color: var(--mid-grey); line-height: 1.7; margin-bottom: 1rem; }
.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mid-grey);
  transition: color 0.2s;
}
.team-linkedin:hover { color: var(--dark); }
.team-linkedin svg { width: 14px; height: 14px; }

/* ─── ACCREDITATIONS ──────────────────────────────────── */
.accreditations { background: var(--dark); padding: 3rem 2.5rem; }
.accreditations-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
}
.accreditation-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  font-size: 0.9rem;
}
.accreditation-item svg { width: 22px; height: 22px; color: var(--red); flex-shrink: 0; }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 85px; }
  header { padding: 0.4rem 1.25rem; }
  header.scrolled { padding: 0.3rem 1.25rem; }
  .nav-logo { height: 54px; }
  .hero-content { padding: 1rem 0.5rem; }
  .hero-content h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .hero-content p { font-size: clamp(1rem, 4vw, 1.2rem); }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 3.5rem 1.25rem; }
  .services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }
  .services-grid::-webkit-scrollbar { display: none; }
  .service-card {
    flex: 0 0 72vw;
    scroll-snap-align: start;
  }
  .projects-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }
  .projects-grid::-webkit-scrollbar { display: none; }
  .project-card {
    flex: 0 0 72vw;
    scroll-snap-align: start;
  }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card blockquote.clamped {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
  }
  .testimonial-toggle {
    display: inline-block;
    background: none;
    border: none;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
    cursor: pointer;
  }
  .team-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col-img { order: -1; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .trust-bar { flex-direction: column; text-align: center; }
  .trust-item + .trust-item { border-left: none; border-top: 1px solid rgba(255,255,255,0.12); }
  .hero-compact { height: auto; padding: 125px 1.5rem 3rem; }
  /* Text runs near full-width here, so the diagonal and watermark would cut
     through it. */
  .hero-compact::before,
  .hero-compact::after,
  .hero-compact .hero-bg { display: none; }
  .hero-compact .hero-content p { max-width: 100%; }
  .hero-split { flex-direction: column; min-height: auto; }
  .hero-text-panel { flex: none; max-width: 100%; padding: 135px 1.5rem 3.5rem; text-align: center; }
  .hero-split .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-split .hero-btns { justify-content: center; }
  .hero-photo-panel { flex: none; height: 45vh; clip-path: none; }
  .hero-photo-panel::before { display: none; }
}

@media (max-width: 375px) {
  h1 { font-size: 2.1rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn { padding: 0.75rem 1.4rem; font-size: 0.9rem; }
}
