/* ========================================
   易達存迷你倉 - 前端樣式
   ======================================== */

:root {
  --primary-color: #0266B3;
  --secondary-color: #035f4c;
  --ink: #182734;
  --text-color: #2c363f;
  --muted-color: #64717b;
  --line-color: #dbe7e4;
  --light-bg: #f0f7f5;
  --white-bg: #ffffff;
  --surface-bg: #f7fbfa;
  --border-color: #cde5db;
  --footer-bg: #222222;
  --shadow-sm: 0 3px 12px rgba(3, 95, 76, 0.08);
  --shadow-md: 0 8px 22px rgba(3, 95, 76, 0.14);
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  background: #fefefe;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: none;
}

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary-color), white 35%);
  outline-offset: 3px;
}

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  z-index: 1200;
  border-bottom: 1px solid rgba(28, 56, 74, 0.09);
  box-shadow: 0 2px 12px rgba(3, 95, 76, 0.08);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  gap: 1.5rem;
  position: relative;
  z-index: 1201;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.brand-name {
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-name::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 4px;
  background: var(--primary-color);
}

/* Desktop Navigation */
.main-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.menu-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.menu-list li {
  position: relative;
}

.menu-list a {
  display: flex;
  align-items: center;
  padding: 0.72rem 0.7rem;
  color: var(--text-color);
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
}

.menu-list a:hover,
.menu-list a.active {
  background: transparent;
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.menu-list a.active {
  background: rgba(2, 102, 179, 0.08);
}

/* Sub-menu */
.menu-caret {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  flex-shrink: 0;
}

.sub-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 230px;
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  background: var(--white-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 42px rgba(9, 31, 48, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1300;
}

.menu-item:hover > .sub-menu,
.menu-item:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu .menu-link {
  justify-content: flex-start;
  width: 100%;
  padding: 0.72rem 0.85rem;
  border-bottom: 0;
  line-height: 1.35;
}

.sub-menu .sub-menu {
  top: -0.45rem;
  left: calc(100% + 0.45rem);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: 1.25rem;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  background: linear-gradient(135deg, var(--primary-color), #0b7bd1);
  color: white !important;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(2,102,179,0.22);
}

.nav-phone::before {
  content: "";
  width: 16px;
  height: 16px;
  background: url('../icons/phone.svg') center / contain no-repeat;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.nav-phone:hover {
  background: linear-gradient(135deg, var(--secondary-color), #04715a);
  color: white !important;
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-color);
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  background: var(--light-bg);
  border: 1px solid rgba(2,102,179,0.12);
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  color: var(--text-color);
  white-space: nowrap;
}

.lang-switch a {
  color: #5f6b76;
  font-weight: 600;
}

.lang-switch a.active {
  color: var(--primary-color);
}

.lang-switch span {
  color: #9aa4ad;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  min-height: clamp(360px, 52vh, 520px);
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 76px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(3, 95, 76, 0.22)),
    linear-gradient(90deg, rgba(0,0,0,0.16), rgba(0,0,0,0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  padding: 3.8rem 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.03;
  max-width: 880px;
  margin: 0 auto 1rem;
  color: var(--primary-color);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  background: rgba(255,255,255,0.84);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  text-wrap: balance;
}

.hero p {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: white;
  max-width: 680px;
  margin: 0 auto 1.8rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), #0b7bd1);
  color: white !important;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(2, 102, 179, 0.3);
}

.hero-btn::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url('../icons/box.svg') center / contain no-repeat;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.hero-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 102, 179, 0.4);
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: clamp(3rem, 5.5vw, 5rem) max(1.25rem, calc((100vw - 1100px) / 2));
  max-width: none;
  margin: 0;
}

.section-alt {
  background: var(--light-bg);
}

.section-title {
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 1100px;
}

.section-title h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  color: var(--secondary-color);
  margin: 0 0 0.5rem;
  line-height: 1.14;
  font-weight: 900;
  text-wrap: balance;
}

.section-title p {
  color: #666;
  margin: 0;
}

.section-divider {
  width: 72px;
  height: 3px;
  background: var(--primary-color);
  margin: 0.8rem auto 0;
  border-radius: 999px;
}

/* ========================================
   Storage Types / Plans Grid
   ======================================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.plan-card {
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2,102,179,0.32);
}

.plan-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
}

.plan-content {
  padding: 1.5rem;
}

.plan-content h3 {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.25;
}

.plan-content p {
  color: var(--muted-color);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.plan-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(23, 33, 43, 0.08);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li::before {
  content: "✓";
  color: var(--secondary-color);
  font-weight: bold;
}

/* ========================================
   Reasons / Features
   ======================================== */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.reason-card {
  background: var(--surface-bg);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.reason-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.reason-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.reason-card h4 {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-size: 1.1rem;
}

.reason-card p {
  margin: 0;
  color: var(--muted-color);
  font-size: 0.9rem;
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--white-bg);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 15px;
  line-height: 1;
}

.testimonial-stars {
  color: #c6952d;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.testimonial-content {
  font-style: italic;
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   FAQ Accordion
   ======================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.section > div[style*="max-width: 800px"],
.section > div[style*="max-width: 900px"] {
  max-width: 840px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.section > div[style*="max-width"] p {
  color: var(--text-color) !important;
  font-size: 1.05rem !important;
  line-height: 1.9 !important;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--white-bg);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(2,102,179,0.06);
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  background: #f7faf9;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 1.25rem 1.5rem;
}

.faq-answer p {
  margin: 0;
  color: #555;
  line-height: 1.7;
}

/* ========================================
   Contact / Map
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.28fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info-card {
  background: var(--white-bg);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  margin: 0 0 0.25rem;
  color: var(--ink);
  font-size: 1rem;
}

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

.map-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  justify-self: stretch;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  min-height: 100%;
}

.map-container iframe {
   display: block;
   width: 100%;
   height: clamp(480px, 58vh, 680px);
   min-height: 480px;
   border: none;
}

/* ========================================
   Gallery Grid
   ======================================== */
.gallery-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 1rem;
   max-width: 1200px;
   margin: 0 auto;
}

.gallery-item {
   border-radius: var(--radius-md);
   overflow: hidden;
   box-shadow: var(--shadow-sm);
}

.gallery-item img {
   width: 100%;
   aspect-ratio: 4 / 3;
   height: auto;
   object-fit: cover;
   transition: transform 0.3s ease;
}

.gallery-item:hover img {
   transform: scale(1.05);
}

.hero-compact {
  height: clamp(340px, 48vh, 460px);
  min-height: 0;
}

.hero-compact .hero-content {
  padding: clamp(2.6rem, 5vw, 3.8rem) 0;
}

.hero-compact h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  max-width: min(1040px, 100%);
  margin-bottom: 0;
}

