/*
 * Global styles for Bye Bye Heat | Air Conditioning & Heating Services
 *
 * The palette was inspired by One Hour Heating & Air.  We chose a dark navy
 * blue for the primary color, a warm amber for accents, and a lighter blue for
 * highlights.  All colors meet contrast guidelines (WCAG AA) when used
 * together.  Font sizes and line heights are defined for responsive text.
 */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', sans-serif;
  color: #0b2c53; /* dark navy */
  background-color: #f9fafb;
  line-height: 1.6;
}

a {
  color: #007ACC; /* azure accent */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #005EAA;
}

header {
  background-color: #0b2c53;
  color: #fff;
  /* Further increase padding to accommodate an even larger logo */
  padding: 2rem;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Navigation */
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand with logo image */
/* Make the logo image more prominent by increasing height */
/*
 * Brand container uses flex to align the logo and text neatly.  We
 * increased the logo height to make it more prominent and allow
 * the company name/tagline to stack beside it.  The margin on the
 * image provides breathing room between the icon and the text.
 */
.brand {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem; /* adds space below */
}

/* Logo image size and spacing.  Increasing the height here directly
 * drives the visual prominence of the graphic.  A right margin
 * separates it from the text container.  Removing vertical alignment
 * allows flexbox to handle centering.  */
.brand img {
  height: 80px;
  margin-right: 8px;
}

/* Container for the company name and tagline.  Stacks the text
 * vertically to give the logo room to breathe.  */
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

/* Company name styling.  This remains large and bold to catch the
 * visitor’s eye.  The colour inherits from the header (white) for
 * maximum contrast on the dark background.  */
.company-name {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 0px;
  color: #ffffff;
}

/* Tagline styling.  A smaller size and a lighter accent colour
 * complement the company name without competing with it.  */
.tagline {
  font-size: 0.95rem;
  color: #a9c8e8;
  margin-top: 0.25rem;
}

.nav-menu {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.nav-menu li a {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.nav-menu li a:hover {
  opacity: 0.8;
}

/* Sticky call button for mobile */
/* Sticky call button for mobile */
.call-fixed {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007ACC;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  z-index: 100;
}

.call-fixed:hover {
  background-color: #005EAA;
}

/* Hero section */
.hero {
  background-image: url('hero.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 120px 0;
  text-align: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Use a dark blue tinted overlay instead of black */
  background: rgba(11, 44, 83, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn-primary {
  display: inline-block;
  background-color: #007ACC;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #005EAA;
}

/* Section styles */
section {
  padding: 3rem 0;
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #0b2c53;
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #007ACC;
}

.feature p {
  font-size: 0.95rem;
  color: #0b2c53;
}

/* Footer */
footer {
  background-color: #0b2c53;
  color: #fff;
  padding: 2rem 0;
  font-size: 0.9rem;
}

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

.footer-section h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #ffc107;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.25rem;
}

.footer-section li a {
  color: #fff;
  opacity: 0.9;
}

.footer-section li a:hover {
  opacity: 1;
}

.copyright {
  text-align: center;
  font-size: 0.8rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    background-color: #0b2c53;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: block;
    cursor: pointer;
  }

  .call-fixed {
    display: block;
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}
