/* ============================================================
   CREST CARE CLEANING — styles.css
   Brand Colors: #018AF9 (Blue) | #FFFC31 (Yellow) | #FFFFFF (White)
   Fonts: Poppins (headings/UI) | DM Sans (body)
   — Poppins chosen to match logo: rounded, modern, friendly, professional
   ============================================================ */

/* ---- CSS VARIABLES ---- */
:root {
  --blue: #018AF9;
  --blue-dark: #0172d4;
  --blue-deeper: #005eb5;
  --yellow: #FFFC31;
  --yellow-dark: #e8e51a;
  --white: #ffffff;
  --off-white: #f4f8ff;
  --light-bg: #f0f6ff;
  --text-dark: #0d1b2a;
  --text-mid: #3a4d63;
  --text-light: #6b7f99;
  --border: #ddeeff;
  --shadow-sm: 0 2px 12px rgba(1, 138, 249, 0.10);
  --shadow-md: 0 6px 32px rgba(1, 138, 249, 0.14);
  --shadow-lg: 0 16px 60px rgba(1, 138, 249, 0.18);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  /* Poppins for headings/UI — matches logo's rounded, modern feel */
  --font-head: 'Poppins', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-height: 72px;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  /* Prevent horizontal scroll on all devices */
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: var(--font-body); }

/* ---- TYPOGRAPHY ---- */
/* Poppins applied to all headings to match logo character */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { color: var(--text-mid); font-size: 1rem; }

/* ---- LAYOUT ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  /* Safety: never exceed viewport width */
  width: 100%;
}
.section-pad { padding: 90px 0; }
.bg-light { background: var(--light-bg); }

/* ---- SECTION LABELS & HEADERS ---- */
.section-label {
  display: inline-block;
  background: rgba(1, 138, 249, 0.10);
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 12px;
}
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header .section-label { display: block; }
.section-title { margin-bottom: 14px; }
.section-sub { color: var(--text-light); font-size: 1.02rem; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: 99px;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  /* Prevent buttons from exceeding viewport */
  max-width: 100%;
}
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-md { padding: 11px 26px; font-size: 0.95rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-full { width: 100%; padding: 15px; font-size: 1rem; }

.btn-blue { background: var(--blue); color: var(--white); box-shadow: 0 4px 18px rgba(1,138,249,0.3); }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(1,138,249,0.4); }

.btn-yellow { background: var(--yellow); color: var(--text-dark); box-shadow: 0 4px 18px rgba(255,252,49,0.4); }
.btn-yellow:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,252,49,0.5); }

.btn-outline-nav { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); padding: 8px 18px; font-size: 0.85rem; }
.btn-outline-nav:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

.btn-white-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.7); }
.btn-white-outline:hover { background: rgba(255,255,255,0.15); }

.btn-blue-full { background: var(--blue); color: var(--white); width: 100%; padding: 14px; font-size: 0.97rem; }
.btn-yellow-full { background: var(--yellow); color: var(--text-dark); width: 100%; padding: 14px; font-size: 0.97rem; }


.btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,27,42,0.10);
  font-size: 0.82rem;
  line-height: 1;
}
.btn-blue .btn-icon, .btn-outline-nav .btn-icon, .btn-white-outline .btn-icon, .btn-blue-full .btn-icon {
  background: rgba(255,255,255,0.18);
}

/* ============================================================
   NAVBAR
   — Fixed across all screen sizes, no overflow
============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--blue);
  transition: all var(--transition);
  box-shadow: 0 2px 20px rgba(1,138,249,0.2);
  /* Prevent navbar itself from scrolling horizontally */
  width: 100%;
  overflow: visible;
}
.navbar.scrolled {
  background: rgba(1, 130, 240, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 32px rgba(1,138,249,0.25);
}
.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  /* Responsive horizontal padding */
  padding: 0 20px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

/* Logo: scales cleanly, never overflows */
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo img {
  /* Use height-based sizing so it scales at all widths */
  height: 62px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.nav-links { display: flex; gap: 2px; margin: 0 auto; }
.nav-link {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 7px 11px;
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.15);
}
.nav-ctas { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
  flex-shrink: 0;
  /* Minimum tap target */
  min-width: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 22px; height: 2.5px;
  background: var(--white);
  border-radius: 4px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---- Mobile Menu ---- */
/* Positioned absolute so it overlays content — never pushes hero down */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--blue-dark);
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease, padding 0.3s ease;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  width: 100%;
}
.mobile-menu.open {
  max-height: 520px;
  padding: 12px 20px 24px;
}
.mobile-link {
  color: rgba(255,255,255,0.88);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: block;
  width: 100%;
}
.mobile-link:last-of-type { border-bottom: none; }
.mobile-link:hover { color: var(--yellow); }
.mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  /* Full-width CTAs never overflow */
  width: 100%;
}
.mobile-ctas .btn { width: 100%; }

