﻿/*
  StratBerries – minimal, clean, responsive styles
*/

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&display=swap');

:root {
  --green: #2e7d32;
  --raspberry: #c62828;
  --info: #2563eb;
  --text: #1f2937;
  --muted: #4b5563;
  --bg: #f3f4f6; /* neutral gray background */
  --card: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --header-height: 72px;
  --section-padding: clamp(3.5rem, 6vw, 5.5rem);
  --section-padding-tight: clamp(2.5rem, 5vw, 4rem);
  --heading-gap: clamp(1.75rem, 4vw, 3rem);
  --container-width: min(1100px, 92%);
  --radius-lg: 22px;
}

/* Base */
html {
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

.focus-ring,
:where(a, button, .btn, input, select, textarea).focus-ring {
  outline: 2px solid var(--raspberry);
  outline-offset: 3px;
}
:where(a, button, .btn, input, select, textarea):focus-visible {
  outline: 2.5px solid var(--raspberry);
  outline-offset: 3px;
}
:where(a, button, .btn, input, select, textarea):focus:not(:focus-visible) {
  outline: none;
}

.container { width: var(--container-width); margin: 0 auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--card);
  color: var(--text);
  padding: .5rem .75rem;
  border-radius: .375rem;
  box-shadow: var(--shadow);
}

.site-toast {
  position: fixed;
  bottom: clamp(1.5rem, 4vw, 2.75rem);
  right: clamp(1.25rem, 5vw, 3rem);
  padding: .95rem 1.15rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
  border-left: 4px solid transparent;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  max-width: min(340px, 90vw);
  font-size: .98rem;
  line-height: 1.45;
  z-index: 1200;
}
.site-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.site-toast[data-variant="success"] { border-left-color: var(--green); }
.site-toast[data-variant="error"] { border-left-color: var(--raspberry); }
.site-toast[data-variant="info"] { border-left-color: var(--info); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 0;
  gap: clamp(1rem, 2vw, 1.75rem);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 1.6vw, 1.25rem);
}
.logo {
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.2px;
  font-size: clamp(1.85rem, 2.6vw, 2.4rem);
}
/* Brand styling: Strat + B + erries */
.brand { font-family: 'Rajdhani', 'Roboto', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: .02em; }
.brand span { font-family: inherit; font-weight: inherit; }
/* Strat in black */
.brand > span:first-child { color: #000000; }
/* B in raspberry red (as is) */
.brand-b { color: var(--raspberry); }
/* erries in green (as is) */
.brand > span:last-child { color: var(--green); }
/* Hero: add white outline and explicit fills per segment for contrast */
@supports (-webkit-text-stroke: 1px white) {
  .hero h1 .brand { -webkit-text-stroke: 1.2px #ffffff; }
  .hero h1 .brand > span:first-child { -webkit-text-fill-color: #000000; }
  .hero h1 .brand-b { -webkit-text-stroke: 1.2px #ffffff; -webkit-text-fill-color: var(--raspberry); }
  .hero h1 .brand > span:last-child { -webkit-text-fill-color: var(--green); }
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: .35rem .65rem;
  border-radius: .35rem;
  font-weight: 500;
  background: transparent;
  transition: color .2s ease, background .2s ease;
}
.site-nav a:hover,
.site-nav a:focus {
  color: var(--green);
  background: rgba(46,125,50,0.08);
  outline: none;
}

/* Language switcher */
.lang-switch { display: inline-flex; gap: .35rem; align-items: center; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  font-size: 16px;
}
.lang-btn:hover, .lang-btn:focus { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.08); outline: none; border-color: rgba(46,125,50,0.4); }
.lang-btn.active { border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,125,50,0.14); }

/* Override language buttons to show FR/EN with flag background */
.lang-btn {
  width: auto;
  height: 32px;
  min-width: 48px;
  padding: 0 .6rem 0 1.6rem; /* space for flag */
  background-repeat: no-repeat;
  background-size: 16px 12px;
  background-position: 8px 50%;
  font-size: 0; /* hide inner text if any */
}
.lang-btn::after {
  content: attr(data-lang);
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1;
  color: var(--text);
}
.lang-btn[data-lang="fr"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Crect width='1' height='2' x='0' fill='%230055A4'/%3E%3Crect width='1' height='2' x='1' fill='%23FFFFFF'/%3E%3Crect width='1' height='2' x='2' fill='%23EF4135'/%3E%3C/svg%3E");
}
.lang-btn[data-lang="en"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Crect width='60' height='30' fill='%23012169'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23ffffff' stroke-width='6'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30,0 V30 M0,15 H60' stroke='%23ffffff' stroke-width='10'/%3E%3Cpath d='M30,0 V30 M0,15 H60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E");
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.menu-toggle:focus-visible,
.menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  outline: none;
}
.menu-icon {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: background .2s ease;
}
.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.site-nav a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}


/* Hero */
.hero {
  position: relative;
  min-height: clamp(68vh, 92vw, 88vh);
  display: grid;
  place-items: center;
  color: #ffffff; /* ensure strong contrast on photos */
  text-align: center;
  overflow: clip;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Nature-inspired gradient + subtle pattern as placeholder */
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(198,40,40,0.08), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(46,125,50,0.12), transparent 60%),
    linear-gradient(135deg, #e8f5e9 0%, #fef3f2 100%);
  z-index: -2; /* sit below slides */
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Darker overlay for better legibility */
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.55) 100%);
  z-index: 0; /* over images, under content */
  pointer-events: none;
}
.hero-inner {
  padding: clamp(4rem, 10vw, 6rem) 0 clamp(2.75rem, 6vw, 4rem);
  position: relative;
  z-index: 1; /* ensure text above overlay/images */
}
.hero-slim { min-height: 42vh; }

