/* ================================================
   MAC ABOGADOS — Juzgado de Familia
   Redesign: Warm, human, trustworthy
   Fonts: Literata + Karla
   Colors: OKLCH warm earth tones
   ================================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,300..800;1,7..72,300..800&family=Karla:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  /* Colors — Coolors Sage Palette */
  --color-primary: #216869;
  --color-primary-light: #49a078;
  --color-primary-subtle: #dce1de;
  --color-accent: #49a078;
  --color-accent-hover: #9cc5a1;
  --color-accent-light: #9cc5a1;
  --color-bg: #faf8f4;
  --color-surface: #dce1de;
  --color-white: #ffffff;
  --color-text: #1f2421;
  --color-text-muted: #216869;
  --color-border: #9cc5a1;
  --color-footer: #1f2421;
  --color-footer-muted: #49a078;

  /* WhatsApp brand */
  --color-whatsapp: #49a078;
  --color-whatsapp-dark: #216869;

  /* Typography */
  --font-heading: 'Literata', Georgia, 'Times New Roman', serif;
  --font-body: 'Karla', system-ui, -apple-system, sans-serif;

  /* Spacing — 4pt scale */
  --sp-1: 0.25rem;  /* 4px */
  --sp-2: 0.5rem;   /* 8px */
  --sp-3: 0.75rem;  /* 12px */
  --sp-4: 1rem;     /* 16px */
  --sp-5: 1.25rem;  /* 20px */
  --sp-6: 1.5rem;   /* 24px */
  --sp-8: 2rem;     /* 32px */
  --sp-10: 2.5rem;  /* 40px */
  --sp-12: 3rem;    /* 48px */
  --sp-16: 4rem;    /* 64px */
  --sp-20: 5rem;    /* 80px */
  --sp-24: 6rem;    /* 96px */

  /* Layout */
  --max-width: 1120px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(31, 36, 33, 0.06);
  --shadow-md: 0 4px 12px rgba(31, 36, 33, 0.08);
  --shadow-lg: 0 8px 30px rgba(31, 36, 33, 0.10);
  --shadow-card: 0 2px 8px rgba(31, 36, 33, 0.05);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset --- */
*, *::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-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-primary);
  text-wrap: balance;
}

h1 { font-size: clamp(1.875rem, 4.5vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--sp-6);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid oklch(1 0 0 / 0.35);
}
.btn-outline:hover {
  border-color: var(--color-white);
  background: oklch(1 0 0 / 0.1);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-border);
}
.btn-outline-dark:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: 1rem;
}

/* --- Header --- */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-6);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.logo img {
  height: 44px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-firm {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.logo-abogada {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

/* Desktop nav */
.nav { display: flex; gap: var(--sp-1); align-items: center; }

.nav a {
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease-out);
}

.nav a:hover,
.nav a.active {
  color: var(--color-primary);
  background: var(--color-primary-subtle);
}

.nav-cta {
  background: var(--color-accent) !important;
  color: var(--color-white) !important;
  margin-left: var(--sp-2);
}
.nav-cta:hover {
  background: var(--color-accent-hover) !important;
}

/* Hamburger menu — CSS only */
.menu-toggle { display: none; }
.menu-icon {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 110;
}

.menu-icon span,
.menu-icon span::before,
.menu-icon span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  position: relative;
}
.menu-icon span::before,
.menu-icon span::after {
  content: '';
  position: absolute;
  left: 0;
}
.menu-icon span::before { top: -7px; }
.menu-icon span::after { top: 7px; }

/* Hamburger animation */
.menu-toggle:checked + .menu-icon span { background: transparent; }
.menu-toggle:checked + .menu-icon span::before { top: 0; transform: rotate(45deg); }
.menu-toggle:checked + .menu-icon span::after { top: 0; transform: rotate(-45deg); }

/* --- Hero (index) --- */
.hero {
  background: var(--color-footer);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--sp-16) var(--sp-6);
  min-height: 520px;
}

.hero-content { position: relative; z-index: 2; }

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--sp-6);
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: oklch(0.85 0.01 55);
  max-width: 480px;
  margin-bottom: var(--sp-8);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, oklch(0.25 0.04 55 / 0.2), transparent);
  border-radius: inherit;
}

