/* =====================================================
   CIVI PROPERTY CARE — stylesheet
   Structure mirrors a premium home-service one-pager,
   re-skinned for a managed home-maintenance service.
   ===================================================== */

:root {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --surface-soft: #efeae2;
  --ink: #14161a;
  --muted: #676d78;
  --accent: #1f6feb;
  --accent-deep: #1552b8;
  --accent-soft: #e8f0fe;
  --line: rgba(20, 22, 26, 0.12);
  --dark: #0d1526;
  --radius: 26px;
  --radius-sm: 14px;
  --shadow: 0 20px 60px rgba(17, 26, 45, 0.10);
  --shadow-lg: 0 28px 70px rgba(17, 26, 45, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

.section-soft {
  background: #f1ede6;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- TYPOGRAPHY ---------- */

h1,
h2,
h3,
blockquote {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(46px, 6.6vw, 88px);
  line-height: 0.99;
  font-weight: 600;
  letter-spacing: -0.04em;
}

h2 {
  margin: 0;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #9ec8ff;
}

/* ---------- BUTTONS ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 30px rgba(31, 111, 235, 0.26);
}

.button:hover {
  transform: translateY(-2px);
  background: var(--accent-deep);
}

.button-small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

.button-dark {
  background: var(--ink);
  box-shadow: 0 12px 30px rgba(20, 22, 26, 0.24);
}

.button-dark:hover {
  background: #000000;
}

.button-ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.full-width {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: 0.2s ease;
}

.text-link:hover {
  border-color: currentColor;
  gap: 14px;
}

.light-link {
  color: #ffffff;
}

/* ---------- EMERGENCY BAR ---------- */

.emergency-bar {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.emergency-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 11px 0;
}

.emergency-inner strong {
  color: #ffffff;
}

.emergency-inner a {
  font-weight: 700;
  color: #9ec8ff;
  white-space: nowrap;
}

.emergency-inner a:hover {
  color: #ffffff;
}

/* ---------- HEADER ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid rgba(20, 22, 26, 0.10);
  transition: 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(13, 21, 38, 0.10);
}

.nav-wrap {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 17px;
}

.logo-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
}

.logo-sub {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.main-nav a:not(.button):hover {
  color: var(--accent-deep);
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.nav-phone small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  background: url("../img/hero.jpg") center/cover no-repeat, var(--dark);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 14, 26, 0.92) 0%, rgba(8, 14, 26, 0.66) 50%, rgba(8, 14, 26, 0.24) 100%),
    linear-gradient(0deg, rgba(8, 14, 26, 0.40), rgba(8, 14, 26, 0.05));
}

.hero-content {
  position: relative;
  color: #ffffff;
  padding: 110px 0 90px;
}

.hero-copy {
  max-width: 620px;
  margin: 28px 0 34px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
}

.hero-badges span::before {
  content: "✓";
  margin-right: 9px;
  color: #9ec8ff;
  font-weight: 700;
}

/* ---------- MARQUEE / TRUST STRIP ---------- */

.trust-strip {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 20px 0;
  overflow: hidden;
}

.trust-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: slide 32s linear infinite;
  width: max-content;
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .trust-track { animation: none; }
}

/* ---------- INTRO + STATS ---------- */

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 80px;
}

.intro-copy {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 70px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- SECTION HEADINGS ---------- */

.section-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 60px;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.dark-heading > p {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- SERVICES ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.service-card img {
  height: 220px;
  object-fit: cover;
}

.service-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 24px 28px;
}

.service-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  align-self: flex-start;
}

.service-content h3 {
  margin: 0 0 10px;
}

.service-content p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
}

.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.service-meta .price {
  color: var(--muted);
  font-weight: 600;
}

.service-meta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-deep);
  transition: gap 0.2s ease;
}

.service-meta a:hover {
  gap: 13px;
}

/* ---------- ABOUT ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 80px;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.experience-card {
  position: absolute;
  right: -22px;
  bottom: -26px;
  width: 200px;
  padding: 22px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.experience-card strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 42px;
  line-height: 1;
  color: var(--accent-deep);
}

.experience-card span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.about-content > p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.feature-list {
  display: grid;
  gap: 26px;
  margin: 38px 0;
}

.feature {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: start;
}

.feature > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
}

.feature h4 {
  margin: 0 0 5px;
  font-size: 17px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- PROCESS (dark) ---------- */

.section-dark {
  background: var(--dark);
  color: #ffffff;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  padding: 32px 26px 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  transition: 0.25s ease;
}

.process-step:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-6px);
}

.process-step > span {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #9ec8ff;
}

.process-step h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.process-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

