/*
Theme Name: Bahamaair
Theme URI: https://bahama.kinothen.com
Author: Siraj
Description: Custom theme for Bahama Air Conditioning & Heating — HVAC services in South Florida.
Version: 1.0.0
Text Domain: bahamaair
*/

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

:root {
  --primary: #F66035;
  --primary-hover: #FF7800;
  --dark: #313131;
  --text: #111111;
  --light-bg: #e2edf0;
  --white: #ffffff;
  --blue: #0003a8;
  --red: #fc1616;
  --footer-bg: #222222;
  --max-width: 1100px;
  --header-height: 140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #eeeeee;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.3; }

/* ── Utility ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn:hover { background: var(--primary-hover); }

.section-pad { padding: 60px 0; }

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

.header-top {
  background: url('resources/images/banner_image_original_1409770601-1920w.jpg') center/cover;
  position: relative;
}
.header-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.80);
}
.header-top .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-logo .logo-img {
  max-height: 70px;
  width: auto;
}
.site-logo .logo-text {
  font-family: 'Belgrano', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}
.site-logo .logo-text span {
  color: var(--primary);
}
.site-logo .logo-text small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #666;
  letter-spacing: 0.5px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone a {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
}
.header-phone a:hover { color: var(--primary); }

.header-social {
  display: flex;
  gap: 10px;
}
.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  font-size: 16px;
  transition: background 0.3s;
}
.header-social a:hover { background: var(--primary); }

/* ── Navigation ────────────────────────────────────────────── */
.main-nav {
  background: var(--white);
  border-top: 1px solid #dee1e3;
  border-bottom: 1px solid #dee1e3;
}
.main-nav .container {
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: stretch;
}
.nav-menu > li {
  position: relative;
}
.nav-menu > li + li::before {
  content: '/';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 14px;
}
.nav-menu > li > a {
  display: block;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  transition: color 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  color: var(--primary);
}

/* Dropdown */
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #333;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.nav-menu li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  border-bottom: 1px solid #444;
  transition: background 0.2s;
}
.nav-menu .sub-menu a:hover { background: #444; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--dark);
  cursor: pointer;
  padding: 12px 20px;
}

/* ── Hero Slider ───────────────────────────────────────────── */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  z-index: 1;
}
.hero-content h1 {
  font-family: 'Belgrano', Georgia, serif;
  font-size: 42px;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  margin-bottom: 16px;
  max-width: 700px;
}
.hero-content p {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 24px;
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ── HVAC Services Intro ───────────────────────────────────── */
.services-intro {
  background: url('resources/images/banner_image_original_1409770601-1920w.jpg') center/cover fixed;
  position: relative;
}
.services-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.55);
}
.services-intro .container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 70px;
  padding-bottom: 70px;
}
.services-intro h2 {
  font-family: 'Belgrano', Georgia, serif;
  font-size: 36px;
  color: var(--dark);
  margin-bottom: 12px;
}
.services-intro .divider {
  width: 80px;
  height: 2px;
  background: #999;
  margin: 0 auto 20px;
}
.services-intro p {
  max-width: 700px;
  margin: 0 auto 24px;
  font-size: 17px;
}

/* ── Three Services Columns ────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  background: var(--white);
}
.services-grid .container {
  display: contents;
}
.service-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
}
.service-card img {
  width: 140px;
  height: auto;
  margin: 0 auto 20px;
}
.service-card h3 {
  font-family: 'Belgrano', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}
.service-card h3.color-blue { color: var(--blue); }
.service-card h3.color-red { color: var(--red); }
.service-card h3.color-black { color: var(--dark); }
.service-card p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #555;
}

/* ── Work Photo + Reviews ──────────────────────────────────── */
.reviews-section {
  background: var(--light-bg);
}
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}
.reviews-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reviews-cta {
  padding: 40px;
  text-align: center;
}
.reviews-cta h3 {
  font-family: 'Belgrano', Georgia, serif;
  font-size: 24px;
  margin-bottom: 24px;
}
.reviews-cta .review-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.reviews-cta .review-btn {
  display: inline-block;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--dark);
  color: var(--dark);
  transition: all 0.3s;
  min-width: 200px;
}
.reviews-cta .review-btn:hover {
  background: var(--dark);
  color: var(--white);
}

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials {
  background: var(--white);
}
.testimonials h2 {
  font-family: 'Belgrano', Georgia, serif;
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.testimonial-card {
  padding: 28px;
  background: #f9f9f9;
  border-left: 4px solid var(--primary);
}
.testimonial-card p {
  font-style: italic;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
  color: #555;
}
.testimonial-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--dark);
}

