/* ============================================
   Guanacaste Fridge Repair — Main Stylesheet
   Mobile-first, fast, no frameworks
   ============================================ */

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

:root {
  --navy: #1a2233;
  --navy-light: #2c3a52;
  --green: #00a651;
  --green-dark: #008a43;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --gray-light: #e8eaed;
  --gray: #6b7280;
  --text: #1a2233;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(26, 34, 51, 0.10);
  --shadow-md: 0 4px 24px rgba(26, 34, 51, 0.14);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  color: var(--green-dark);
}

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

/* ── Typography ── */
h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 3vw, 1.35rem); font-weight: 600; line-height: 1.4; }
p  { margin-bottom: 1rem; color: var(--navy-light); }
p:last-child { margin-bottom: 0; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 56px 0;
}

section:nth-child(even):not(.hero) {
  background: var(--off-white);
}

/* ── Header / Nav ── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 960px;
  margin: 0 auto;
}

.site-logo {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: flex;
  background: rgba(255,255,255,0.10);
  border-radius: 20px;
  overflow: hidden;
}

.lang-toggle a {
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
}

.lang-toggle a.active,
.lang-toggle a:hover {
  background: var(--green);
  color: var(--white);
}

.btn-header-call {
  background: var(--green);
  color: var(--white) !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-header-call:hover {
  background: var(--green-dark);
  color: var(--white) !important;
}

/* ── Hero ── */
/* Fridge lineup photo is the hero background: bottom-anchored on mobile,
   right-anchored beside the text on desktop. #dfe1e0 matches the photo's
   studio backdrop so the seam is invisible. */
.hero {
  background-color: #dfe1e0;
  background-image: url("Images/hero-fridges.jpg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: min(100%, 720px) auto;
  color: var(--text);
  padding: 56px 0 min(58vw, 420px);
}

.hero h1 {
  color: var(--navy);
  margin-bottom: 18px;
}

.hero p {
  color: var(--navy-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 0 32px;
}

.hero-text {
  max-width: 640px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

@media (min-width: 1000px) {
  .hero {
    padding: 96px 0;
    background-image: linear-gradient(90deg, #dfe1e0 0%, #dfe1e0 24%, rgba(223,225,224,0) 46%), url("Images/hero-fridges.jpg");
    background-position: left center, right center;
    background-size: cover, auto 100%;
  }

  .hero-text {
    max-width: 52%;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--gray-light);
}

.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #1da851;
  color: var(--white);
}

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

.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}

/* ── Trust Strip ── */
.trust-strip {
  background: var(--green);
  padding: 0;
}

.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  list-style: none;
  padding: 14px 12px;
}

.trust-strip li {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 4px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.trust-strip li + li {
  border-left: 1px solid rgba(255,255,255,0.35);
}

.trust-icon {
  font-size: 1rem;
  line-height: 1;
}

/* ── Cards / Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}

.card h3 {
  margin-bottom: 10px;
  color: var(--navy);
}

/* ── Section Headers ── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.section-title {
  color: var(--navy);
  margin-bottom: 14px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
}

.text-center {
  text-align: center;
}

.text-center .section-intro {
  margin: 0 auto;
}

/* ── Brands ── */
.brands-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.brand-pill {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
}

/* ── Service Areas ── */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.area-item {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 56px 0;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 14px;
}

.cta-banner p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.cta-banner .hero-ctas {
  margin-top: 0;
  justify-content: center;
}

/* ── Contact Form ── */
.contact-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 32px;
}

@media (min-width: 680px) {
  .contact-section {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info-block h3 {
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-info-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 4px;
}

.contact-info-item p {
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-family: inherit;
  color: var(--text);
  background: var(--off-white);
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

/* ── FAQ / Accordion ── */
.faq-list {
  margin-top: 28px;
  border-top: 1px solid var(--gray-light);
}

.faq-item {
  border-bottom: 1px solid var(--gray-light);
  padding: 20px 0;
}

.faq-item h3 {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.faq-item p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 40px 0 24px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col p,
.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.60);
  line-height: 1.7;
  display: block;
}

.footer-col a:hover {
  color: var(--green);
}

.footer-logo {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

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

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 20px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.40);
  line-height: 1.6;
  max-width: 600px;
}

.footer-lang {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.footer-lang a {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.50);
}

.footer-lang a:hover,
.footer-lang a.active {
  color: var(--green);
}

/* ── WhatsApp Floating Button ── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 999;
  background: #25d366;
  color: var(--white);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  font-size: 1.6rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
  color: var(--white);
}

/* Hide float on desktop — less necessary when CTA is visible */
@media (min-width: 900px) {
  .whatsapp-float {
    width: 54px;
    height: 54px;
    font-size: 1.4rem;
  }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  section {
    padding: 40px 0;
  }

  .hero {
    padding: 48px 0 58vw;
  }

  .trust-strip li {
    font-size: 0.76rem;
    padding: 4px 10px;
  }

  .btn {
    font-size: 0.95rem;
    padding: 13px 22px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .hero-ctas .btn {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* ── Utilities ── */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0  { margin-bottom: 0 !important; }
.green { color: var(--green); }

/* ── Phone number display ── */
.phone-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.phone-number a {
  color: inherit;
}

.phone-number a:hover {
  color: var(--green);
}