/* ---------- PRICING ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.plan {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 34px 30px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 28px 70px rgba(31, 111, 235, 0.22);
  transform: translateY(-10px);
}

.plan-flag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.plan h3 {
  margin: 0 0 6px;
  font-size: 26px;
}

.plan > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.plan-price strong {
  font-family: "Playfair Display", serif;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.plan-price span {
  color: var(--muted);
  font-size: 14px;
}

.plan ul {
  flex: 1;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  font-size: 15px;
  color: var(--muted);
}

.plan li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--accent);
  font-weight: 700;
}

.pricing-note {
  margin: 34px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- WORK ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.work-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.work-large {
  grid-column: span 2;
}

.work-grid img {
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-large img {
  height: 380px;
}

.work-grid figure:hover img {
  transform: scale(1.05);
}

.work-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 24px 24px;
  background: linear-gradient(0deg, rgba(8, 14, 26, 0.88), rgba(8, 14, 26, 0));
  color: #ffffff;
}

.work-grid figcaption span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #9ec8ff;
}

.work-grid figcaption strong {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 600;
}

.work-grid figcaption em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- TESTIMONIALS ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.testimonial-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stars {
  color: #e0a028;
  letter-spacing: 3px;
  font-size: 15px;
}

.testimonial-card blockquote {
  margin: 16px 0 24px;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  line-height: 1.45;
}

.client {
  display: flex;
  align-items: center;
  gap: 14px;
}

.client-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 700;
}

.client strong {
  display: block;
  font-size: 15px;
}

.client span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  flex: none;
  font-size: 24px;
  font-weight: 400;
  color: var(--accent-deep);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 24px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ---------- CONTACT ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.contact-copy > p {
  margin: 20px 0 30px;
  color: var(--muted);
  font-size: 17px;
}

.contact-details {
  display: grid;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
}

.contact-details > span {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.social-link:hover {
  color: var(--accent-deep);
}

.quote-form {
  padding: 34px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.quote-form label {
  display: block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfaf8;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--accent);
  background: #ffffff;
  outline: none;
}

.quote-form textarea {
  resize: vertical;
}

/* attachments */

.attachment-field {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px dashed rgba(20, 22, 26, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(246, 244, 240, 0.7);
}

.attachment-field-title {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 700;
}

.attachment-field-help {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.attachment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.attachment-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 15px;
  border: 1px solid rgba(20, 22, 26, 0.18);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.attachment-button.primary {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.attachment-button:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 22, 26, 0.45);
}

.attachment-input-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.attachment-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.attachment-thumb {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-soft);
  flex: none;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
}

.attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-meta {
  min-width: 0;
  flex: 1;
}

.attachment-name {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-size {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.attachment-remove {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: #a12b2b;
  font-size: 18px;
  cursor: pointer;
  flex: none;
}

.attachment-error,
.form-message {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
}

.attachment-error {
  color: #a12b2b;
}

.form-message.success {
  color: #1a7a4c;
}

.form-message.error {
  color: #a12b2b;
}

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.form-consent input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  flex: none;
}

/* ---------- PHONE CHOICE POPUP ---------- */

.phone-choice {
  position: relative;
  display: inline-block;
  width: fit-content;
}

.phone-choice-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.phone-choice-trigger::after {
  content: "⌄";
  font-size: 12px;
  transition: transform 0.2s ease;
}

.phone-choice.open .phone-choice-trigger::after {
  transform: rotate(180deg);
}

.phone-choice-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 60;
  width: 200px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(20, 22, 26, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
  animation: phoneMenuOpen 0.18s ease;
}

.phone-choice-menu[hidden] {
  display: none;
}

.phone-choice-action {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px;
  color: var(--ink);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.phone-choice-action:hover {
  background: var(--surface-soft);
  transform: translateX(2px);
}

.phone-choice-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--surface-soft);
  border-radius: 50%;
  flex: none;
  font-size: 14px;
}

.phone-choice-action.whatsapp-action { color: #137c3e; }
.phone-choice-action.whatsapp-action .phone-choice-icon { background: #e5f7eb; }
.phone-choice-action.sms-action { color: #175fa8; }
.phone-choice-action.sms-action .phone-choice-icon { background: #e7f1fb; }

.footer-phone-choice .phone-choice-menu {
  top: auto;
  bottom: calc(100% + 10px);
  background: #ffffff;
}

@keyframes phoneMenuOpen {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- CTA BANNER ---------- */

.cta-banner {
  padding: 70px 0;
  background: var(--accent);
  color: #ffffff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-inner h2 {
  max-width: 620px;
}

.cta-inner p {
  margin: 14px 0 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- FOOTER ---------- */

.site-footer {
  padding: 80px 0 34px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 50px;
}

.footer-grid h4 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-grid a {
  display: block;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: #ffffff;
}

.footer-brand .logo {
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-brand .logo-sub {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- FLOATING WHATSAPP ---------- */

.floating-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  background: #25d366;
  color: #06331a;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease;
}

.floating-cta:hover {
  transform: translateY(-3px);
}

/* ---------- REVEAL ANIMATION ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1040px) {
  .section { padding: 84px 0; }
  .nav-phone { display: none; }
  .service-grid,
  .pricing-grid,
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid,
  .contact-grid,
  .intro-grid,
  .section-heading,
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .plan.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .experience-card { right: 16px; bottom: -20px; }
}

@media (max-width: 780px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 20px 24px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(13, 21, 38, 0.12);
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.button) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-phone { display: inline-flex; padding: 14px 4px; border-left: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .emergency-inner { justify-content: center; text-align: center; font-size: 13px; }
  .main-nav .button { margin-top: 12px; }
  .site-header { position: sticky; }
  .nav-wrap { position: relative; min-height: 74px; }

  .hero { min-height: 620px; }
  .hero-content { padding: 80px 0 70px; }
  .service-grid,
  .pricing-grid,
  .testimonial-grid,
  .process-grid,
  .work-grid { grid-template-columns: 1fr; }
  .work-large { grid-column: span 1; }
  .work-grid img, .work-large img { height: 260px; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .quote-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .floating-cta { padding: 13px 17px; font-size: 14px; }
  .footer-phone-choice .phone-choice-menu { top: calc(100% + 10px); bottom: auto; }
}