/* ============================================================
   HERO
   — Two-column: text LEFT, image RIGHT
   — Vertically centered, no overflow
============================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--blue) 0%, #005eb5 100%);
  display: flex;
  align-items: center;
  /* Centered container, not full-bleed flex */
  padding: 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-shape { position: absolute; border-radius: 50%; opacity: 0.12; background: var(--yellow); }
.hero-shape-1 { width: 500px; height: 500px; top: -200px; right: -100px; }
.hero-shape-2 { width: 300px; height: 300px; bottom: -100px; left: -50px; }

/* Inner hero uses the container for max-width control */
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 60px) 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: 56px;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Text block — left column */
.hero-content {
  flex: 1 1 0;
  min-width: 0;
  animation: fadeUp 0.7s ease both;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,252,49,0.18);
  border: 1px solid rgba(255,252,49,0.4);
  color: var(--yellow);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 20px;
}
.hero-title { color: var(--white); margin-bottom: 20px; }
.hero-highlight { color: var(--yellow); display: block; }
.hero-sub { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 32px; }
.hero-sub strong { color: var(--white); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.88);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.85rem;
}

/* Image block — right column, slightly larger & premium */
.hero-image-wrap {
  width: 100%;
  max-width: 620px;
  animation: fadeUp 0.9s 0.2s ease both;
}
.hero-img-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* Premium shadow layering */
  box-shadow:
    0 2px 4px rgba(0,0,0,0.08),
    0 8px 24px rgba(0,0,0,0.18),
    0 32px 80px rgba(0,0,0,0.28);
  border: 3px solid rgba(255,255,255,0.22);
}
.hero-img-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.hero-img-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: var(--yellow);
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}
.badge-num { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.badge-text { font-size: 0.72rem; font-weight: 600; }

/* ============================================================
   ABOUT
============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image-wrap { position: relative; }
.about-image-wrap img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.about-accent-card {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--yellow);
  color: var(--text-dark);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.accent-num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.accent-label { font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; color: var(--text-mid); }

.about-text .section-title { margin-bottom: 16px; }
.about-text p { margin-bottom: 14px; }
.about-list { margin: 20px 0 32px; display: flex; flex-direction: column; gap: 9px; }
.about-list li { font-family: var(--font-head); font-weight: 500; font-size: 0.93rem; color: var(--text-mid); }

/* ============================================================
   SERVICES
============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(1,138,249,0.2);
}
.service-img-wrap { position: relative; }
.service-img-wrap img { width: 100%; height: 200px; object-fit: cover; }
.service-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 99px;
}
.service-tag-yellow { background: var(--yellow); color: var(--text-dark); }
.service-body { padding: 22px; }
.service-icon { font-size: 1.5rem; margin-bottom: 8px; }
.service-body h3 { margin-bottom: 8px; }
.service-body p { font-size: 0.92rem; margin-bottom: 14px; }
.service-includes { margin-bottom: 20px; display: flex; flex-direction: column; gap: 5px; }
.service-includes li {
  font-size: 0.85rem;
  color: var(--text-mid);
  padding-left: 16px;
  position: relative;
}
.service-includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ============================================================
   WHY US
============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(1,138,249,0.25);
}
.why-icon { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.why-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.why-card p { font-size: 0.91rem; }

/* ============================================================
   FAQ
============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color var(--transition), background var(--transition);
}
.faq-question:hover { color: var(--blue); }
.faq-question[aria-expanded="true"] { color: var(--blue); background: rgba(1,138,249,0.04); }
.faq-chevron {
  font-size: 1.1rem;
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--blue);
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0 22px;
}
.faq-answer.open { max-height: 300px; padding: 0 22px 18px; }
.faq-answer p { font-size: 0.93rem; }

/* ============================================================
   CONTACT
============================================================ */
.contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.contact-info .section-title { margin-bottom: 14px; }
.contact-info > p { margin-bottom: 30px; }
.contact-details { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.contact-detail-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-detail-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.contact-detail-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 2px;
}
.contact-detail-value { color: var(--text-dark); font-weight: 500; font-size: 0.95rem; }
a.contact-detail-value:hover { color: var(--blue); }

/* Form */
.quote-form {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-family: var(--font-head); font-weight: 600; font-size: 0.83rem; color: var(--text-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-dark);
  font-size: 0.93rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23018AF9' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px;
  padding-right: 36px;
  cursor: pointer;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(1,138,249,0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { text-align: center; color: var(--text-light); font-size: 0.8rem; margin-top: 10px; }
.form-success {
  display: none;
  background: #e6f9f0;
  border: 1.5px solid #34c77b;
  color: #1a7a4a;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  margin-top: 14px;
  font-size: 0.93rem;
}
.form-success.show { display: block; animation: fadeUp 0.4s ease; }

/* ============================================================
   FOOTER
============================================================ */
.footer { background: var(--text-dark); color: rgba(255,255,255,0.8); }
.footer-top { padding: 70px 0 50px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { margin-bottom: 16px; border-radius: 6px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.65); margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--blue); color: var(--white); }
.footer-col h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a,
.footer-col ul li { font-size: 0.88rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 0.83rem; color: rgba(255,255,255,0.45); }

/* ============================================================
   FLOATING CALL BUTTON
============================================================ */
.float-call-btn {
  display: none;
  position: fixed;
  bottom: 24px; right: 20px;
  z-index: 999;
  background: var(--yellow);
  color: var(--text-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: 99px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  transition: all var(--transition);
  animation: pulse 2.5s infinite;
}
.float-call-btn:hover { transform: scale(1.05); background: var(--yellow-dark); }

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(0,0,0,0.2), 0 0 0 0 rgba(255,252,49,0.5); }
  50%       { box-shadow: 0 6px 24px rgba(0,0,0,0.2), 0 0 0 10px rgba(255,252,49,0); }
}

/* Scroll-triggered fade-in */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE — TABLET (≤ 960px)
   — Switch to hamburger, hero still side-by-side where possible
============================================================ */
@media (max-width: 960px) {
  .section-pad { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-ctas { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .float-call-btn { display: flex; align-items: center; gap: 6px; }

  /* Hero: slightly reduced gap on tablet */
  .hero-inner { gap: 36px; padding: calc(var(--nav-height) + 48px) 24px 64px; }
  .hero-image-wrap { flex: 0 0 340px; max-width: 340px; }
  .hero-img-card img { height: 300px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-wrap img { height: 300px; }
  .about-accent-card { bottom: -16px; right: 16px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 640px)
   — Single column, text above image, no overflow
============================================================ */
@media (max-width: 640px) {
  :root { --nav-height: 64px; }

  .section-pad { padding: 48px 0; }
  .container { padding: 0 16px; }
  .section-header { margin-bottom: 32px; }

  /* Nav logo shrinks on small screens */
  .nav-logo img { height: 50px; max-width: 140px; }
  .nav-container { padding: 0 16px; gap: 8px; }

  /* Hero: stacked — text first, image below */
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: calc(var(--nav-height) + 28px) 16px 52px;
  }
  .hero-content { max-width: 100%; }
  .hero-image-wrap {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
  .hero-img-card img { height: 220px; }

  /* Buttons stack full-width on small screens */
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; }

  /* Trust items wrap compactly */
  .hero-trust { gap: 12px; }

  /* Services single column */
  .services-grid { grid-template-columns: 1fr; }

  /* Why grid: 2 columns on most phones, 1 on tiny */
  .why-grid { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .quote-form { padding: 22px 16px; }

  h1 { font-size: clamp(1.75rem, 7vw, 2.2rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 1.9rem); }
}

/* ============================================================
   RESPONSIVE — SMALL PHONES (≤ 380px)
   — 320px–375px support: tighten everything further
============================================================ */
@media (max-width: 380px) {
  .nav-logo img { height: 44px; max-width: 120px; }
  .nav-container { padding: 0 12px; }

  .hero-inner { padding: calc(var(--nav-height) + 20px) 12px 40px; gap: 24px; }
  .hero-img-card img { height: 190px; }
  .hero-badge { font-size: 0.72rem; padding: 5px 12px; }

  .why-grid { grid-template-columns: 1fr; }
  .container { padding: 0 12px; }
  .quote-form { padding: 18px 12px; }

  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
}


/* Professional circular icons */
.trust-icon, .service-icon, .why-icon, .contact-detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.trust-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: var(--yellow);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
}
.service-icon, .why-icon, .contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(1,138,249,0.12), rgba(255,252,49,0.24));
  box-shadow: inset 0 0 0 1px rgba(1,138,249,0.10);
}
.service-price {
  margin: 10px 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(1,138,249,0.10), rgba(255,252,49,0.22));
  color: var(--text-dark);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
}
.service-price strong {
  font-size: 1.35rem;
  color: var(--blue-deeper);
}
.service-price span {
  display: block;
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
}
body.menu-open { overflow: hidden; }
@media (max-width: 960px) {
  .hero-inner {
    display: flex;
  }
}
@media (max-width: 640px) {
  .mobile-menu.open { max-height: calc(100vh - var(--nav-height)); overflow-y: auto; }
  .service-icon, .why-icon, .contact-detail-icon { width: 42px; height: 42px; border-radius: 14px; }
}
