/* === SECTION SOLUTIONS — CONSOLIDATED SITE STYLES === */
/* NOTE: Paths assume this file lives in /css/ and images live in /images/ */

/* ========== GLOBAL RESET & BASE ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; background-color: #fff; color: #111; line-height: 1.6; }

/***************************************************
   HEADER — Finalized Layout and Spacing
****************************************************/
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to right, #ffffffee, #f9f9f9ee);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  justify-content: center;
  min-height: 120px; /* visually thicker header bar */
}

.header-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.5rem 3rem 1.5rem 2rem; /* top/right/bottom/left — less padding on left */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

/* === LOGO & BRAND === */
.logo-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-link img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}
.logo-link img:hover { transform: scale(1.05); }

.logo-link span {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1;
}

/* === NAVIGATION === */
nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: inline-block;
}

.nav-links a {
  text-decoration: none;
  color: #111;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1;
  transition: color 0.25s ease, transform 0.2s ease;
}


  /* === Palette === */
 /* === Deep navy: #0E3B52 === */
 /* === Teal-green pastel: #3AA7A1 === */
/* === Light aqua: #D8F1F5 === */



.nav-links a:hover {
  color: #3AA7A1;
  transform: translateY(-1px);
}

.nav-links a.active {
  color: #3AA7A1;
  font-weight: 600;
}

/* === MOBILE === */
@media (max-width: 900px) {
  header { min-height: unset; }
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
  }

  .logo-link img { height: 48px; }
  .logo-link span { font-size: 1.6rem; }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1.5rem;
    padding-top: 0.75rem;
  }
}



