/* layout.css — site chrome shared by every page: status strip, header, mobile drawer,
breadcrumbs, page hero, footer, sticky mobile call bar, cursor dot. */

/* ── Status strip ── */

.emergency-strip {
  background: var(--navy-deep);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

.emergency-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.emergency-strip a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--tap);
  color: var(--green-soft);
  font-weight: 700;
}

.emergency-strip svg {
  width: 0.9rem;
  height: 0.9rem;
}

@media (max-width: 560px) {
  .strip-long {
    display: none;
  }
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 235, 227, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

/* Logo slot: swap assets/images/logo.png. multiply hides the PNG's white box on the paper header;
remove that line if you supply a transparent logo. */

.brand-logo {
  width: auto;
  height: clamp(2.75rem, 5vw, 3.5rem);
  mix-blend-mode: multiply;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  border-bottom: 3px solid transparent;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-links a[aria-current="page"] {
  color: var(--navy-deep);
  border-bottom-color: var(--green);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--navy-deep);
  cursor: pointer;
}

.menu-btn svg {
  width: 1.6rem;
  height: 1.6rem;
}

@media (max-width: 1140px) {
  .nav-cta .btn-outline {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta .btn {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
}

/* ── Mobile drawer (full screen). Hidden with visibility so it can't take focus while closed. ── */

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  visibility: hidden;
  transition: visibility 0s 0.35s;
}

.nav-drawer.open {
  visibility: visible;
  transition-delay: 0s;
}

.nav-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 37, 61, 0.5);
}

.nav-drawer-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.32, 1);
}

.nav-drawer.open .nav-drawer-panel {
  transform: none;
}

.drawer-brand {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  padding: 1rem 4.5rem 1rem 1.25rem;
  background: var(--navy-deep);
}

.nav-drawer-close {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
}

.nav-drawer-close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.drawer-links {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0.875rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 3.5rem;
  padding: 0.5rem 0.625rem;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
}

.drawer-link[aria-current="page"] {
  background: var(--green-soft);
  color: var(--navy-deep);
  font-weight: 800;
}

.drawer-link .ic {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9px;
  background: var(--card);
  color: var(--navy);
}

.drawer-link[aria-current="page"] .ic {
  background: var(--green-deep);
  color: #fff;
}

.drawer-link .ic svg {
  width: 1.1rem;
  height: 1.1rem;
}

.drawer-actions {
  flex: none;
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.125rem calc(1.25rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--card);
}

.drawer-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.drawer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tap);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.drawer-social svg {
  width: 1.1rem;
  height: 1.1rem;
}

.drawer-status {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.drawer-status strong {
  color: var(--green-ink);
}

/* ── Breadcrumbs (inner pages) ── */

.breadcrumbs {
  background: var(--tint);
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumbs a,
.breadcrumbs [aria-current] {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  min-width: var(--tap);
  font-weight: 600;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-inline: 0.5rem;
}

.breadcrumbs a:hover {
  color: var(--navy);
}

.breadcrumbs [aria-current] {
  color: var(--navy-deep);
  font-weight: 700;
}

/* ── Page hero (inner pages) ── */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  background: var(--navy-deep);
}

.page-hero .wrap {
  position: relative;
  --flow-space: 0.75rem;
}

.page-hero .eyebrow {
  color: var(--green-soft);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.page-hero p {
  max-width: 56ch;
  color: var(--on-dark);
}

/* ── Footer ── */

.site-footer {
  padding-top: var(--space-5);
  background: var(--navy-deep);
  color: var(--on-dark);
}

.footer-grid {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
}

@media (min-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

/* White plate keeps a white-background logo looking intentional on the navy footer/drawer. */

.logo-plate {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  background: #fff;
}

.logo-plate .brand-logo {
  mix-blend-mode: normal;
  height: 3rem;
}

.footer-about {
  max-width: 32ch;
  margin-top: var(--space-2);
  font-size: 0.9rem;
}

.footer-title {
  margin-bottom: 0.5rem;
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

/* The phone number is shown as plain information, not a button. */

.footer-links li > span {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 0.9rem;
}

.footer-bottom {
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
}

.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ── Sticky mobile contact bar (Email Us + WhatsApp) ── */

.mobile-cta {
  display: none;
}

@media (max-width: 820px) {
  .mobile-cta {
    position: fixed;
    inset: auto 0 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0.625rem;
    padding: 0.75rem 0.875rem calc(0.75rem + env(safe-area-inset-bottom));
    background: var(--navy-deep);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.18);
  }
  /* Room under the footer so the fixed bar never covers the copyright line. */
  .site-footer {
    padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  }
}

/* ── Cursor dot (desktop, fine pointers only) ── */

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, width 0.18s ease, height 0.18s ease;
}

.cursor-dot.visible {
  opacity: 0.9;
}

.cursor-dot.grow {
  width: 34px;
  height: 34px;
  background: rgba(92, 150, 71, 0.35);
}

@media (pointer: coarse) {
  .cursor-dot {
    display: none;
  }
}
