/* ============================================
   PA.GA.MA Srls — Officina Meccanica
   Stylesheet
   ============================================ */

:root {
  --bg-dark: #0a0d12;
  --bg-darker: #06080b;
  --bg-card: #11151c;
  --bg-light: #f4f5f7;
  --bg-white: #ffffff;
  --text-dark: #11151c;
  --text-muted: #6b7280;
  --text-light: #e5e7eb;
  --text-light-muted: #9ca3af;
  --accent: #e63946;
  --accent-hover: #c92a37;
  --accent-soft: rgba(230, 57, 70, 0.12);
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebd5b;
  --blue: #2b6cb0;
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-light: #e5e7eb;
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 20px 60px rgba(0, 0, 0, 0.15);

  --font-display: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;

  --container-max: 1240px;
  --header-h: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg { width: 1em; height: 1em; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }
.muted { color: var(--text-muted); font-size: 0.875rem; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.35);
}

.btn-outline {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}
.btn-outline:hover {
  background: #fff;
  color: var(--text-dark);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  border-color: var(--whatsapp);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  border-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp svg { width: 18px; height: 18px; }

.btn-sm { padding: 11px 18px; font-size: 0.825rem; }
.btn-block { width: 100%; }

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
  background: var(--bg-darker);
  color: var(--text-light-muted);
  font-size: 0.825rem;
  border-bottom: 1px solid var(--border-dark);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar-item svg { width: 14px; height: 14px; opacity: 0.6; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--bg-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

/* ============================================
   LOGO
   ============================================ */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mark {
  display: inline-flex;
  color: var(--accent);
  width: 44px;
  height: 44px;
  transition: transform 0.4s ease;
}
.logo-mark svg { width: 100%; height: 100%; }
.logo:hover .logo-mark { transform: rotate(90deg); }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: #fff;
}
.logo-name .dot {
  color: var(--accent);
  display: inline-block;
  transform: translateY(-1px);
}
.logo-sub {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  margin-top: 4px;
}

/* ============================================
   NAV
   ============================================ */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.main-nav a {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a:hover::after { width: 100%; }

.header-cta { margin-left: 0; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  background: var(--bg-dark);
  color: #fff;
  overflow: hidden;
  padding-bottom: 110px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(105deg, rgba(10,13,18,0.96) 0%, rgba(10,13,18,0.75) 45%, rgba(10,13,18,0.35) 100%),
    url('https://images.unsplash.com/photo-1486006920555-c77dcf18193c?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center right;
  z-index: 0;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
  display: flex;
  align-items: center;
  min-height: 580px;
}
.hero-content { max-width: 660px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: 100px;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.dot-pulse {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(230, 57, 70, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin-bottom: 24px;
  animation: heroFadeUp 0.9s 0.1s ease both;
}
.hero-desc {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 540px;
  margin-bottom: 36px;
  animation: heroFadeUp 0.9s 0.25s ease both;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: heroFadeUp 0.9s 0.4s ease both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* HERO FEATURE STRIP */
.hero-features {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(50%);
  z-index: 3;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-darker);
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 24px;
  border-right: 1px solid var(--border-dark);
  color: #fff;
}
.feature-item:last-child { border-right: none; }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-cond);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}
.feature-text strong { font-weight: 700; color: #fff; }
.feature-text span { color: var(--text-light-muted); font-weight: 500; }

/* ============================================
   SECTIONS
   ============================================ */
.section-head {
  max-width: 720px;
  margin-bottom: 60px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-eyebrow.light { color: var(--accent); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.section-title.light { color: #fff; }
.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 180px 0 120px;
  background: var(--bg-light);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.service-image {
  position: relative;
  height: 220px;
  background: #1a1f28;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.service-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,13,18,0.5) 0%, transparent 50%);
}

.service-image[data-img="service-1"] { background-image: url('https://images.unsplash.com/photo-1487754180451-c456f719a1fc?auto=format&fit=crop&w=800&q=80'); }
.service-image[data-img="service-2"] { background-image: url('https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?auto=format&fit=crop&w=800&q=80'); }
.service-image[data-img="service-3"] { background-image: url('https://images.unsplash.com/photo-1530046339160-ce3e530c7d2f?auto=format&fit=crop&w=800&q=80'); }
.service-image[data-img="service-4"] { background-image: url('https://images.unsplash.com/photo-1517524008697-84bbe3c3fd98?auto=format&fit=crop&w=800&q=80'); }
.service-image[data-img="service-5"] { background-image: url('https://images.unsplash.com/photo-1625047509248-ec889cbff17f?auto=format&fit=crop&w=800&q=80'); }

.service-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  z-index: 2;
}

.service-body {
  padding: 28px 26px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-body h3 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  line-height: 1.1;
}
.service-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
  flex: 1;
}
.service-link {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.25s ease;
}

/* CTA CARD */
.service-card-cta {
  background: var(--bg-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 26px;
  position: relative;
  overflow: hidden;
}
.service-card-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(230,57,70,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(43,108,176,0.1) 0%, transparent 50%);
}
.cta-card-content { position: relative; z-index: 1; }
.cta-card-content h3 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  margin-bottom: 12px;
  line-height: 1.05;
}
.cta-card-content p {
  color: var(--text-light-muted);
  margin-bottom: 22px;
  font-size: 0.95rem;
}

/* ============================================
   WHY US
   ============================================ */
.why-us {
  padding: 120px 0;
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.why-us::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230,57,70,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}
.why-text p {
  color: var(--text-light-muted);
  font-size: 1.0625rem;
  margin-bottom: 28px;
  max-width: 520px;
}
.why-list {
  display: grid;
  gap: 14px;
}
.why-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  color: var(--text-light);
}
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.why-image-wrap {
  position: relative;
  isolation: isolate;
}
.why-image {
  height: 540px;
  border-radius: 6px;
  background-image: url('images/titolare.jpg');
  background-size: cover;
  background-position: center 25%;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  overflow: hidden;
}
.why-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,13,18,0.45) 100%);
  pointer-events: none;
}
.why-image-wrap::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: calc(100% - 0px);
  height: calc(100% + 40px);
  border: 2px solid var(--accent);
  border-radius: 6px;
  z-index: -1;
  opacity: 0.55;
}
.why-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  padding: 14px 20px;
  border-radius: 4px;
  font-family: var(--font-cond);
  display: flex;
  flex-direction: column;
  line-height: 1;
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
  z-index: 1;
}
.badge-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 6px;
  font-weight: 600;
}
.badge-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.why-secondary {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--text-light-muted);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  padding: 120px 0;
  background: var(--bg-white);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  background: var(--bg-light);
  border-radius: 6px;
  padding: 40px 32px;
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.contact-card.highlight {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}
.contact-card.highlight .whatsapp-icon {
  background: var(--whatsapp);
}
.whatsapp-desc {
  color: var(--text-light-muted);
  font-size: 0.9rem;
  margin: 16px 0 4px;
  line-height: 1.5;
}