/* ========== HOMEPAGE: HERO ========== */
.hero {
  background-image: url('../images/hero.jpg');
  background-size: cover; background-position: center;
  height: auto; min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.6);
}
.hero-content {
  position: relative; z-index: 1; color: #fff;
  padding: 0 2rem; max-width: 900px;
  opacity: 0; transform: translateY(20px); transition: all 1.2s ease-out;
}
.hero-content.revealed { opacity: 1; transform: translateY(0); }
.hero-content h1 { font-size: 5rem; font-weight: 800; margin-bottom: 1rem; }
.hero-content p { font-size: 1.75rem; font-style: italic; font-weight: 500; color: #e0e0e0; }

/* ========== HOMEPAGE: MAIN SECTIONS ========== */
.section {
  padding: 6rem 2rem 4rem; max-width: 1200px; margin: auto;
  display: flex; flex-direction: row; align-items: stretch; gap: 3rem; flex-wrap: wrap;
  border-top: 1px solid #e0e0e0; position: relative;
  background: linear-gradient(to bottom, #ffffff, #f9f9f9);
  box-shadow: inset 0 1px 0 #eaeaea; border-radius: 20px; overflow: hidden;
  opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out;
}
.section.revealed { opacity: 1; transform: translateY(0); }
.section:nth-child(even) { flex-direction: row-reverse; }
.section img {
  flex: 1 1 50%; max-width: 100%; object-fit: cover; height: auto;
  border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.15); transition: transform 0.5s ease;
}
.section img:hover { transform: scale(1.03); }
.section-content {
  flex: 1 1 45%; padding: 2rem; display: flex; flex-direction: column; justify-content: center; text-align: left;
}
.section-content h2 { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; color: #222; }
.section-content p { font-size: 1.3rem; line-height: 1.8; color: #444; }

/* News Preview Section (Homepage) */
.news-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 6rem 2rem;
  background: linear-gradient(to bottom right, #ffffff, #f9f9f9);
  border-radius: 20px;
  margin: 4rem auto;
  max-width: 1200px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.news-content {
  flex: 1;
  text-align: left;
}

.news-content h2 {
  font-size: 2rem;
  color: #111;
  margin-bottom: 1rem;
}

.news-content p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.news-content .button {
  display: inline-block;
  background: #0E3B52;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.news-content .button:hover {
  background: #3AA7A1;
  transform: translateY(-2px);
}

.news-image {
  flex: 1;
  text-align: right;
}

.news-image img {
  width: 100%;
  max-width: 550px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .news-preview {
    flex-direction: column-reverse;
    text-align: center;
  }

  .news-image img {
    max-width: 100%;
  }

  .news-content {
    text-align: center;
  }
}

/* ========== HOMEPAGE: CARDS ========== */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem; justify-content: center; align-items: stretch;
}
.card {
  background: linear-gradient(145deg, #ffffff, #f2f2f2);
  border-radius: 10px; padding: 2rem; text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 10px 24px rgba(0,0,0,0.2); }
.card h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.75rem; }
.card p { font-size: 1.05rem; color: #333; }

/* ========== FOOTER (Legacy version for backward compatibility) ========== */
footer {
  background: #111; color: #eee; text-align: center;
  padding: 3rem 1rem; font-size: 0.95rem; letter-spacing: 0.5px; line-height: 1.8;
}
footer p { margin-bottom: 0.5rem; }
footer a { color: #ccc; text-decoration: none; }
footer a:hover { color: #fff; }

/* ========== RESPONSIVE (HOMEPAGE) ========== */
@media (max-width: 768px) {
  .section { flex-direction: column; }
  .section:nth-child(even) { flex-direction: column; }
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1.25rem; }
}

/* ===================================================== */
/* ========== SERVICES PAGE (SCOPED UNDER .services-page) */
/* ===================================================== */

.services-page {
  background: #fff;
  color: #111;
  font-family: 'Montserrat', sans-serif;
}

/* ============================= */
/*        HERO SECTION           */
/* ============================= */

/* --- What We Do Hero (Animated, matching News/Contact) --- */

/* --- Hero Banner (Animated, matching Contact Page) --- */
.services-hero {
  position: relative;
  width: 100%;
  height: 55vh;
  background: url('../images/services-hero-laptop.jpg') center/cover no-repeat;
  text-align: center;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  padding: calc(8rem + 80px) 2rem 8rem;
}

/* smooth translucent overlay similar to contact-hero */
.services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.4)
  ); /* top darker, bottom lighter */
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease-out, transform 1.5s ease-out;
  z-index: 0;
}

.services-hero.visible::before {
  opacity: 1;
  transform: scale(1);
}

/* hero text animation */
.services-hero h1,
.services-hero p {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s ease-out;
}

.services-hero.visible h1,
.services-hero.visible p {
  opacity: 1;
  transform: translateY(0);
}

/* preserve original sizing */
.services-hero h1 {
  font-size: 4.0rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.services-hero p {
  font-size: 2.0rem;
  opacity: 0.9;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* overlay wrapper */
.services-hero .hero-overlay {
  position: relative;
  z-index: 2;
}

/* responsive adjustment */
@media (max-width: 768px) {
  .services-hero {
    height: 40vh;
    padding: calc(6rem + 60px) 1.5rem 6rem;
  }

  .services-hero h1 {
    font-size: 2rem;
  }

  .services-hero p {
    font-size: 1rem;
  }
}

/* ===============================
=============================== */
/* ===============================
=============================== */
/* ============================= */
/*        CONTENT BLOCKS         */
/* ============================= */

/* base block styling */
.whatwedo-block {
  background: #fff;
  padding: 6rem 2rem;
  transition: all 0.3s ease;
}
.whatwedo-block.alt-bg {
  background: #f9f9f9;
}
.whatwedo-block:hover {
  background: #f5f7fa;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* container for block content */
.whatwedo-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* layout reversal for alternating sections */
.whatwedo-container.reverse {
  flex-direction: row-reverse;
}

/* responsive stacking */
@media (max-width: 900px) {
 .whatwedo-container {
    flex-direction: column;
    text-align: center;
  }
}
/***************************************************
****************************************************/


/* --- CONTACT PAGE FIXES (layout & header spacing) --- */
.contact-page header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to right, #ffffffee, #f9f9f9ee);
  z-index: 1000;
}

/***************************************************
   CONTACT HERO — Enhanced Design
****************************************************/
.contact-hero {
  position: relative;
  background: url('../images/contactbanner.jpg') center/cover no-repeat;
  text-align: center;
  color: #fff;
  margin-top: 0;
  padding: calc(10rem + 90px) 2rem 10rem; /* increased height */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* smooth dark overlay */
.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.4)
  ); /* top darker, bottom lighter */
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease-out, transform 1.5s ease-out;
  z-index: 0;
}

.contact-hero.visible::before {
  opacity: 1;
  transform: scale(1);
}

/* hero content */
.contact-hero h1,
.contact-hero p {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s ease-out;
}

.contact-hero.visible h1,
.contact-hero.visible p {
  opacity: 1;
  transform: translateY(0);
}

/* larger typography */
.contact-hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.contact-hero p {
  font-size: 1.8rem;
  font-weight: 400;
  color: #f0f0f0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  max-width: 700px;
  line-height: 1.6;
}

/* responsive adjustment */
@media (max-width: 768px) {
  .contact-hero {
    padding: calc(8rem + 80px) 1.5rem 8rem;
  }

  .contact-hero h1 {
    font-size: 2.6rem;
  }

  .contact-hero p {
    font-size: 1.2rem;
  }
}
.contact-hero.visible h1,
.contact-hero.visible p { opacity: 1; transform: translateY(0); }

.contact-page .contact-section { padding-top: 2rem; padding-bottom: 6rem; }
.contact-page .contact-card {
  max-width: 700px;
  margin: 2rem auto;
  text-align: center;
}

/* LinkedIn badge alignment */
.contact-page .badge-base {
  display: inline-block;
  width: auto;
  margin-bottom: 1.5rem;
}

/* CONTACT PAGE — TWO-COLUMN LAYOUT */
.contact-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 6rem 2rem 8rem;
  background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  max-width: 1100px;
  width: 100%;
  align-items: flex-start;
}

.contact-left, .contact-right { flex: 1 1 450px; }

/* LEFT SIDE (Profile + Buttons) */
.contact-left {
  text-align: center;
  background: #fff;
  border-radius: 20px;
  padding: 3rem 2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.profile-frame { position: relative; display: inline-block; margin-bottom: 1.5rem; }
.profile {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.contact-left h2 { font-size: 1.8rem; font-weight: 700; color: #111; margin-top: 1rem; }
.contact-left h3 { font-size: 1.05rem; font-weight: 500; color: #333; margin-bottom: 2rem; line-height: 1.6; }
.linkedin- {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #0E3B52; color: #fff; font-weight: 600; text-decoration: none;
  padding: 0.8rem 1.6rem; border-radius: 50px; transition: background 0.3s ease;
}


/* LinkedIn Section */

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #0E3B52;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2; /* ensures the button sits above any background artifacts */
  transition: background 0.3s ease, transform 0.2s ease;
}

.linkedin-btn:hover {
  background: #3AA7A1;
  transform: translateY(-2px);
}

.linkedin-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex-shrink: 0;
   position: relative;
  z-index: 3;
}

/* end of LinkedIn section*/


.contact-note { margin-top: 2rem; font-size: 1rem; color: #333; }
.email-btn {
  display: inline-block; margin-top: 1rem; background: #0E3B52; color: #fff;
  font-weight: 600; text-decoration: none; padding: 0.8rem 1.6rem;
  border-radius: 50px; transition: background 0.3s ease;
}
.email-btn:hover { background: #3AA7A1; }

/* RIGHT SIDE (About text) */
.contact-right { padding: 2rem 0; }
.contact-right h2 { font-size: 2rem; font-weight: 700; color: #111; margin-bottom: 1rem; }
.contact-right p { font-size: 1.2rem; line-height: 1.8; color: #444; }

/* Responsive stacking */
@media (max-width: 900px) {
  .contact-container { flex-direction: column; align-items: center; text-align: center; }
  .contact-right { padding: 3rem 0 0; }
}


/* ===============================
   NEWS & REFLECTIONS PAGE STYLING
   =============================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Hero Banner (Animated, matching Contact Page) --- */
.news-hero {
  position: relative;
  width: 100%;
  height: 55vh;
  background: url('../images/news-hero.jpg') center/cover no-repeat;
  text-align: center;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  padding: calc(8rem + 80px) 2rem 8rem;
}

/* smooth translucent overlay similar to contact-hero */
.news-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.4)
  ); /* top darker, bottom lighter */
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease-out, transform 1.5s ease-out;
  z-index: 0;
}

.news-hero.visible::before {
  opacity: 1;
  transform: scale(1);
}

/* hero text animation */
.news-hero h1,
.news-hero p {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s ease-out;
}

.news-hero.visible h1,
.news-hero.visible p {
  opacity: 1;
  transform: translateY(0);
}

/* preserve original sizing */
.news-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.news-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* overlay wrapper */
.news-hero .hero-overlay {
  position: relative;
  z-index: 2;
}

/* responsive adjustment */
@media (max-width: 768px) {
  .news-hero {
    height: 40vh;
    padding: calc(6rem + 60px) 1.5rem 6rem;
  }

  .news-hero h1 {
    font-size: 2rem;
  }

  .news-hero p {
    font-size: 1rem;
  }
}

/* ===============================
=============================== */
/* ===============================
=============================== */

/* --- News & Reflections Section --- */
#news-reflections {
  background: #fafafa;
  padding: 80px 0;
}

#news-reflections .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  color: #111;
}

.news-card-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.news-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  width: 320px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.news-card-body {
  padding: 20px;
}

.news-card-body h3 {
  font-size: 1.1rem;
  color: #111;
  margin-bottom: 10px;
}

.news-card-body p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 15px;
}

.btn-linkedin {
  display: inline-block;
  background: #0E3B52;
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-linkedin:hover {
  background: #3AA7A1;
  transform: translateY(-2px);
}

#news-reflections.section {
  opacity: 1 !important;
  transform: none !important;
}
/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .news-hero { height: 40vh; }
  .news-hero h1 { font-size: 2rem; }
  .news-hero p { font-size: 1rem; }
  #news-reflections { padding: 60px 1.5rem; }
  .news-card { width: 100%; }
}


