/* ============================================
   AC & HEATING SERVICE LLC — Main Stylesheet
   Colors: Blue #1A4A8A | Red #C0392B | White #FFF
   ============================================ */

:root {
  --blue: #1A4A8A;
  --blue-dark: #133a6e;
  --blue-light: #2563b0;
  --red: #C0392B;
  --red-dark: #a93226;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.1);
  --shadow: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.16);
  --radius: 10px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
}

/* ---- TOPBAR ---- */
.topbar {
  background: var(--blue-dark);
  color: #fde68a;
  text-align: center;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .01em;
}

/* ---- NAVBAR ---- */
nav {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 64px;
  width: 64px;
  min-width: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--blue);
  flex-shrink: 0;
}

.nav-logo span {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.2;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s;
}

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

.btn-lang {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  color: var(--gray-700);
}
.btn-lang:hover { background: var(--gray-200); }

.btn-cta {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s;
  display: inline-block;
}
.btn-cta:hover { background: var(--red-dark); transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all .3s;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #2980b9 100%);
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .25;
}

.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  color: var(--white);
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.hero-content p {
  font-size: 1.2rem;
  opacity: .92;
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 8px;
  padding: 11px 24px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  display: inline-block;
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}

/* ---- SECTIONS ---- */
section { padding: 72px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-title p {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card-img {
  height: 160px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card-img .icon-fallback {
  font-size: 3.5rem;
}

.service-card-body { padding: 20px; }
.service-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}
.service-card-body p {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ---- WHY US ---- */
.why-section { background: var(--gray-50); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.why-card .why-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}
.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}
.why-card p {
  font-size: .875rem;
  color: var(--gray-600);
}

/* ---- CONTACT ---- */
.contact-section { background: var(--white); }

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

.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-item .ci-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item .ci-text strong {
  display: block;
  font-weight: 600;
  color: var(--gray-800);
  font-size: .9rem;
}
.contact-item .ci-text span {
  color: var(--gray-600);
  font-size: .875rem;
}

/* Contact Form */
.contact-form h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 20px;
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: .9rem;
  color: var(--gray-800);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: var(--white);
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,74,138,.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.btn-submit {
  width: 100%;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  letter-spacing: .02em;
}
.btn-submit:hover { background: var(--blue-dark); transform: translateY(-1px); }

.form-success {
  display: none;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  color: #065f46;
  font-weight: 600;
  margin-top: 12px;
}

/* ---- FOOTER ---- */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.8);
  padding: 40px 24px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-brand img {
  height: 56px;
  width: 56px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  margin-bottom: 10px;
}
.footer-brand p {
  font-size: .85rem;
  max-width: 280px;
  line-height: 1.5;
}

.footer-links h4 {
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 12px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 7px; }
.footer-links a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .875rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 18px;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px 24px;
    box-shadow: var(--shadow);
    gap: 14px;
    border-top: 1px solid var(--gray-200);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .hero-content h1 { font-size: 1.9rem; }
  .hero-content p { font-size: 1rem; }

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

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

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.6rem; }
  section { padding: 48px 16px; }
}
