/* ============================================================
   NORTH WEST PARTNERS — Main Stylesheet
   Colours: Deep Charcoal #1a1a1a, Gold #b8952a, Warm White #f8f5ef
   Fonts: Cormorant Garamond (headings) / Inter (body)
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --gold:         #b8952a;
  --gold-light:   #d4af4e;
  --gold-dark:    #8a6e1e;
  --charcoal:     #1a1a1a;
  --charcoal-mid: #2a2a2a;
  --charcoal-soft:#333333;
  --slate:        #3a3f4b;
  --warm-white:   #f8f5ef;
  --off-white:    #f0ece3;
  --light-grey:   #e8e4da;
  --mid-grey:     #9a9590;
  --text-dark:    #1a1a1a;
  --text-body:    #4a4540;
  --text-light:   #c8c2b8;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;

  --container:   1400px;
  --section-pad: 100px;
  --radius:      4px;
  --radius-lg:   8px;

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:   0 2px 12px rgba(0,0,0,.08);
  --shadow-md:   0 8px 32px rgba(0,0,0,.12);
  --shadow-lg:   0 16px 64px rgba(0,0,0,.18);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--warm-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-label-gold { color: var(--gold-light); }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}
.section-title-light { color: var(--warm-white); }

.section-intro {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}
.section-intro-light { color: var(--text-light); }

.body-text {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 1.1rem;
}
.body-text-light { color: var(--text-light); }
.body-text strong { color: var(--charcoal); font-weight: 600; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-pad) 0;
}
.section-light  { background: var(--warm-white); }
.section-mid    { background: var(--slate); }
.section-dark   { background: var(--charcoal); }

/* Section with side image panel */
.section-has-image {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  padding: 0;
  overflow: hidden;
  min-height: 600px;
}
.section-image-panel {
  position: relative;
  overflow: hidden;
}
.section-panel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s var(--ease);
}
.section-has-image:hover .section-panel-img {
  transform: scale(1.04);
}
.section-has-image .container {
  padding: var(--section-pad) 3rem var(--section-pad) 3.5rem;
  max-width: none;
  width: 100%;
}

/* Section with photo background */
.section-photo-bg {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed;
}
.section-photo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(40, 46, 58, 0.88);
  z-index: 0;
}
.section-photo-bg .container {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
}
.btn-primary {
  background: var(--gold);
  color: var(--charcoal);
  border: 2px solid var(--gold);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,149,42,.35);
  outline: none;
}
.btn-full { width: 100%; justify-content: center; }
.btn-outline-gold {
  background: transparent;
  color: var(--gold-light);
  border: 2px solid var(--gold);
}
.btn-outline-gold:hover, .btn-outline-gold:focus-visible {
  background: var(--gold);
  color: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,149,42,.3);
  outline: none;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.8rem 0;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.scrolled {
  background: rgba(26, 26, 26, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.4rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.nav-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img {
  height: auto;
  width: 240px;
  margin: -14px -10px;
  transition: width 0.35s var(--ease);
}
.scrolled .logo-img { width: 240px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: rgba(248, 245, 239, 0.85);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link:focus-visible {
  color: var(--gold-light);
  outline: none;
}
.nav-cta {
  background: var(--gold);
  color: var(--charcoal) !important;
  margin-left: 0.8rem;
  padding: 0.5rem 1.4rem;
}
.nav-cta:hover {
  background: var(--gold-light);
  color: var(--charcoal) !important;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--warm-white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--charcoal);
  overflow: hidden;
}

/* Hero background photo */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-manchester-confirmed.jpg');
  background-size: cover;
  background-position: center 60%;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero-bg.loaded { transform: scale(1); }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(184,149,42,.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,20,20,0.72) 0%,
    rgba(20,20,20,0.55) 50%,
    rgba(20,20,20,0.75) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: 6rem 2rem 4rem;
  max-width: 800px;
}

.hero-logo-wrap {
  margin-bottom: 0.5rem;
  animation: fadeInDown 0.9s var(--ease) both;
}
.hero-logo {
  height: auto;
  width: min(280px, 65vw);
  max-width: 280px;
  /* Remove white background — only gold mark & light text remain visible on dark hero */
  mix-blend-mode: lighten;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--warm-white);
  letter-spacing: 0.02em;
  line-height: 1.3;
  animation: fadeInUp 0.9s 0.15s var(--ease) both;
}