/* Mosaic gallery (Contact) */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  justify-content: center;
  max-width: min(100%, 1100px);
  margin: 0 auto 1.5rem;
  padding: 0 .5rem .5rem;
}
.mosaic .tile {
  aspect-ratio: 1;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  background: #e5e7eb;
}
.mosaic .tile-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease-in-out;
  opacity: 1;
}
.mosaic .tile-img.is-next { opacity: 0; }

.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.2rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.3rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: var(--card);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}
.contact-item .contact-icon {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--green);
}
.contact-item .contact-icon .icon {
  width: 100%;
  height: 100%;
}
.contact-item .contact-text {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.contact-item .contact-label {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}
.contact-item .link {
  font-size: 1.2rem;
}

@media (max-width: 980px) {
  .header-inner { gap: .75rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2 > :not(.portrait) { text-align: left; }
  .grid-2 .portrait { margin: 0 auto 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: .8rem; text-align: center; }
  .portrait { width: clamp(220px, 45vw, 320px); }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    top: calc(var(--header-height, 72px) + 0.5rem);
    left: clamp(0.75rem, 5vw, 2rem);
    right: clamp(0.75rem, 5vw, 2rem);
    z-index: 998;
    flex-direction: column;
    align-items: stretch;
    padding: clamp(1.25rem, 4vw, 1.75rem);
    gap: .9rem;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    transform: translateY(-12%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: calc(100vh - var(--header-height, 72px) - 1.5rem);
    overflow-y: auto;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  }
  .site-nav a {
    font-size: 1.05rem;
    justify-content: flex-start;
    padding: .75rem 1rem;
    border-radius: .65rem;
    background: rgba(15, 23, 42, 0.04);
  }
  .site-header.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .site-header.nav-open .menu-toggle {
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.22);
  }
  .site-header.nav-open .menu-icon {
    background: transparent;
  }
  .site-header.nav-open .menu-icon::before {
    transform: translateY(6px) rotate(45deg);
  }
  .site-header.nav-open .menu-icon::after {
    transform: translateY(-6px) rotate(-45deg);
  }
}

@media (max-width: 640px) {
  .logo { font-size: 1.65rem; }
  .cards { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .portrait { width: 210px; }
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw + 1rem, 4.4rem);
  line-height: 1.1;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.hero .subheadline {
  color: #e5e7eb;
  font-size: clamp(1rem, 2.2vw + 0.6rem, 1.55rem);
  max-width: clamp(36ch, 80vw, 52ch);
  margin: 0 auto 1.6rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* Hero slideshow */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1; /* below overlay and content */
}
.hero-bg .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  animation: slideShow var(--slideshow-duration, 32s) infinite ease-in-out;
}
.hero-bg .slide:nth-child(1) {
  animation-delay: 0s;
  background-image: url('assets/hero1.jpg');
}
.hero-bg .slide:nth-child(2) {
  animation-delay: calc(var(--slideshow-duration, 32s) / 6);
  background-image: url('assets/hero2.jpg');
}
.hero-bg .slide:nth-child(3) {
  animation-delay: calc(var(--slideshow-duration, 32s) * 2 / 6);
  background-image: url('assets/hero3.jpg');
}
.hero-bg .slide:nth-child(4) {
  animation-delay: calc(var(--slideshow-duration, 32s) * 3 / 6);
  background-image: url('assets/hero4.jpg');
}
.hero-bg .slide:nth-child(5) {
  animation-delay: calc(var(--slideshow-duration, 32s) * 4 / 6);
  background-image: url('assets/hero5.jpg');
}
.hero-bg .slide:nth-child(6) {
  animation-delay: calc(var(--slideshow-duration, 32s) * 5 / 6);
  background-image: url('assets/hero6.jpg');
}

@keyframes slideShow {
  /* Each slide gets a 1/6 (~16.67%) window in the cycle */
  0% { opacity: 0; transform: scale(1.04); }
  2% { opacity: 1; transform: scale(1.02); }
  13% { opacity: 1; transform: scale(1.00); }
  16.67% { opacity: 0; transform: scale(1.00); }
  100% { opacity: 0; transform: scale(1.00); }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-bg .slide { animation: none; opacity: 1; }
  .hero-bg .slide ~ .slide { display: none; }
}

.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  border: none;
  padding: .8rem 1.1rem;
  border-radius: .55rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 8px 18px rgba(46, 125, 50, 0.24);
}
.hero .btn { box-shadow: 0 10px 28px rgba(0,0,0,0.25), 0 8px 18px rgba(46, 125, 50, 0.28); }
.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(46, 125, 50, 0.28);
}
.btn-accent { background: linear-gradient(90deg, var(--green), #3fa346); }
.btn.is-disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.is-disabled:hover, .btn.is-disabled:focus { transform: none; box-shadow: none; }

/* Sections */
.section { padding: var(--section-padding) 0; }
.section-alt { background: #ffffff; }
.center { text-align: center; }
.section h2 {
  margin: 0 0 var(--heading-gap);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  letter-spacing: -0.015em;
  color: var(--text);
}
.section .section-intro {
  margin: -1.25rem auto var(--heading-gap);
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.15rem);
}


/* About: background image with soft overlay */
#about {
  background:
    linear-gradient(to bottom right, rgba(255,255,255,0.88), rgba(255,255,255,0.88)),
    url('assets/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
}
.portrait {
  width: clamp(280px, 30vw, 380px);
  max-width: 70vw;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(46,125,50,0.25), transparent 45%),
    linear-gradient(145deg, #e5e7eb, #f9fafb);
  border: 6px solid #fff;
  box-shadow: var(--shadow);
  margin: 0 auto;
}

/* Static hero variant (no slideshow animation) */
.hero-static .hero-bg .slide { animation: none !important; opacity: 1; transform: none; }
.hero.page-hero {
  min-height: auto;
  padding: calc(var(--header-height) + 2.75rem) 0 var(--section-padding-tight);
}
.hero.page-hero .hero-inner {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero.page-hero .hero-plate {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  max-width: min(700px, 92vw);
}
.hero.page-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
}
.hero.page-hero p {
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  max-width: 58ch;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* About points list */
.about-points { margin: .5rem 0 0; padding-left: 1.1rem; }
.about-points li { margin: .25rem 0; }

/* Cards (Services) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(0.9rem, 3vw, 1.2rem);
  margin-top: 1.4rem;
}
/* Force max 2 columns on desktop; media queries still collapse to 1 on mobile */
/* .cards auto-fit removed to avoid uneven layouts */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .8rem;
  padding: 1.2rem;
  box-shadow: 0 10px 16px rgba(0,0,0,0.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.08);
}
.card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: .6rem;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  margin-bottom: .75rem;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card h3 {
  margin: .4rem 0 .3rem;
}
.card p {
  color: var(--muted);
  margin: 0;
}

/* Coverage map */
.coverage-intro {
  max-width: 720px;
  margin: 1rem auto 0;
  color: var(--muted);
  text-align: center;
}

.coverage-map {
  margin-top: 1.6rem;
  border: 1px solid var(--border);
  border-radius: .9rem;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

#coverage-map {
  height: 420px;
  width: 100%;
}

.btn-ghost {
  margin-top: .8rem;
  background: transparent;
  color: var(--green);
  border: 1px solid rgba(46,125,50,0.35);
  box-shadow: none;
}
.btn-ghost:hover,
.btn-ghost:focus {
  background: rgba(46,125,50,0.06);
  box-shadow: 0 4px 12px rgba(46,125,50,0.12);
}

/* Modal */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; }
.modal.is-hidden { display: none !important; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.modal-dialog {
  position: relative;
  background: #fff;
  color: var(--text);
  width: min(900px, 92vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  padding: 1.1rem 1.25rem;
}
.modal-close {
  position: absolute;
  top: .5rem; right: .5rem;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(17,24,39,0.8);
  color: #fff;
  cursor: pointer;
}
.modal-content h1 { margin: 0 0 .6rem; color: var(--green); }
.modal-content h2 { margin: 1rem 0 .4rem; color: var(--text); }
.modal-content p { margin: .4rem 0; color: var(--muted); }

body.modal-open { overflow: hidden; }

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.project-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .7rem;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
}
.img-ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: grid;
  place-items: center;
  color: #64748b;
}
.project-item figcaption {
  padding: .75rem .9rem;
  color: var(--muted);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .8rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.04);
}
.testimonial p { margin: 0 0 .6rem 0; }
.testimonial footer { color: var(--muted); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: start;
}
.form-shell {
  max-width: min(560px, 92vw);
  margin: 0 auto;
}
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: .9rem; }
.field label { display: block; font-weight: 500; margin-bottom: .35rem; }
.field input,
.field textarea {
  width: 100%;
  padding: .7rem .75rem;
  border-radius: .5rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
}
.form-status { margin-top: .5rem; color: var(--raspberry); min-height: 1.25rem; }
.link { color: var(--green); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: #fff;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-actions { display: inline-flex; align-items: center; gap: .9rem; }
.footer-link { color: var(--muted); text-decoration: none; }
.footer-link:hover { color: var(--green); text-decoration: underline; }
.social { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.social:hover { color: var(--green); }
.in-icon { display: block; }

/* Animations: reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.visible { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

/* Utilities */
.is-hidden { display: none !important; }
body.nav-open { overflow: hidden; }

/* No-JS note */
.nojs {
  width: 100%;
  text-align: center;
  background: #fff6f6;
  color: #7f1d1d;
  padding: .5rem 0;
  border-top: 1px solid #fca5a5;
  border-bottom: 1px solid #fca5a5;
}

/* Responsive */
@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; text-align: center; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: .6rem; }
  .portrait { width: clamp(220px, 38vw, 320px); }
}




