/* ==========================================================
   GES Constructions — shared stylesheet
   White + light gray editorial layout matching live site
   ========================================================== */

:root {
  --bg:          #FFFFFF;
  --bg-alt:      #EAEAEA;
  --bg-soft:     #F4F4F4;
  --bg-dark:     #2D2D2D;
  --text:        #1A1A1A;
  --text-mid:    #4A4A4A;
  --text-light:  #8A8A8A;
  --line:        rgba(0,0,0,0.10);
  --line-strong: rgba(0,0,0,0.20);
  --font-display: 'Fraunces', Georgia, serif;
  --font-sans:    'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm:    4px;
  --radius:       8px;
  --ease:         cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--text); color: #fff; }

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ======== LAYOUT ======== */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

.section { padding: clamp(60px, 8vw, 120px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }

/* ======== TYPOGRAPHY ======== */
.h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--text);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
}
.h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
}

p { color: var(--text-mid); font-size: 0.98rem; line-height: 1.7; }

/* ======== NAV ======== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
@media (max-width: 640px) { .nav-inner { padding: 14px 20px; } }

/* ======== LOGO ======== */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  max-height: 48px;          /* safety cap on the wrapper */
  line-height: 0;            /* prevents inline-image baseline gap */
}
.logo-img {
  height: 38px;              /* the actual rendered size */
  width: auto;
  max-width: 220px;          /* safety cap so it can't go super wide */
  display: block;
  object-fit: contain;
}

/* Mobile: smaller logo */
@media (max-width: 640px) {
  .logo { max-height: 40px; }
  .logo-img { height: 32px; max-width: 180px; }
}

/* Optional: invert/recolor on dark backgrounds if your logo is black */
/* .nav.scrolled .logo-img { filter: invert(1); } */

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(28px, 4vw, 56px);
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  padding: 6px 0;
  position: relative;
  transition: opacity 0.2s var(--ease);
}
.nav-links a:hover { opacity: 0.65; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--text);
}

.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s var(--ease);
}
.lang-switch:hover { border-color: var(--line-strong); }
.lang-flag { width: 22px; height: 14px; border-radius: 2px; display: block; }
.lang-arrow { width: 8px; height: 8px; }

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  list-style: none;
  padding: 4px 0;
  margin: 0;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.lang-switch:hover .lang-switch-menu,
.lang-switch:focus-within .lang-switch-menu,
.lang-switch.is-open .lang-switch-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-switch-menu li { list-style: none; }
.lang-switch-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
}
.lang-switch-menu li a:hover { background: var(--bg-soft); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  transform: translateY(-3.25px) rotate(-45deg);
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 32px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    border-top: 1px solid var(--line);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.4rem; font-family: var(--font-display); font-weight: 300; }
}

/* ======== BUTTONS ======== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn-ghost:hover { background: var(--text); color: #fff; }

/* ======== HERO ======== */
.hero {
  background: var(--bg-alt);
  padding: clamp(50px, 7vw, 90px) 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-copy { max-width: 560px; }
.hero-copy .intro {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 18px;
  color: var(--text-mid);
}
.hero-copy .intro strong {
  font-weight: 700;
  color: var(--text);
}

.hero-heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  line-height: 1.15;
  margin: 32px 0 20px;
  color: var(--text);
  text-align: center;
}

.expertise-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 32px;
  align-items: flex-start;
}
.expertise-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.96rem;
  color: var(--text);
}
.expertise-list .check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--text);
}