/* ── Full-Width Photo ──────────────────────────────────────── */
.full-photo img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

/* ── Tagline Banner ────────────────────────────────────────── */
.tagline-banner {
  background: var(--light-bg);
  text-align: center;
}
.tagline-banner p {
  font-size: 18px;
  font-weight: 600;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--dark);
}

/* ── Brands ────────────────────────────────────────────────── */
.brands-section {
  background: var(--white);
  text-align: center;
}
.brands-section h2 {
  font-family: 'Belgrano', Georgia, serif;
  font-size: 32px;
  margin-bottom: 30px;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  color: var(--white);
  padding: 50px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer-col h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 16px;
  font-family: 'Belgrano', Georgia, serif;
}
.footer-col ul li {
  font-size: 16px;
  font-weight: 600;
  padding: 3px 0;
}
.footer-contact p {
  margin-bottom: 8px;
  font-size: 15px;
}
.footer-contact a {
  color: var(--primary);
}
.footer-contact a:hover {
  text-decoration: underline;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #444;
  color: var(--white);
  font-size: 18px;
  transition: background 0.3s;
}
.footer-social a:hover { background: var(--primary); }

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 14px;
  color: #999;
}

.footer-phone {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 24px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
}
a.footer-phone,
a.footer-phone:visited { color: #ffffff; }
.footer-phone:hover { background: var(--primary-hover); }

/* ── Page Content ──────────────────────────────────────────── */
.page-header {
  background: var(--dark);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}
.page-header h1 {
  font-family: 'Belgrano', Georgia, serif;
  font-size: 36px;
}

.page-content {
  background: var(--white);
  padding: 50px 0;
}
.page-content .container {
  max-width: 800px;
}
.page-content h2, .page-content h3 {
  font-family: 'Belgrano', Georgia, serif;
  margin: 24px 0 12px;
}
.page-content p { margin-bottom: 16px; }
.page-content ul, .page-content ol {
  margin: 0 0 16px 24px;
  list-style: disc;
}
.page-content img {
  margin: 20px 0;
  border-radius: 4px;
}

/* ── Blog ──────────────────────────────────────────────────── */
.post-list {
  display: grid;
  gap: 30px;
}
.post-card {
  background: var(--white);
  padding: 30px;
  border-left: 4px solid var(--primary);
}
.post-card h2 a {
  font-family: 'Belgrano', Georgia, serif;
  font-size: 24px;
  color: var(--dark);
}
.post-card h2 a:hover { color: var(--primary); }
.post-meta {
  font-size: 14px;
  color: #888;
  margin: 8px 0 14px;
}
.post-card .excerpt { color: #555; }

.post-single { background: var(--white); padding: 50px 0; }
.post-single .container { max-width: 800px; }
.post-single h1 {
  font-family: 'Belgrano', Georgia, serif;
  font-size: 32px;
  margin-bottom: 10px;
}
.post-single .post-meta { margin-bottom: 30px; }
.post-single .entry-content p { margin-bottom: 16px; }
.post-single .entry-content h2,
.post-single .entry-content h3 {
  font-family: 'Belgrano', Georgia, serif;
  margin: 24px 0 12px;
}

/* ── Contact Form (basic styling for CF7 or similar) ───────── */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 14px;
}
.wpcf7 input[type="submit"] {
  background: var(--primary);
  color: var(--white);
  padding: 12px 32px;
  border: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-transform: uppercase;
}
.wpcf7 input[type="submit"]:hover { background: var(--primary-hover); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 { font-size: 28px; }
  .hero { height: 380px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav .container {
    flex-wrap: wrap;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li + li::before { display: none; }
  .nav-menu > li > a {
    padding: 12px 20px;
    border-top: 1px solid #eee;
  }
  .nav-menu .sub-menu {
    position: static;
    box-shadow: none;
  }

  .header-top .container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .header-right { justify-content: center; }
  .header-phone a { font-size: 18px; }
}