/*--------------------------------------------------
/*--------------------------------------------------
/*--------------------------------------------------

/* ======= FOOTER (New unified) ======= */
footer {
  background: linear-gradient(to top, #000, #0d2233);
  color: #fff;
  padding: 4rem 2rem 2rem;
  text-align: center;
  border-top: 4px solid #18a999; /* brand accent */
  font-family: 'Montserrat', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-column { flex: 1 1 250px; min-width: 250px; }
.footer-column h3 { font-size: 1.2rem; margin-bottom: 1rem; color: #fff; }
.footer-column p { font-size: 0.95rem; color: #ddd; line-height: 1.6; }

.footer-column a {
  color: #3AA7A1;
  text-decoration: none;
}

.footer-column a:hover { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #ccc;
}

@media (max-width: 768px) {
  .footer-container { flex-direction: column; text-align: center; }
}

/* Universal Font Enforcement */
body, header, footer, nav, ul, li, a, span, p, h1, h2, h3 {
  font-family: 'Montserrat', sans-serif !important;
}

/* ============================================================
   MOBILE OPTIMIZATION PATCH — Section Solutions (drop-in)
   Place at the very end of the CSS to override earlier rules.
   ============================================================ */

/* 1) Modern viewport & safe-area hygiene (prevents iOS vh bugs) */
:root {
  --space-0: 0.5rem;
  --space-1: 1rem;
  --space-2: 1.5rem;
  --space-3: 2rem;
  --brand-dark: #0E3B52;
  --brand-accent: #3AA7A1;
}
html, body { min-height: 100%; }
.hero,
.news-hero,
.services-hero,
.contact-hero {
  /* prefer dynamic viewport on mobile to avoid URL bar jumpiness */
  min-height: 100dvh;
}
@supports not (height: 100dvh) {
  .hero,
  .news-hero,
  .services-hero,
  .contact-hero { min-height: 100vh; }
}

/* 2) Global type scales using clamp() for fluid resizing */
h1, .hero-content h1,
.contact-hero h1,
.news-hero h1,
.services-hero h1 {
  font-size: clamp(1.8rem, 2.2rem + 2.5vw, 4rem);
  line-height: 1.15;
}
h2, .section-content h2,
.contact-right h2,
.news-content h2 {
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2.25rem);
  line-height: 1.25;
}
p, .section-content p,
.news-content p,
.contact-right p {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
}

/* 3) Fixed header: ensure content never hides underneath */
main, .container, .section, .contact-section, .news-preview {
  /* add top padding only on small screens since header is fixed */
  scroll-margin-top: 120px;
}
@media (max-width: 900px) {
  body { padding-top: 120px; }
  header { position: fixed; }
}

/* 4) Navigation: wrap cleanly; bigger tap targets */
@media (max-width: 900px) {
  .header-container { gap: var(--space-1); }
  .nav-links {
    gap: var(--space-1);
    row-gap: var(--space-0);
    flex-wrap: wrap;
  }
  .nav-links a {
    padding: 0.6rem 0.4rem; /* finger-friendly without looking like buttons */
    font-size: 1rem;
  }
}

/* 5) Hero sections: tighten padding on phones to avoid “squish” */
@media (max-width: 768px) {
  .hero-content { padding: 0 var(--space-1); }
  .contact-hero,
  .news-hero,
  .services-hero {
    padding: calc(5rem + 56px) var(--space-1) 5rem; /* shorter but roomy */
    background-position: center top;
  }
}

/* 6) Home sections: enforce single-column and sensible media sizing */
@media (max-width: 900px) {
  .section { 
    flex-direction: column !important;
    padding: 3.5rem var(--space-1) 3rem;
    gap: var(--space-2);
    border-radius: 16px;
  }
  .section img {
    width: 100%;
    height: auto;          /* stop fixed-height stretching */
    max-height: 55vh;      /* avoids mega-tall images on phones */
  }
  .section-content { padding: 0; text-align: left; }
}

/* 7) News preview: stack and scale */
@media (max-width: 900px) {
  .news-preview {
    gap: var(--space-2);
    padding: 3rem var(--space-1);
  }
  .news-image img { max-width: 100%; height: auto; }
}

/* 8) Cards: snap to 1 column on narrow screens */
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; gap: 1.25rem; }
  .card { padding: 1.25rem; }
}

/* 9) Contact page: fix badge/button/icon alignment & stacking */
.contact-page .badge-base { margin-bottom: 1rem; }
.linkedin-btn {
  min-height: 44px; /* accessibility */
  gap: 0.5rem;
}
.linkedin-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
}
@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
    gap: var(--space-2);
    padding: 0 var(--space-1);
  }
  .contact-left, .contact-right { 
    flex: 1 1 auto;
    width: 100%;
  }
  .contact-left { padding: 2rem 1.25rem; }
  .profile { width: 140px; height: 140px; }
}

/* 10) Footer: avoid cramped columns */
@media (max-width: 900px) {
  .footer-container {
    gap: var(--space-1);
  }
  .footer-column { min-width: 0; }
}

/* 11) Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