.hero-contact {
  margin-top: 28px;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text);
}
.hero-contact .label { font-weight: 700; }
.hero-contact a { text-decoration: underline; text-underline-offset: 2px; }
.hero-contact .ic { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* ======== HERO CAROUSEL ======== */
.hero-carousel {
  position: relative;
  width: 100%;
  min-height: 420px;
  height: 100%;
  overflow: hidden;
  background: #ddd;
  align-self: stretch;
}
@media (max-width: 880px) {
  .hero-carousel { aspect-ratio: 4/3; height: auto; min-height: 0; }
  .hero-carousel .carousel-slide img { object-position: center 35%; }
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  pointer-events: none;
}
.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.25s var(--ease), background 0.25s var(--ease);
  z-index: 2;
}
.hero-carousel:hover .carousel-nav { opacity: 1; }
.carousel-nav:hover { background: #fff; }
.carousel-nav--prev { left: 14px; }
.carousel-nav--next { right: 14px; }

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
.carousel-dot.active { background: #fff; }

/* ======== PAGE HEAD ======== */
.page-head {
  padding: clamp(70px, 9vw, 130px) 0 clamp(40px, 5vw, 70px);
  background: var(--bg);
  text-align: center;
}
.page-head .h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  margin-bottom: 16px;
}
.page-head .lede {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.02rem;
  color: var(--text-mid);
}

/* ======== SECTION HEADING (centered serif) ======== */
.section-title {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-title .h2 {
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
}

/* ======== PHILOSOPHY ======== */
.philosophy {
  background: var(--bg);
  text-align: center;
}
.philosophy-inner { max-width: 760px; margin: 0 auto; }
.philosophy h2 { margin-bottom: 36px; }
.philosophy p {
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 22px;
  color: var(--text-mid);
}
.philosophy p strong { color: var(--text); font-weight: 700; }

/* ======== QUOTE / CTA SECTION ======== */
.quote-cta {
  background: var(--bg);
  text-align: center;
  padding: clamp(60px, 8vw, 110px) 0;
}
.quote-cta blockquote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 4.2vw, 3rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 980px;
  margin: 0 auto 36px;
  color: var(--text);
}
.quote-cta .sub {
  color: var(--text-mid);
  font-size: 1rem;
  margin-bottom: 36px;
}

/* ======== SERVICES PAGE ======== */
.services-intro {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.services-intro .undertakes {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--text);
  font-weight: 600;
}
.services-intro ul {
  list-style: disc;
  text-align: left;
  display: inline-block;
  padding-left: 22px;
  color: var(--text);
}
.services-intro ul li {
  font-size: 1rem;
  line-height: 2;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 5vw, 72px);
}
@media (max-width: 740px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-block {
  display: flex;
  flex-direction: column;
}
.service-block-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #ddd;
  margin-bottom: 22px;
}
.service-block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-block:hover .service-block-img img { transform: scale(1.03); }
.service-block h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text);
}
.service-block p {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-mid);
}

/* ======== PROJECTS PAGE ======== */
.projects-section {
  background: var(--bg-alt);
  padding: clamp(60px, 8vw, 110px) 0;
}
.projects-section + .projects-section { padding-top: 0; }
.projects-section .section-title .h2 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 4vw, 56px);
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 740px) {
  .projects-grid { grid-template-columns: 1fr; max-width: 480px; }
}
.project-carousel {
  display: flex;
  flex-direction: column;
}
.project-carousel-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #ccc;
}
.project-carousel-frame .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-carousel-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--text);
}
.project-carousel .carousel-dots { bottom: 12px; }
.project-carousel .carousel-nav { width: 32px; height: 32px; }

/* ======== TEAM PAGE ======== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 640px; } }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; max-width: 320px; } }

.team-card {
  display: flex;
  flex-direction: column;
}
.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #ddd;
  margin-bottom: 14px;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-name {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}
.team-role {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.team-card .team-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d8d8d8, #efefef);
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 4rem;
}

/* ======== CONTACT PAGE ======== */
.contact-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: #1a1a1a;
}
.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('images/service-design.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
  z-index: 0;
}
.contact-hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: 720px;
}
.contact-hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.05;
  margin-bottom: 16px;
  color: #fff;
}
.contact-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 18px;
  color: var(--text);
}
.contact-info > p {
  margin-bottom: 28px;
  color: var(--text-mid);
}
.contact-info-block { margin-bottom: 24px; }
.contact-info-block .label {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.contact-info-block .value {
  color: var(--text-mid);
  font-size: 0.95rem;
}
.contact-info-block .value a { text-decoration: underline; text-underline-offset: 2px; }

.contact-map {
  width: 100%;
  height: 280px;
  margin-top: 24px;
  background: var(--bg-alt);
  border: 0;
  border-radius: var(--radius-sm);
}

/* ======== FORM ======== */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease);
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--text);
}
.form-textarea { min-height: 130px; resize: vertical; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-light); }