.hero-divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  animation: scaleIn 0.6s 0.3s var(--ease) both;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  animation: fadeInUp 0.9s 0.35s var(--ease) both;
}

.hero-btn {
  animation: fadeInUp 0.9s 0.5s var(--ease) both;
  margin-top: 0.5rem;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(248,245,239,.5);
  font-size: 1.2rem;
  animation: bounce 2s 1.5s ease-in-out infinite;
  z-index: 3;
  transition: color 0.2s;
}
.hero-scroll-cue:hover { color: var(--gold-light); }

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.5rem;
  border-left: 3px solid var(--gold);
  background: var(--off-white);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  transition: transform 0.2s var(--ease);
}
.pillar:hover { transform: translateX(4px); }

.pillar-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--charcoal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.pillar-text {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2px;
}

.service-card {
  background: var(--charcoal-mid);
  padding: 2.5rem 2rem;
  border-top: 3px solid transparent;
  transition: border-color 0.3s, background 0.3s, transform 0.25s var(--ease);
}
.service-card:hover {
  background: var(--charcoal-soft);
  border-top-color: var(--gold);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--warm-white);
  margin-bottom: 0.75rem;
}

.service-text {
  font-size: 0.9rem;
  color: rgba(248,245,239,.65);
  line-height: 1.7;
}

/* ---------- CLIENTS ---------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.client-card {
  background: var(--off-white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.client-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.client-card-featured {
  background: var(--charcoal);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.client-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--gold);
  color: var(--charcoal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.client-card-featured .client-icon {
  background: var(--gold);
}

.client-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}
.client-card-featured .client-title { color: var(--warm-white); }

.client-list {
  text-align: left;
  display: inline-block;
}
.client-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.7;
}
.client-card-featured .client-list li { color: var(--text-light); }
.client-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* ---------- ASSET TYPES ---------- */
.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.asset-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.asset-item:hover {
  background: rgba(184,149,42,.1);
  border-color: var(--gold);
  transform: translateY(-4px);
}

.asset-icon {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.asset-label {
  font-size: 0.95rem;
  color: var(--warm-white);
  font-weight: 500;
  line-height: 1.5;
}
.asset-sub {
  font-size: 0.8rem;
  color: rgba(248,245,239,.5);
  font-weight: 400;
}

/* ---------- OUR APPROACH ---------- */
.approach-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: flex-start;
}

.approach-steps { display: flex; flex-direction: column; }

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--gold);
  color: var(--charcoal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  padding-top: 0.6rem;
}

.step-text {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.75;
}

.step-connector {
  width: 2px;
  height: 40px;
  background: var(--gold);
  margin-left: 27px;
  opacity: 0.4;
}

.approach-values {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border-left: 4px solid var(--gold);
}

.values-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-grey);
  font-size: 0.95rem;
  color: var(--text-body);
}
.value-item:last-of-type { border-bottom: none; }
.value-item i { color: var(--gold); font-size: 1rem; flex-shrink: 0; }

.why-box {
  margin-top: 2rem;
  background: var(--charcoal);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.why-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--warm-white);
  margin-bottom: 1rem;
}

.why-list { display: flex; flex-direction: column; gap: 0.65rem; }
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: rgba(248,245,239,.8);
  line-height: 1.5;
}
.why-list li i { color: var(--gold); flex-shrink: 0; margin-top: 0.2em; }

/* ---------- CONTACT ---------- */
.contact-section { padding-bottom: 0; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: flex-start;
}

.contact-intro { padding-top: 2rem; }

.contact-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.95rem;
  color: var(--gold-light);
  transition: color 0.2s;
}
.contact-link:hover { color: var(--warm-white); }
.contact-link i { font-size: 1.1rem; color: var(--gold); }

/* Contact Form */
.contact-form-wrap {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248,245,239,.7);
  margin-bottom: 0.5rem;
}
.form-label span { color: var(--gold); }