.hero-kicker {
  display: block;
  width: fit-content;
  margin: 0 auto 0.85rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  color: var(--secondary-color) !important;
  font-size: 0.95rem !important;
  font-weight: 700;
  text-shadow: none !important;
}

.box-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.box-home-copy {
  min-width: 0;
}

.section-title-local {
  text-align: left;
  margin-left: 0;
  margin-bottom: 1.25rem;
}

.section-title-local .section-divider {
  margin-left: 0;
}

.box-home-copy p {
  margin: 0 0 1.1rem;
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.85;
}

.box-home-features {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.box-home-features li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--light-bg);
  border: 1px solid var(--border-color);
}

.box-home-features li::before {
  content: "✓";
  color: var(--secondary-color);
  font-weight: 800;
  flex-shrink: 0;
}

.box-home-image {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.box-home-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.box-home-cta {
  background: #25D366;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.22);
}

.box-home-cta:hover {
  background: #128C7E;
}

.box-home-faq {
  max-width: 840px;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--white-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.box-home-faq dt {
  color: var(--ink);
  font-weight: 800;
  margin-top: 1.1rem;
}

.box-home-faq dt:first-child {
  margin-top: 0;
}

.box-home-faq dd {
  margin: 0.35rem 0 0;
  color: var(--muted-color);
  line-height: 1.75;
}

.content-page {
  max-width: 860px;
  margin: 0 auto;
  color: var(--text-color);
}

.content-page p {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  line-height: 1.9;
}

.plan-image,
.gallery-item img {
  cursor: zoom-in;
}

.pricing-images {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 2rem;
   padding: 1rem;
   max-width: 1100px;
   margin: 0 auto;
}

.pricing-images img {
   max-width: 100%;
   height: auto;
   border-radius: var(--radius-sm);
   box-shadow: var(--shadow-md);
   background: white;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.82);
  z-index: 2000;
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
}

.image-lightbox-content {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.image-lightbox-image {
  max-width: 100%;
  max-height: calc(88vh - 3rem);
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.image-lightbox-caption {
  color: #fff;
  text-align: center;
  font-size: 0.95rem;
}

.image-lightbox-close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-sm);
  background: #fff;
  color: #111;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.image-lightbox-close:hover {
  background: #f2f2f2;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: #222;
  color: white;
  padding: 3rem 2rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: white;
}

.footer-col p {
  margin: 0 0 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white !important;
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white !important;
}

.btn-whatsapp {
  background: #25D366;
  color: white !important;
}

.btn-whatsapp:hover {
  background: #128C7E;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 1.5rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .box-home-layout {
    grid-template-columns: 1fr;
  }

  .map-container iframe {
    height: 520px;
    min-height: 520px;
  }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
  .header-container {
    min-height: 64px;
    padding: 0 1rem;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .mobile-menu-toggle {
    display: flex;
    position: relative;
    z-index: 1601;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(29, 57, 73, 0.12);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.92);
  }

  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: auto;
    height: calc(100dvh - 64px);
    max-height: calc(100dvh - 64px);
    background: var(--white-bg);
    padding: 1rem max(1rem, env(safe-area-inset-left)) calc(1.5rem + env(safe-area-inset-bottom));
    transform: none;
    opacity: 1;
    transition: none;
    visibility: visible;
    pointer-events: none;
    display: none;
    flex-direction: column;
    align-items: stretch;
    z-index: 1500;
    box-shadow: 0 24px 48px rgba(9, 31, 48, 0.18);
    overflow-y: auto;
  }

  .main-nav.active {
    display: flex;
    pointer-events: auto;
  }

  .menu-list {
    flex-direction: column;
    gap: 0;
    flex-wrap: nowrap;
    width: 100%;
  }

  .menu-list li {
    width: 100%;
  }

  .menu-list a {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1.02rem;
    justify-content: space-between;
  }

  .sub-menu {
    position: static;
    box-shadow: none;
    padding: 0.35rem 0 0.35rem 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    margin-top: 0.5rem;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .sub-menu .sub-menu {
    top: auto;
    left: auto;
  }

  .menu-caret {
    transform: rotate(45deg);
  }

  .nav-actions {
    display: grid;
    width: 100%;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    margin-left: 0;
    gap: 0.75rem;
  }

  .nav-phone {
    width: 100%;
    justify-content: center;
  }

  .lang-switch {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    padding: 0.75rem 1rem;
  }

  .hero {
    min-height: 440px;
    margin-top: 64px;
    align-items: center;
  }

  .hero-compact {
    height: 420px;
  }

  .hero-compact .hero-content {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .hero p {
    font-size: 1rem;
    padding: 0;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .box-home-image img {
    aspect-ratio: 16 / 11;
  }

  .section-title-local {
    text-align: center;
    margin-left: auto;
  }

  .section-title-local .section-divider {
    margin-left: auto;
  }

  .section-title h2 {
    font-size: 1.65rem;
  }

  .plans-grid,
  .reasons-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .reason-icon {
    width: 50px;
    height: 50px;
  }

  .contact-info-card {
    padding: 1.5rem;
  }

  .map-container iframe {
    height: min(72vh, 560px);
    min-height: 420px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-col {
    margin-bottom: 1.5rem;
  }

  .floating-whatsapp span {
    display: none;
  }

  .floating-whatsapp {
    padding: 0.95rem;
  }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-compact {
    height: 360px;
  }

  .hero-kicker {
    max-width: min(92vw, 360px);
    white-space: normal;
  }

  .plan-content {
    padding: 1rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .map-container iframe {
    height: 460px;
    min-height: 460px;
  }
}

/* Pad Landscape (1024px - 1200px) */
@media (min-width: 1024px) and (max-width: 1200px) {
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .plan-image,
  .hero {
    -webkit-font-smoothing: antialiased;
  }
}
.footer-col {
  min-width: 0;
}

.footer-brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.85rem;
}

.footer-tagline {
  color: rgba(255,255,255,0.76) !important;
  line-height: 1.75;
}

.footer-contact-item,
.footer-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-contact-item img,
.footer-feature-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #25D366, #1fb35a);
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(18,140,126,0.28);
  z-index: 1100;
}

.floating-whatsapp img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.floating-whatsapp:hover {
  color: #fff !important;
  transform: translateY(-2px);
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(280px, calc(100vw - 32px));
  background: #ffffff;
  border: 1px solid #d7e2de;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  z-index: 1100;
  animation: whatsappFloatIn 0.45s ease;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float.is-hidden {
  display: none;
}

.whatsapp-float p {
  margin: 0 1.4rem 0.65rem 0;
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.45;
}

.whatsapp-float a {
  color: #25D366 !important;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.whatsapp-float a::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.14);
}

.whatsapp-float-close {
  position: absolute;
  top: 4px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #999;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}

.whatsapp-float-close:hover,
.whatsapp-float-close:focus-visible {
  color: var(--secondary-color);
}

@keyframes whatsappFloatIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