/* MAP EMBED */
.contact-card-map .contact-info p:first-of-type,
.contact-card-map .contact-info p:nth-of-type(2) {
  margin-bottom: 6px;
}
.map-embed {
  position: relative;
  margin: 18px 0 16px;
  border-radius: 6px;
  overflow: hidden;
  height: 200px;
  border: 1px solid var(--border-light);
  background: #e5e7eb;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.85);
  transition: filter 0.3s ease;
}
.map-embed:hover iframe {
  filter: saturate(1);
}
.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  color: var(--accent);
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
  animation: pinBob 2.5s ease-in-out infinite;
}
.map-pin svg {
  width: 36px;
  height: 36px;
}
@keyframes pinBob {
  0%, 100% { transform: translate(-50%, -100%); }
  50% { transform: translate(-50%, -110%); }
}

.map-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}
.map-btn svg { width: 16px; height: 16px; }
.map-btn-gmaps {
  background: #fff;
  color: #1a73e8;
  border-color: #1a73e8;
}
.map-btn-gmaps:hover {
  background: #1a73e8;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.3);
}
.map-btn-waze {
  background: #fff;
  color: #33ccff;
  border-color: #33ccff;
}
.map-btn-waze:hover {
  background: #33ccff;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(51, 204, 255, 0.3);
}
.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  margin-bottom: 20px;
  letter-spacing: 0.015em;
}
.contact-info p { margin-bottom: 8px; }
.contact-info .muted { margin-top: 12px; }
.contact-info .btn { margin-top: 20px; }

.big-info {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}
.info-label {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  margin-bottom: 4px;
}
.big-link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.big-link:hover { color: var(--accent); }

/* HOURS LIST */
.hours-list { display: grid; gap: 8px; }
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9375rem;
}
.hours-row:last-child { border-bottom: none; }
.hours-row .day {
  font-family: var(--font-cond);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hours-row .time { color: var(--text-muted); font-size: 0.875rem; }
.hours-row.closed .time { color: var(--accent); font-weight: 600; }

/* ============================================
   PARTNERS
   ============================================ */
.partners {
  padding: 90px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
}
.partners-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}
.partners-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 14px 0 16px;
}
.partners-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 40px 24px;
  box-shadow: var(--shadow-card);
}
.partners-grid-5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  padding: 48px 32px;
}
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  padding: 0 8px;
  filter: grayscale(100%) opacity(0.65);
  transition: filter 0.35s ease, transform 0.35s ease;
}
.partner-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}
.partner-logo img,
.partner-logo svg {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-darker);
  color: var(--text-light-muted);
  padding: 80px 0 0;
  border-top: 1px solid var(--border-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}
.footer-brand .logo-footer { margin-bottom: 20px; }
.footer-tag {
  font-size: 0.9375rem;
  max-width: 320px;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { transition: color 0.2s ease; font-size: 0.9375rem; }
.footer-col a:hover { color: var(--accent); }
.footer-col li { font-size: 0.9375rem; }

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 60px; }
  .why-image { height: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2) { border-right: none; }
  .feature-item:nth-child(1), .feature-item:nth-child(2) { border-bottom: 1px solid var(--border-dark); }
  .partners-grid, .partners-grid-5 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
  .topbar { font-size: 0.75rem; }
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-right { display: none; }

  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-cta { display: none; }
  .header-inner { gap: 16px; }
  .main-nav.mobile-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-darker);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-dark);
  }

  .hero-inner { padding: 80px 24px 80px; min-height: 480px; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .hero-desc { font-size: 1rem; }
  .hero-features { transform: translateY(40%); }

  .services { padding: 160px 0 80px; }
  .services-grid { grid-template-columns: 1fr; gap: 20px; }

  .why-us { padding: 80px 0; }
  .why-text p { font-size: 1rem; }

  .contact-section { padding: 80px 0; }
  .contact-card { padding: 32px 24px; }

  .partners { padding: 60px 0; }
  .partners-grid, .partners-grid-5 { grid-template-columns: repeat(2, 1fr); padding: 28px 16px; gap: 20px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .section-head { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .logo-sub { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--border-dark); }
  .feature-item:last-child { border-bottom: none; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}