.form-input {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--warm-white);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-input::placeholder { color: rgba(248,245,239,.3); }
.form-input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,.1);
}
.form-input.error { border-color: #e05c5c; }

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23b8952a' stroke-width='2'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}
.form-select option { background: var(--charcoal); color: var(--warm-white); }

.form-textarea { resize: vertical; min-height: 130px; }

.form-note {
  font-size: 0.78rem;
  color: rgba(248,245,239,.4);
  text-align: center;
  margin-top: 1rem;
}

.form-success, .form-error {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.form-success { background: rgba(80,200,120,.15); color: #7bce9e; border: 1px solid rgba(80,200,120,.25); }
.form-error   { background: rgba(224,92,92,.15);  color: #e88; border: 1px solid rgba(224,92,92,.25); }
.form-success[hidden], .form-error[hidden] { display: none; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.footer-logo {
  width: 240px;
  height: auto;
  margin: -10px -10px 0.75rem;
}

.footer-strapline {
  font-size: 0.92rem;
  color: rgba(248,245,239,.5);
  line-height: 1.7;
  max-width: 340px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-nav a {
  font-size: 0.88rem;
  color: rgba(248,245,239,.55);
  transition: color 0.2s;
  display: inline-block;
}
.footer-nav a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.5rem 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-copy, .footer-location {
  font-size: 0.78rem;
  color: rgba(248,245,239,.3);
}
.footer-location i { margin-right: 0.4rem; color: var(--gold-dark); }

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--charcoal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
}
.back-to-top:not([hidden]) {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.back-to-top[hidden] { display: flex; pointer-events: none; }
.back-to-top:hover { background: var(--gold-light); }

/* ---------- Scroll Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Keyframes ---------- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Focus Styles (Accessibility) ---------- */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   RESPONSIVE STYLES
   ============================================================ */

/* --- Large / Tablet --- */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }

  .about-grid { gap: 3.5rem; }
  .approach-layout { gap: 3rem; }
  .contact-layout { gap: 3rem; }
}

/* --- Tablet --- */
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .logo-img, .scrolled .logo-img { width: 210px; height: auto; }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: rgba(26,26,26,.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 6rem 2rem 2rem;
    gap: 0.5rem;
    box-shadow: -8px 0 40px rgba(0,0,0,.5);
    overflow-y: auto;
    z-index: 999;
    animation: slideInRight 0.3s var(--ease);
  }

  .nav-menu.open .nav-link {
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav-menu.open .nav-cta {
    margin: 1rem 0 0;
    text-align: center;
  }

  @keyframes slideInRight {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
  }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .approach-layout { grid-template-columns: 1fr; gap: 2.5rem; }

  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }

  .footer-container { grid-template-columns: 1fr; gap: 2rem; }

  /* Stacked image panel on tablet */
  .section-has-image {
    grid-template-columns: 1fr;
  }
  .section-image-panel {
    height: 320px;
    order: -1;
  }
  .section-has-image .container {
    padding: var(--section-pad) 2rem;
  }
}

/* --- Mobile --- */
@media (max-width: 600px) {
  :root { --section-pad: 60px; }
  .logo-img, .scrolled .logo-img { width: 180px; height: auto; }

  .container { padding: 0 1.25rem; }

  /* Disable parallax on mobile — iOS bug */
  .section-photo-bg { background-attachment: scroll !important; }

  .section-image-panel { height: 260px; }

  .hero-logo { width: min(220px, 58vw); max-width: 220px; height: auto; }
  .hero-tagline { font-size: 1.6rem; }
  .hero-content { gap: 1.1rem; }

  .services-grid { grid-template-columns: 1fr; gap: 2px; }

  .clients-grid { grid-template-columns: 1fr; }

  .assets-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .contact-form-wrap { padding: 1.75rem 1.25rem; }

  .footer-bottom .container { flex-direction: column; text-align: center; }

  .back-to-top { bottom: 1.25rem; right: 1.25rem; }
}

/* --- Small Mobile --- */
@media (max-width: 400px) {
  .assets-grid { grid-template-columns: 1fr; }
  .hero-logo { width: min(190px, 54vw); max-width: 190px; height: auto; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; }
}
