﻿:root {
  --bg: #f3f3f3;
  --surface: #ffffff;
  --surface-soft: #f7f7f5;
  --surface-alt: #eef3f5;
  --ink: #222222;
  --muted: #5d6670;
  --line: rgba(15, 91, 120, 0.12);
  --brand: #e3a126;
  --brand-deep: #b17c12;
  --accent: #0f5b78;
  --accent-deep: #0b4258;
  --success: #1f7f55;
  --shadow: 0 20px 55px rgba(12, 35, 48, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(15, 91, 120, 0.04), transparent 28%), linear-gradient(180deg, #faf9f6 0%, #f3f3f3 100%);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, li, label, input, textarea, button { font-size: 1rem; line-height: 1.7; }
h1, h2, h3, blockquote { margin: 0; font-family: "Cormorant Garamond", serif; line-height: 1.04; }
.container { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; }
.section-pad { padding: 5.5rem 0; }
.eyebrow { margin: 0 0 1rem; color: var(--brand-deep); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,0.94); backdrop-filter: blur(16px); border-bottom: 3px solid #f99f25; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 94px; position: relative; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 230px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav a { position: relative; color: var(--muted); font-weight: 700; padding: 0.45rem 0.8rem; border-radius: 999px; transition: color 180ms ease, background-color 180ms ease, transform 180ms ease; }
.main-nav a::after { content: none; }
.main-nav a:hover, .main-nav a.is-active { color: var(--accent); background: #f99f25; transform: translateY(-1px); }
.nav-services {
  position: relative;
  display: flex;
  align-items: center;
}
.service-submenu-toggle {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: -0.45rem;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
}
.service-submenu-toggle::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}
.nav-services.submenu-open .service-submenu-toggle::before {
  transform: translateY(2px) rotate(225deg);
}
.service-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.25rem;
  width: min(520px, calc(100vw - 2rem));
  padding: 0.75rem;
  border: 1px solid rgba(15,91,120,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.99);
  box-shadow: 0 22px 48px rgba(12,35,48,0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 160ms ease, transform 190ms ease, visibility 0s linear 190ms;
}
.service-submenu a {
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
  line-height: 1.35;
}
.nav-services:hover .service-submenu,
.nav-services:focus-within .service-submenu,
.nav-services.submenu-open .service-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-link-call, .nav-cta, .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0.85rem 1.2rem; border-radius: 999px; font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.nav-link-call { border: 1px solid #f99f25; background: var(--surface); color: var(--accent); }
.nav-cta, .button-primary { background: var(--accent); color: #fff; border: 1px solid #f99f25; }
.button-secondary { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid #f99f25; }
.button-audio {
  gap: 0.65rem;
  width: min(100%, 560px);
  min-height: 52px;
  overflow: hidden;
  background: rgba(8,29,38,0.82);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.72);
  text-align: left;
}
.button-audio.is-playing { background: #f99f25; color: #10252f; border-color: #f99f25; }
.audio-button-icon { flex: 0 0 1em; width: 1em; font-size: 0.82rem; line-height: 1; }
.audio-button-label {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 1.35em;
  overflow: hidden;
  line-height: 1.35;
  white-space: nowrap;
}
.audio-caption-text { display: inline-block; }
.audio-button-label.is-scrolling .audio-caption-text {
  position: absolute;
  left: 100%;
  animation: audio-caption-swipe var(--caption-duration, 4s) linear forwards;
}
@keyframes audio-caption-swipe {
  from { left: 100%; transform: translateX(0); }
  to { left: 0; transform: translateX(-100%); }
}
.site-introduction-audio { display: none; }
.button-secondary-dark { background: var(--surface); color: var(--accent); border: 1px solid #f99f25; }
.button-whatsapp, .button-whatsapp-solid { background: var(--success); color: #fff; border: 1px solid #f99f25; }
.button-block { width: 100%; }
.button:hover, .nav-cta:hover, .nav-link-call:hover { transform: translateY(-1px); }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(15,91,120,0.14); border-radius: 12px; background: #fff; cursor: pointer; transition: box-shadow 220ms ease, border-color 220ms ease, transform 220ms ease; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--accent); transition: transform 240ms ease, opacity 180ms ease, background-color 180ms ease; transform-origin: center; }
.site-header.nav-open .menu-toggle { border-color: rgba(227,161,38,0.75); box-shadow: 0 10px 24px rgba(12,35,48,0.12); }
.site-header.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero-home {
  position: relative;
  overflow: hidden;
  padding: 3.75rem 0 4.25rem;
  background: #0f5b78;
}
.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("images/hero_back_v1.webp?v=2") center/cover no-repeat;
  pointer-events: none;
}
.hero-home::after {
  content: none;
}
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  touch-action: pan-y;
}
.hero-carousel-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translateX(100%);
  transition: transform 1.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.hero-carousel-slide.is-active {
  transform: translateX(0);
}
.hero-carousel-slide.is-exiting-left {
  transform: translateX(-100%);
}
.hero-carousel-slide.is-exiting-right {
  transform: translateX(100%);
}
.hero-carousel-slide.is-entering-left {
  transform: translateX(-100%);
  transition: none;
}
.hero-carousel-slide.is-entering-right {
  transform: translateX(100%);
  transition: none;
}
.hero-carousel-slide.is-resetting { transition: none; }
.hero-carousel-detail {
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: var(--radius-lg);
  background: rgba(8,29,38,0.86);
  color: #fff;
  box-shadow: 0 16px 36px rgba(8,29,38,0.24);
  backdrop-filter: blur(8px);
}
.hero-carousel-detail p { margin: 0; }
.hero-carousel-kicker {
  color: #f99f25;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-carousel-title {
  margin: 0.2rem 0 0.3rem;
  font-size: 1.55rem;
  line-height: 1.1;
}
.hero-carousel-description {
  color: rgba(255,255,255,0.84);
  font-size: 0.86rem;
  line-height: 1.5;
}
.hero-carousel-link {
  display: inline-flex;
  margin-top: 0.65rem;
  color: #f99f25;
  font-size: 0.82rem;
  font-weight: 800;
}
.hero-carousel-controls {
  position: absolute;
  right: max(1rem, calc((100% - 1180px) / 2));
  bottom: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.hero-carousel-dots { display: flex; gap: 0.45rem; }
.hero-carousel-arrow,
.hero-carousel-dot {
  border: 1px solid rgba(255,255,255,0.75);
  background: rgba(8,29,38,0.72);
  color: #fff;
  box-shadow: 0 5px 16px rgba(8,29,38,0.2);
}
.hero-carousel-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
}
.hero-carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
}
.hero-carousel-dot.is-active { background: #f99f25; }

.hero-grid, .intro-grid, .section-head, .feature-grid, .principal-grid, .whatsapp-grid, .contact-grid, .footer-grid, .content-grid, .contact-info-grid, .media-grid, .service-detail-list { display: grid; gap: 1.5rem; }
.hero-grid { position: relative; z-index: 2; grid-template-columns: minmax(0,1.12fr) minmax(290px,0.88fr); align-items: center; gap: 1.25rem; }
.hero-panel, .hero-card, .service-card, .feature-card, .principal-card, .cta-panel, .info-card, .contact-form, .map-placeholder, .qr-placeholder, .qr-card, .media-card, .service-detail-card { box-shadow: var(--shadow); }
.hero-copy { position: relative; z-index: 1; max-width: 640px; color: #fff; }
.hero-copy h1 { max-width: 11ch; font-size: clamp(3rem, 6vw, 5.15rem); margin-bottom: 0.9rem; }
.hero-text { max-width: 58ch; color: rgba(255,255,255,0.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 1.6rem 0; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.hero-points li { padding: 0.6rem 0.95rem; border-radius: 999px; background: rgba(255,255,255,0.1); border: 1px solid #f99f25; }
.hero-side-stack { position: relative; z-index: 1; display: grid; gap: 1rem; }
.hero-card, .principal-card, .info-card, .contact-form, .media-card, .service-detail-card {
  padding: 2rem; border-radius: var(--radius-lg); background: rgba(255,255,255,0.94); border: 1px solid rgba(15,91,120,0.1);
}
.hero-visual-card:not(.hero-carousel-detail) p, .media-card p { color: var(--muted); }
.hero-visual-art, .media-placeholder {
  min-height: 170px;
  border-radius: 22px;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(15, 91, 120, 0.06), rgba(15, 91, 120, 0.16)),
    #f4f6f6 url("assets/legal-bg.svg") center/cover no-repeat;
  border: 1px solid rgba(15,91,120,0.08);
  color: var(--accent);
  text-align: center;
}
.media-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 18px;
  border: 1px solid rgba(15,91,120,0.1);
}
.hero-card h2, .section-head h2, .principal-copy h2, .contact-copy h2, .content-grid h2, .cta-panel h2, .whatsapp-grid h2, .page-hero h1, .service-detail-card h2 { font-size: clamp(2.7rem, 5vw, 4.2rem); }
.principal-qualifications {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.2rem;
}
.principal-qualifications p { margin: 0; }
.contact-mini-list, .footer-grid ul, .contact-list, .info-card ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.contact-mini-list li, .contact-list li, .info-card li, .footer-grid li { margin-bottom: 0.5rem; }
.intro-section, .whatsapp-section, .alt-section { background: var(--surface-soft); }
.home-intro-section { padding: 4.5rem 0 3.5rem; }
.services-preview { padding-top: 3.5rem; }
.intro-grid, .content-grid, .principal-grid, .contact-grid, .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.media-grid-single { grid-template-columns: minmax(0, 680px); justify-content: center; }
.section-head { grid-template-columns: minmax(0,1fr) minmax(320px,0.78fr); align-items: end; margin-bottom: 2rem; }
.section-note, .footer-bottom p, .form-note, .page-hero p, .cta-panel p, .intro-grid p, .principal-copy p, .contact-copy p, .service-card p, .feature-card p, .info-card p, .site-footer p, .service-detail-card p, .detail-list { color: var(--muted); }

.service-grid-home, .feature-grid, .service-grid-large { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-card, .feature-card { padding: 1.6rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid rgba(15,91,120,0.08); }
.service-card span { display: inline-block; }
.service-symbol {
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15,91,120,0.1), rgba(227,161,38,0.22));
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
}
.service-symbol-image {
  overflow: hidden;
  width: 5.8rem;
  height: 5.8rem;
  padding: 0.65rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15,91,120,0.08), rgba(227,161,38,0.12));
  border: 1px solid rgba(15,91,120,0.08);
}
.service-symbol-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.service-symbol-image-family img {
  transform: none;
  transform-origin: center;
}
.service-symbol-image-migration img {
  transform: none;
  transform-origin: center;
}
.service-symbol-image-conveyancing img {
  transform: none;
  transform-origin: center;
}
.service-symbol-image-business img {
  transform: none;
  transform-origin: center;
}
.service-symbol-image-wills img {
  transform: none;
  transform-origin: center;
}
.service-symbol-image-disputes img {
  transform: none;
  transform-origin: center;
}
.service-card h3, .feature-card h3, .principal-card h3, .info-card h3, .contact-form h3, .footer-grid h3, .media-card h3 { font-size: clamp(1.55rem, 2vw, 1.85rem); line-height: 1.1; margin-bottom: 0.8rem; }
.service-link, .text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  color: var(--accent);
  font-weight: 800;
}
.service-link::after, .text-link::after {
  content: ">";
  font-size: 0.95rem;
}
.why-section { background: linear-gradient(180deg, rgba(15,91,120,0.03), transparent 100%); }
.principal-card { background: linear-gradient(180deg, #fff 0%, #f4f7f8 100%); }
.portrait {
  display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 1rem; border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), var(--brand)); color: #fff; font-size: 1.45rem; font-weight: 800;
}
.principal-photo {
  display: block;
  width: 100%;
  height: clamp(260px, 32vw, 360px);
  margin-bottom: 1.25rem;
  border-radius: 22px;
  object-fit: cover;
  object-position: center 42%;
  border: 1px solid rgba(15,91,120,0.1);
  background: #eef3f5;
}
.role { margin: 0 0 0.8rem; color: var(--brand-deep); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.whatsapp-grid { grid-template-columns: minmax(0,1.1fr) minmax(260px,0.7fr); align-items: center; }
.qr-placeholder, .map-placeholder {
  display: grid; place-items: center; min-height: 280px; border-radius: var(--radius-lg); border: 1px dashed rgba(15,91,120,0.25);
  background: repeating-linear-gradient(45deg, rgba(15,91,120,0.04), rgba(15,91,120,0.04) 12px, rgba(227,161,38,0.05) 12px, rgba(227,161,38,0.05) 24px);
  color: var(--accent); text-align: center; padding: 1.5rem;
}
.qr-card {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15,91,120,0.12);
  background: var(--surface);
  color: var(--accent);
  text-align: center;
  font-weight: 800;
}
.qr-card img {
  width: min(100%, 260px);
  height: auto;
  border-radius: 14px;
}
.map-embed {
  overflow: hidden;
  min-height: 360px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15,91,120,0.12);
  box-shadow: var(--shadow);
}
.map-embed iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}
.cta-section { padding-top: 0; }
.cta-panel {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 1.5rem; padding: 2rem;
  border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--accent-deep), var(--accent)); color: #fff;
}
.cta-panel p { color: rgba(255,255,255,0.82); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: flex-end; }
.page-hero { padding: 4.5rem 0 4rem; background: linear-gradient(135deg, rgba(15,91,120,0.98), rgba(227,161,38,0.88)); color: #fff; }
.page-hero-inner { max-width: 860px; }
.page-hero p { max-width: 62ch; color: rgba(255,255,255,0.88); }
.services-showcase, .principal-media-section { padding-bottom: 0; }
.service-visual-card {
  min-height: 260px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.94)),
    #f6f7f8 url("assets/legal-bg.svg") center/cover no-repeat;
}
.service-visual-card-alt {
  background:
    linear-gradient(180deg, rgba(15,91,120,0.08), rgba(15,91,120,0.02)),
    #f6f7f8 url("assets/legal-bg.svg") center/cover no-repeat;
}
.audio-shell {
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 20px;
  background: rgba(15,91,120,0.05);
  border: 1px dashed rgba(15,91,120,0.24);
}
.audio-shell p { margin-bottom: 0; }
.button-audio-card {
  width: 100%;
  max-width: none;
  background: var(--accent);
}
.service-detail-list { grid-template-columns: 1fr; gap: 1.25rem; }
.service-detail-card {
  position: relative;
  min-height: 390px;
  padding: 1.7rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  scroll-margin-top: 8rem;
}
.service-detail-card > :not(.service-detail-media) { margin-left: calc(41.5% + 2rem); }
.service-detail-card .eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
}
.service-detail-card h2 { font-size: clamp(1.85rem, 2.55vw, 2.35rem); }
.service-detail-card h3 {
  margin: 1.35rem 0 0.45rem;
  color: var(--accent);
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
}
.service-detail-media {
  position: absolute;
  top: 50%;
  left: 1.7rem;
  transform: translateY(-50%);
  overflow: hidden;
  width: calc(41.5% - 0.35rem);
  min-height: 320px;
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(15,91,120,0.1);
  background-color: #eef3f5;
  background-image: url("assets/legal-bg.svg");
  background-position: center;
  background-size: cover;
  box-shadow: 0 16px 34px rgba(12, 35, 48, 0.1);
}
.service-detail-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,29,38,0.02), rgba(8,29,38,0.18));
}
.service-detail-media img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.service-detail-media.has-image::before,
.service-detail-media.has-image span {
  display: none;
}
.service-detail-media span {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.9);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.service-photo-family-law { background-image: url("images/service-family-law.webp"), url("assets/legal-bg.svg"); }
.service-photo-migration-law { background-image: url("images/service-migration-law.webp"), url("assets/legal-bg.svg"); }
.service-photo-conveyancing-property { background-image: url("images/service-conveyancing-property.webp"), url("assets/legal-bg.svg"); }
.service-photo-business-law { background-image: url("images/service-business-law.webp"), url("assets/legal-bg.svg"); }
.service-photo-wills-probate { background-image: url("images/service-wills-probate.webp"), url("assets/legal-bg.svg"); }
.service-photo-litigation { background-image: url("images/service-litigation.webp"), url("assets/legal-bg.svg"); }
.service-photo-sri-lankan-services { background-image: url("images/service-sri-lankan-services.webp"), url("assets/legal-bg.svg"); }
.service-photo-criminal-traffic { background-image: url("images/service-criminal-traffic.webp"), url("assets/legal-bg.svg"); }
.service-photo-court-tribunal { background-image: url("images/service-court-tribunal.webp"), url("assets/legal-bg.svg"); }
.service-photo-contracts-consumer { background-image: url("images/service-contracts-consumer.webp"), url("assets/legal-bg.svg"); }
.service-photo-translation { background-image: url("images/service-translation.webp"), url("assets/legal-bg.svg"); }
.service-detail-image {
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  margin: 1rem 0 1.1rem;
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15,91,120,0.06), rgba(227,161,38,0.12));
  border: 1px solid rgba(15,91,120,0.08);
}
.detail-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}
.detail-list li { margin-bottom: 0.55rem; }
.standalone-service-heading {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(135deg, rgba(15,91,120,0.98), rgba(227,161,38,0.88));
  color: #fff;
}
.standalone-service-heading-inner { max-width: 900px; }
.standalone-service-heading h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  margin-bottom: 1rem;
}
.standalone-service-heading p:not(.eyebrow) {
  max-width: 64ch;
  color: rgba(255,255,255,0.88);
}
.service-back-link {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.9);
  font-weight: 800;
}
.service-back-link::before { content: "<"; margin-right: 0.5rem; }
.standalone-service-shell {
  overflow: hidden;
  border: 1px solid rgba(15,91,120,0.1);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.standalone-service-image {
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #eef3f5;
}
.standalone-service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.standalone-service-content {
  width: min(calc(100% - 4rem), 860px);
  margin: 0 auto;
  padding: 4rem 0;
}
.standalone-service-content h2 {
  max-width: 16ch;
  margin-bottom: 1.2rem;
  font-size: clamp(2.5rem, 4vw, 3.6rem);
}
.standalone-service-content > p:not(.eyebrow) {
  max-width: 68ch;
  color: var(--muted);
}
.standalone-service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 2rem;
  margin: 2rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.standalone-service-list li { padding-left: 0.25rem; }
.contact-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.5rem; }
.contact-form { align-content: start; }
.contact-form label { display: grid; gap: 0.45rem; font-weight: 700; }
input, textarea {
  width: 100%; padding: 0.95rem 1rem; border: 2px solid rgba(15,91,120,0.14); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font: inherit;
}
input:focus, textarea:focus, button:focus, a:focus, .menu-toggle:focus { outline: 2px solid rgba(227,161,38,0.8); outline-offset: 2px; }
textarea { resize: vertical; }
button { border: 0; cursor: pointer; }
.map-section { padding-top: 0; }
.site-footer { padding: 2.5rem 0 1.5rem; background: #10252f; color: #edf4f7; }
.footer-grid { grid-template-columns: minmax(0,1.1fr) minmax(150px,0.55fr) minmax(210px,0.8fr) minmax(320px,1.45fr); align-items: start; }
.footer-brand { margin-bottom: 1rem; }
.footer-brand {
  display: inline-flex;
  padding: 0.85rem 1rem;
  border-radius: 3px;
  background: #f4f1ea;
}
.footer-brand img { width: 240px; height: auto; }
.footer-tagline { color: #f0c76e; font-weight: 700; }
.site-footer p, .site-footer li, .site-footer a { color: rgba(237,244,247,0.82); }
.site-footer a:hover { color: #f99f25; }
.footer-services ul {
  columns: 2;
  column-gap: 1.4rem;
}
.footer-services li {
  break-inside: avoid;
  margin-bottom: 0.45rem;
}
.footer-services a {
  font-size: 0.9rem;
  line-height: 1.45;
}
.footer-bottom { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }

@media (max-width: 1040px) {
  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.75rem 1rem 1.15rem;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid rgba(15,91,120,0.08);
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
    box-shadow: 0 18px 40px rgba(12,35,48,0.08);
    overflow: hidden;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    clip-path: inset(0 0 100% 0 round 0 0 22px 22px);
    transform: translateY(-2px);
    transition: clip-path 420ms cubic-bezier(0.12, 0.84, 0.18, 1), transform 420ms cubic-bezier(0.12, 0.84, 0.18, 1), visibility 0s linear 420ms;
    will-change: clip-path, opacity, transform;
  }
  .site-header.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    clip-path: inset(0 0 0 0 round 0 0 22px 22px);
    transform: translateY(0);
    transition: clip-path 420ms cubic-bezier(0.12, 0.84, 0.18, 1), transform 420ms cubic-bezier(0.12, 0.84, 0.18, 1), visibility 0s linear 0s;
  }
  .nav-services {
    display: grid;
    grid-template-columns: 1fr auto;
    width: 100%;
  }
  .service-submenu-toggle {
    width: 42px;
    height: 42px;
    margin-left: 0;
  }
  .service-submenu {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 0.2rem;
    width: 100%;
    max-height: 0;
    padding: 0 0.5rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    overflow: hidden;
    transform: none;
    transition: max-height 420ms cubic-bezier(0.12, 0.84, 0.18, 1), padding 260ms ease;
  }
  .service-submenu a {
    padding: 0.6rem 0.75rem;
    background: rgba(15,91,120,0.04);
  }
  .nav-services:hover .service-submenu,
  .nav-services:focus-within .service-submenu {
    max-height: 0;
    padding-block: 0;
    pointer-events: none;
    transform: none;
  }
  .nav-services.submenu-open .service-submenu {
    max-height: 760px;
    padding-block: 0.5rem 0.25rem;
    pointer-events: auto;
  }
  .menu-toggle { display: inline-block; order: 3; }
  .nav-actions { margin-left: auto; }
  .hero-grid, .intro-grid, .content-grid, .principal-grid, .contact-grid, .contact-info-grid, .whatsapp-grid, .footer-grid, .section-head, .cta-panel, .media-grid, .service-detail-list { grid-template-columns: 1fr; }
  .service-grid-home, .service-grid-large, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy h1 { max-width: none; }
  .cta-actions { justify-content: flex-start; }
}

@media (max-width: 760px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  .container { width: calc(100vw - 2rem); max-width: calc(100vw - 2rem); }
  .hero-copy, .page-hero-inner, .content-grid > *, .principal-copy, .contact-copy { max-width: 100%; min-width: 0; }
  .hero-copy, .page-hero-inner, .content-grid > div, .principal-copy, .contact-copy { width: min(100%, 34ch); }
  .nav-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 82px;
    padding: 0.85rem 0;
  }
  .brand img, .footer-brand img { width: 180px; }
  .brand { grid-column: 1; }
  .menu-toggle {
    display: inline-block;
    position: fixed;
    top: 1rem;
    right: auto;
    left: min(calc(100vw - 64px), 326px);
    z-index: 60;
  }
  .nav-actions {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .nav-link-call, .nav-cta {
    width: 100%;
    min-width: 0;
    padding-inline: 0.75rem;
  }
  .section-pad { padding: 4rem 0; }
  .home-intro-section { padding: 3.5rem 0 2.75rem; }
  .services-preview { padding-top: 2.75rem; }
  .hero-home { padding: 3rem 0 4rem; }
  .hero-carousel-controls {
    right: 50%;
    bottom: 0.75rem;
    transform: translateX(50%);
  }
  .hero-copy h1 {
    font-size: clamp(2.65rem, 13vw, 3.25rem);
  }
  .hero-card h2, .section-head h2, .principal-copy h2, .contact-copy h2, .content-grid h2, .cta-panel h2, .whatsapp-grid h2, .page-hero h1, .service-detail-card h2 {
    font-size: clamp(1.95rem, 9vw, 2.25rem);
    max-width: 13ch;
    overflow-wrap: break-word;
  }
  .service-detail-card h2 { max-width: none; }
  .service-detail-card {
    min-height: 0;
  }
  .service-detail-card > :not(.service-detail-media), .service-detail-media {
    margin-left: 0;
  }
  .service-detail-media {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    min-height: min(72vw, 360px);
    margin: 1rem 0 1.1rem;
  }
  .standalone-service-heading { padding: 3.5rem 0 3rem; }
  .standalone-service-heading h1 {
    width: 100%;
    max-width: 300px;
    font-size: clamp(2.25rem, 10vw, 2.85rem);
    overflow-wrap: anywhere;
  }
  .standalone-service-heading p:not(.eyebrow) {
    width: 100%;
    max-width: 300px;
    overflow-wrap: anywhere;
  }
  .standalone-service-image { aspect-ratio: 3 / 2; }
  .standalone-service-content {
    width: 100%;
    padding: 2rem 1.5rem 2.5rem;
  }
  .standalone-service-content h2 {
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.45rem);
  }
  .standalone-service-list {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .footer-services ul { columns: 1; }
  .service-grid-home, .service-grid-large, .feature-grid { grid-template-columns: 1fr; }
  .hero-card, .principal-card, .info-card, .contact-form, .cta-panel, .media-card, .service-detail-card { padding: 1.5rem; }
  .principal-card .principal-photo {
    height: min(92vw, 430px);
    object-position: center 38%;
  }
  .hero-actions, .cta-actions { flex-direction: column; }
  .button, .button-primary, .button-secondary, .button-whatsapp, .button-secondary-dark, .button-whatsapp-solid { width: 100%; }
}