/* --- Info Bar --- */
.info-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: var(--sp-5) 0;
}

.info-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--sp-6);
  display: flex;
  gap: var(--sp-8);
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.info-item strong { color: var(--color-text); }
.info-item svg { flex-shrink: 0; color: var(--color-accent); }

/* --- Sections --- */
.section {
  padding: var(--sp-20) 0;
}

.section-warm {
  background: var(--color-surface);
}

.section-dark {
  background: var(--color-footer);
  color: var(--color-white);
}
.section-dark h2,
.section-dark h3 { color: var(--color-white); }
.section-dark p { color: oklch(0.75 0.01 55); }

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto var(--sp-12);
}

.section-header p {
  color: var(--color-text-muted);
  margin-top: var(--sp-3);
  font-size: 1.05rem;
}

.section-dark .section-header p { color: oklch(0.65 0.01 55); }

/* --- Service Cards (homepage) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease-out);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-body {
  padding: var(--sp-6);
}

.service-card h3 {
  margin-bottom: var(--sp-2);
  font-size: 1.125rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-4);
  line-height: 1.65;
}

.service-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: gap 0.2s var(--ease-out);
}

.service-card-link:hover {
  gap: var(--sp-3);
}

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
  box-shadow: var(--shadow-card);
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.blog-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body { padding: var(--sp-6); }

.blog-card-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-3);
}

.blog-card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--sp-3);
  line-height: 1.35;
}

.blog-card h3 a {
  transition: color 0.2s;
}
.blog-card h3 a:hover { color: var(--color-accent); }

.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--color-border);
}

/* --- CTA Section --- */
.cta-section {
  background: var(--color-primary-subtle);
  padding: var(--sp-16) 0;
  text-align: center;
}

.cta-section h2 { margin-bottom: var(--sp-4); }
.cta-section p {
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto var(--sp-8);
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* --- Services Page --- */
.page-header {
  background: var(--color-footer);
  color: var(--color-white);
  padding: var(--sp-12) 0;
  text-align: center;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: var(--sp-3);
}
.page-header p {
  color: oklch(0.70 0.01 55);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Service detail sections */
.service-section {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-12);
  align-items: start;
  padding: var(--sp-12) 0;
}

.service-section:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}

.service-section:nth-child(even) {
  direction: rtl;
}
.service-section:nth-child(even) > * {
  direction: ltr;
}

.service-section-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: sticky;
  top: calc(80px + var(--sp-6));
}

.service-section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-section-content h2 {
  margin-bottom: var(--sp-4);
}

.service-section-content > p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-6);
}

.service-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.service-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 500;
  transition: background 0.2s;
}

.service-item:hover {
  background: var(--color-accent-light);
}

.service-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-12);
  align-items: start;
}

.contact-info h2 {
  margin-bottom: var(--sp-8);
}

.contact-info-item {
  display: flex;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg { color: var(--color-accent); }

.contact-info-item h4 {
  font-size: 0.9rem;
  margin-bottom: var(--sp-1);
  color: var(--color-primary);
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

.social-box {
  margin-top: var(--sp-8);
  padding: var(--sp-6);
  background: var(--color-surface);
  border-radius: var(--radius);
}

.social-box h4 { margin-bottom: var(--sp-2); }
.social-box p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-4);
}

.social-links-inline {
  display: flex;
  gap: var(--sp-3);
}

.social-links-inline a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  padding: var(--sp-2) var(--sp-4);
  background: var(--color-white);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.social-links-inline a:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Form */
.contact-form h2 {
  margin-bottom: var(--sp-8);
}

.form-group { margin-bottom: var(--sp-5); }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--sp-2);
  color: var(--color-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px oklch(0.58 0.14 40 / 0.12);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: oklch(0.65 0.01 55);
}

/* Map section */
.map-section {
  background: var(--color-surface);
  padding: var(--sp-12) 0;
}

.map-section h3 {
  text-align: center;
  margin-bottom: var(--sp-3);
}

.map-section > .container > p {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-6);
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 21/9;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Article Page --- */
.article-header {
  background: var(--color-footer);
  color: var(--color-white);
  padding: var(--sp-12) 0;
}