@media (max-width: 720px) {
  .section { padding: var(--section-padding-tight) 0; }
  .hero-inner { padding: 4.5rem 0 3.25rem; }
  .hero .subheadline { margin-bottom: 1.45rem; }
  .header-right { gap: .65rem; }
}
@media (max-width: 540px) {
  .hero { min-height: 68vh; }
  .hero h1 { font-size: clamp(2.2rem, 8vw + 1rem, 3.2rem); }
  .hero .subheadline { font-size: 1rem; }
  .hero .btn { width: 100%; }
  .container { width: min(1080px, 94%); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { padding: clamp(1rem, 5vw, 1.35rem); }
}
@media (max-width: 720px) {
  .contact-details {
    grid-template-columns: 1fr;
  }
  .contact-item {
    justify-content: center;
    text-align: center;
  }
  .contact-item .contact-text {
    align-items: center;
  }
}


.about-text {
  text-align: justify;
  text-justify: inter-word;
}



.footer-copy {
  font-size: 1rem;
  color: var(--muted);
}
.footer-copy .footer-brand {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-right: .35rem;
}
@media (max-width: 640px) {
  .footer-copy .footer-brand {
    font-size: 1.3rem;
  }
}


.service-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}
.service-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}
.service-block h3 {
  margin: 0 0 .6rem;
}
.service-block p {
  margin: 0;
  color: var(--muted);
  text-align: justify;
}

.service-crosslinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.service-crosslinks .card {
  margin: 0;
}
.service-crosslinks .card .card-media {
  aspect-ratio: 16 / 9;
}