.form-submit {
  align-self: flex-start;
  background: #2D6CDF;
  color: #fff;
  margin-top: 20px;
  border-radius: 999px;
  padding: 12px 28px;
  border: 0;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.form-submit:hover { background: #1f56b8; transform: translateY(-1px); }

.form-success {
  display: none;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  text-align: center;
}
.form.submitted .form-content { display: none; }
.form.submitted .form-success { display: block; }
.form-note { font-size: 0.85rem; color: var(--text-light); margin-top: 8px; }

/* ======== FOOTER ======== */
.footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 64px 0 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
  max-width: 880px;
  margin: 0 auto 48px;
}
@media (max-width: 740px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-col h5 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: #fff;
}
.footer-col p, .footer-col li {
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}
.footer-col ul { list-style: none; }
.footer-col a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-col a:hover { color: #fff; }

.footer-bot {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
@media (max-width: 740px) {
  .footer-bot { grid-template-columns: 1fr; text-align: center; }
}
.footer-bot .copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-bot .powered {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: center;
}
.footer-social {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
@media (max-width: 740px) { .footer-social { justify-content: center; } }
.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.footer-social a:hover { background: #fff; color: var(--bg-dark); }
.footer-social svg { width: 16px; height: 16px; }

/* ======== REVEAL ANIMATION ======== */
/* If JS doesn't run (or hasn't yet), no-js modifier shows content immediately */
.no-js .reveal,
.no-js .reveal-stagger > * { opacity: 1 !important; transform: none !important; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ==========================================================
   MOBILE & ACCESSIBILITY POLISH
   ========================================================== */

/* Disable iOS auto-zoom on form focus (input font-size must be ≥ 16px) */
.form-input, .form-textarea { font-size: 16px; }

/* Larger, more reliable touch targets on small screens */
@media (max-width: 880px) {
  .lang-switch { padding: 10px 10px; min-height: 44px; }
  .nav-toggle  { width: 44px; height: 44px; }
  .nav-links a { padding: 14px 0; }
  .btn         { padding: 16px 30px; min-height: 48px; }
  .form-submit { min-height: 48px; padding: 14px 28px; }
  .carousel-dot { width: 12px; height: 12px; }
  .carousel-nav { width: 44px; height: 44px; }
  .footer-social a { width: 44px; height: 44px; }
}

/* Cleaner mobile typography */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .h1 { font-size: clamp(2.1rem, 9vw, 3.2rem); line-height: 1.08; }
  .h2 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .hero { padding: 32px 0; }
  .hero-grid { gap: 24px; }
  .hero-copy { max-width: 100%; }
  .hero-heading { font-size: 1.4rem; margin: 22px 0 14px; }
  .hero-contact { font-size: 0.9rem; line-height: 1.7; }
  .section { padding: 56px 0; }
  .page-head { padding: 56px 0 28px; }
  .page-head .h1 { font-size: clamp(2.2rem, 10vw, 3.6rem); }
  .quote-cta blockquote { font-size: clamp(1.4rem, 6vw, 2rem); }
  .footer { padding: 44px 0 22px; }
  .footer-grid { gap: 28px; margin-bottom: 32px; }
  .contact-hero { min-height: 280px; }
  .contact-hero h1 { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .services-intro { text-align: left; }
  .services-intro ul { display: block; padding-left: 22px; }
  .footer-social a { width: 40px; height: 40px; }
}

/* Project carousel on phones — shrink chrome a bit */
@media (max-width: 640px) {
  .project-carousel-frame { aspect-ratio: 4/5; }
  .project-carousel .carousel-nav { width: 36px; height: 36px; opacity: 0.85; }
}

/* Tap-target-friendly link colors stay accessible */
a:focus-visible,
button:focus-visible,
.lang-switch:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Suppress the iOS gray tap flash */
* { -webkit-tap-highlight-color: rgba(0,0,0,0); }

/* Smooth scrolling already on html; respect motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-slide { transition: none !important; }
}

/* Make sure the map iframe behaves on small screens */
.contact-map { aspect-ratio: 4/3; height: auto; }
@media (max-width: 880px) { .contact-map { aspect-ratio: 3/2; } }

/* Native lazy loading helps; also tell Chrome to async-decode */

/* Print stylesheet — basic legibility for printed pages */
@media print {
  .nav, .nav-toggle, .footer-social, .carousel-nav, .carousel-dots, .form-submit { display: none !important; }
  body { background: #fff; color: #000; }
  .hero-carousel { aspect-ratio: 4/3; min-height: 0; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}


/* ==========================================================
   Cookie Consent Banner
   ========================================================== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-dark);
  color: #fff;
  padding: 18px 22px;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  z-index: 9999;
  font-family: var(--font-sans);
  font-size: .9rem;
  line-height: 1.55;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-banner p { margin: 0; color: rgba(255,255,255,.85); }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner a:hover { opacity: .85; }
.cookie-banner-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.cookie-btn {
  padding: 9px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.cookie-btn-primary {
  background: #fff;
  color: var(--text);
}
.cookie-btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.cookie-btn:hover { opacity: .85; }
.cookie-btn:active { transform: translateY(1px); }
@media (min-width: 640px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cookie-banner-actions { flex-shrink: 0; }
}

/* ==========================================================
   Footer privacy link
   ========================================================== */
.footer-bot .footer-link {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer-bot .footer-link:hover { color: #fff; }

/* ==========================================================
   Privacy / Legal page
   ========================================================== */
.legal-hero {
  padding: 140px 0 60px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.legal-hero .wrap { max-width: 900px; }
.legal-hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 14px;
}
.legal-hero .lead {
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 640px;
}
.legal-hero .meta {
  margin-top: 18px;
  font-size: .85rem;
  color: var(--text-light);
}

.legal-content {
  padding: 60px 0 90px;
}
.legal-content .wrap { max-width: 780px; }
.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
  margin: 42px 0 14px;
  color: var(--text);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 26px 0 8px;
}
.legal-content p,
.legal-content li {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal-content ul {
  padding-left: 22px;
  margin-bottom: 18px;
}
.legal-content li { margin-bottom: 6px; }
.legal-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover { color: var(--text-mid); }
.legal-content strong { color: var(--text); font-weight: 600; }