.article-header h1 {
  color: var(--color-white);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 800px;
  margin-bottom: var(--sp-4);
}

.article-meta {
  font-size: 0.875rem;
  color: oklch(0.70 0.01 55);
  display: flex;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-6);
  background: var(--color-white);
}

.article-content h2 { margin: var(--sp-8) 0 var(--sp-4); font-size: 1.5rem; }
.article-content h3 { margin: var(--sp-6) 0 var(--sp-3); font-size: 1.2rem; }
.article-content p { margin-bottom: var(--sp-5); font-size: 1.05rem; line-height: 1.85; }
.article-content ul, .article-content ol { margin: var(--sp-4) 0 var(--sp-6) var(--sp-6); }
.article-content li { margin-bottom: var(--sp-2); list-style: disc; }
.article-content strong { color: var(--color-primary); font-weight: 600; }

.article-nav {
  max-width: 720px;
  margin: 0 auto var(--sp-12);
  padding: 0 var(--sp-6);
  display: flex;
  justify-content: space-between;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--sp-3) var(--sp-5);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  transition: all 0.2s;
}

.btn-back:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* --- Blog List Page --- */
.blog-list { padding: var(--sp-12) 0; }

/* --- Footer --- */
.site-footer {
  background: var(--color-footer);
  color: var(--color-footer-muted);
  padding: var(--sp-12) 0 var(--sp-6);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid oklch(1 0 0 / 0.08);
}

.footer-brand .logo { margin-bottom: var(--sp-4); }
.footer-brand .logo-firm { color: var(--color-white); font-size: 1.2rem; }
.footer-brand .logo-abogada { color: var(--color-accent); }
.footer-brand > p { font-size: 0.875rem; line-height: 1.7; }
.footer-brand .logo img {
  /* In footer use white logo, filter not needed if we load white version */
}

.footer-col h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-5);
}

.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col li { font-size: 0.875rem; }
.footer-col a { transition: color 0.2s; }
.footer-col a:hover { color: var(--color-accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: oklch(0.55 0.01 55);
}

.social-links { display: flex; gap: var(--sp-3); }
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid oklch(1 0 0 / 0.15);
  color: var(--color-footer-muted);
  transition: all 0.25s var(--ease-out);
}

.social-links a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: oklch(1 0 0 / 0.05);
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp, #49a078);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(73, 160, 120, 0.35);
  transition: all 0.25s var(--ease-out);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(73, 160, 120, 0.45);
  background: var(--color-whatsapp-dark, #216869);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

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

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .service-section {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .service-section:nth-child(even) { direction: ltr; }
  .service-section-img { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: var(--sp-12) var(--sp-6);
    min-height: auto;
  }
  .hero-image { max-width: 480px; margin: 0 auto; }
}

@media (max-width: 768px) {
  /* Mobile hamburger */
  .menu-icon { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100dvh;
    background: var(--color-white);
    flex-direction: column;
    padding: 80px var(--sp-6) var(--sp-8);
    gap: var(--sp-1);
    box-shadow: var(--shadow-lg);
    transition: right 0.35s var(--ease-out);
    z-index: 105;
  }

  .menu-toggle:checked ~ .nav {
    right: 0;
  }

  .nav a {
    padding: var(--sp-4);
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: var(--sp-4);
    text-align: center;
  }

  /* Overlay */
  .menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: oklch(0 0 0 / 0.4);
    z-index: 102;
  }
  .menu-toggle:checked ~ .menu-overlay {
    display: block;
  }

  .info-bar-inner {
    flex-direction: column;
    gap: var(--sp-3);
    align-items: flex-start;
  }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-bottom { flex-direction: column; gap: var(--sp-3); text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .service-items { grid-template-columns: 1fr; }

  .map-wrapper { aspect-ratio: 4/3; }

  .section { padding: var(--sp-12) 0; }
  .cta-section { padding: var(--sp-12) 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; }
  .hero-inner { padding: var(--sp-10) var(--sp-4); }
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.mt-2 { margin-top: var(--sp-4); }
.mt-3 { margin-top: var(--sp-6); }
.mb-2 { margin-bottom: var(--sp-4); }
.mb-3 { margin-bottom: var(--sp-6); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
