/* APL North Clean — modern single-page styles */

:root {
  --bg: #f4f7f9;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 14px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Top strip */
.top-strip {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ecfeff;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  text-align: center;
}

.top-strip a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.top-strip a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #f97316 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: #f0fdfa;
  color: var(--primary-dark);
}

.btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgba(13, 148, 136, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(234, 88, 12, 0.08), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-badge {
  display: inline-block;
  background: #ccfbf1;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  font-weight: 800;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 34ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.trust-line strong {
  color: var(--text);
}

.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: #e2e8f0;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Trust stats */
.stats {
  padding: 2rem 0 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.stat-card span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Section headings */
section {
  padding: 3.5rem 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 2.5rem;
}

/* Services */
#services {
  background: #fff;
  border-block: 1px solid var(--border);
}

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

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (max-width: 560px) {
  .service-card {
    grid-template-columns: 1fr;
  }
}

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

.service-card img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.service-body {
  padding: 1.5rem 1.5rem 1.5rem 0;
}

@media (max-width: 560px) {
  .service-body {
    padding: 1.25rem;
  }
}

.service-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.service-body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-item {
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.why-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.why-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ccfbf1;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Gallery / feedbacks */
#feedbacks {
  background: #fff;
  border-block: 1px solid var(--border);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery img {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery-tall img {
  aspect-ratio: auto;
  max-height: 420px;
  object-fit: cover;
}

/* Location */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
}

.location-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.location-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.location-card p {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

/* FAQ */
.faq-list {
  max-width: 720px;
}

.faq-list details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.faq-list summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-list .answer {
  padding: 1rem 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-list .answer p {
  margin: 0;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #115e59 50%, var(--primary) 100%);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
  border-radius: var(--radius);
  margin: 2rem 0 0;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-band p {
  margin: 0 0 1.5rem;
  opacity: 0.95;
  max-width: 40ch;
  margin-inline: auto;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  background: #f0fdfa;
  color: #134e4a;
}

/* Contact */
#contact {
  padding-bottom: 0;
}

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

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  margin-bottom: 1rem;
}

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

.contact-form button[type="submit"] {
  width: 100%;
}

.contact-side p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.contact-list strong {
  min-width: 5rem;
  color: var(--text);
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: #e2e8f0;
  text-decoration: none;
}

.site-footer a:hover {
  color: #5eead4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.footer-brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
  text-align: center;
  font-size: 0.85rem;
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 0 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-top: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
  }

  .header-cta-wrap {
    width: 100%;
    display: none;
  }

  .header-cta-wrap.is-open {
    display: block;
    padding-top: 0.75rem;
  }

  .header-cta-wrap .btn {
    width: 100%;
  }
}

/* Quick quote modal */
body.modal-open {
  overflow: hidden;
  overflow-x: hidden;
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.quote-modal.is-open {
  display: flex;
}

.quote-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.quote-modal__dialog {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: min(440px, calc(100vw - 1.5rem));
  min-width: 0;
  max-height: min(90vh, 640px);
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.1rem, 3.5vw, 1.75rem) clamp(1rem, 4vw, 1.5rem) clamp(1rem, 3vw, 1.5rem);
}

#quick-quote-form {
  min-width: 0;
  max-width: 100%;
}

.quote-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: var(--bg);
  border-radius: 10px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.quote-modal__close:hover {
  background: var(--border);
  color: var(--text);
}

.quote-modal__title {
  margin: 0 2rem 0.35rem 0;
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.quote-modal__lead {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.quote-modal__dialog label:not(.quote-modal__radio) {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.quote-modal__dialog input[type="text"],
.quote-modal__dialog input[type="tel"] {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  margin-bottom: 1rem;
}

.quote-modal__types {
  border: none;
  margin: 0 0 1rem;
  padding: 0;
  min-width: 0;
  max-width: 100%;
}

.quote-modal__types legend {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding: 0;
}

.quote-modal__region {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.65rem;
  align-items: start;
  min-width: 0;
}

.quote-modal__region legend {
  grid-column: 1 / -1;
}

@media (max-width: 480px) {
  .quote-modal__region {
    grid-template-columns: 1fr;
  }
}

.quote-modal__radio {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  cursor: pointer;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.quote-modal__radio input {
  accent-color: var(--primary);
}

.quote-modal__error {
  color: #b91c1c;
  font-size: 0.88rem;
  margin: 0 0 0.75rem;
}

.quote-modal__submit {
  width: 100%;
  margin-top: 0.25rem;
}

.quote-modal__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}
