/* Updated styles.css with new hero sections and boiler dropdown styling */

/* ==================================
   Reset & Base
   ================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%; /* 1rem = 16px */
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #1C2331; /* dark navy for primary text */
  background-color: #FFFFFF;
}

/* Remove default link underline */
a {
  text-decoration: none;
  color: inherit;
}

/* Utility Classes */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==================================
   Color Variables
   ================================== */
:root {
  --color-primary: #0D1B2A;        /* Header background, dark navy */
  --color-secondary: #1F3A60;      /* Buttons & hover states */
  --color-accent: #E74C3C;         /* Accent (if needed) */
  --color-whatsapp: #25D366;       /* WhatsApp green */
  --color-text-light: #FFFFFF;     /* White text */
  --color-bg-hero: #E5E5E5;        /* Light gray hero background */
  --color-bg-section: #F9F9F9;     /* Light background for sections */
  --color-card-bg: #FFFFFF;        /* Card background */
  --color-border: #DDDDDD;         /* Light border color */
  --color-text-muted: #666666;     /* Muted text */
}

/* ==================================
   Typography
   ================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: #333333;
}

/* ==================================
   Header & Navigation
   ================================== */



header {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-text-light);
}

.logo-img {
  width: 80px; /* Adjust as needed */
  height: 80px; /* Adjust as needed */
  object-fit: contain;
}

.logo-img-large {
  width: 100px; /* Adjust as needed */
  height: 100px; /* Adjust as needed */
  margin: 0 0.5rem;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--color-text-light);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #85C1E9;
}

.nav-links a.active,
.footer-links a.active {
  color: #85C1E9; /* Highlight color */
  font-weight: 700;
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #85C1E9;
}

/* For footer links (more subtle) */
.footer-links a.active {
  font-weight: 600;
  text-decoration: underline;
}

/* Header CTA Buttons */
.header-cta {
  display: flex;
  align-items: center;
  margin-left: 2rem;
}

.header-cta .btn-quote {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.header-cta .btn-quote:hover {
  background-color: #163349;
}

.header-cta .btn-whatsapp {
  background-color: var(--color-whatsapp);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  transition: background-color 0.3s ease;
}

.header-cta .btn-whatsapp:hover {
  background-color: #1DAF59;
}

.header-cta .btn-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: var(--color-text-light);
}


.header-cta .btn-facebook {
  background-color: #1877F2; /* Facebook blue */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  transition: background-color 0.3s ease;
}

.header-cta .btn-facebook:hover {
  background-color: #155db2; /* Darker Facebook blue for hover */
}

.header-cta .btn-facebook svg {
  width: 20px;
  height: 20px;
  fill: var(--color-text-light); /* same icon color as WhatsApp */
}
/* ==================================
   Hero Section (Base)
   ================================== */
.hero {
  background:
    linear-gradient(rgba(13, 27, 42, 0.7), rgba(13, 27, 42, 0.7)),
    url('images/GasBoiler.jpg') center/cover no-repeat;
  padding: 3rem 0;
  min-height: 80vh;
  color: var(--color-text-light); /* forces all hero text to be white */
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: transparent; /* Transparent for background image */
  border-radius: 10px;
  overflow: hidden;
}

/* Base text styling inside any hero */
.hero-text {
  flex: 1;
  padding: 3rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-text .logo-large {
  display: flex;
  align-items: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.hero-text h2 {
  font-size: 2.5rem;                 /* match Services page font-size */
  color: var(--color-text-light);    /* white over dark overlay */
  margin-bottom: 1.5rem;             
  line-height: 1.2;
  text-align: center;                /* center the headline text */
}

.hero-text p {
  font-size: 1.1rem;
  color: #FFFFFF;            
  text-align: center;            /* Center-align all hero paragraph text */
  max-width: 600px;
  margin: 0 auto 2rem auto;      /* Center by auto left/right margins */
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
  display: flex;
  gap: 1rem;                         /* space between “Our Services” & WhatsApp */
  justify-content: center;           /* center horizontally under h2 */
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
}

.btn-primary:hover {
  background-color: #163349;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--color-whatsapp);
  width: 48px;
  height: 48px;
  margin-left: 1rem;
  border-radius: 50%;
  justify-content: center;
}

.btn-secondary svg {
  width: 24px;
  height: 24px;
  fill: var(--color-text-light);
}

.btn-secondary:hover {
  background-color: #1DAF59;
  transform: translateY(-2px);
}

.btn-facebook-secondary {
  background-color: #1877F2;   /* Facebook blue */
  width: 48px;
  height: 48px;
  margin-left: 1rem;
  border-radius: 50%;
  display: flex;          /* center the icon */
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;  /* remove underline */
}

.btn-facebook-secondary svg {
  width: 24px;
  height: 24px;
  fill: white;            /* white icon */
}

.btn-facebook-secondary:hover {
  background-color: #155db2; /* darker blue on hover */
  transform: translateY(-2px);
  cursor: pointer;
}

/* Container for image + text */
.about-flex-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap; /* allows wrapping on small screens */
}

/* Image container */
.about-image {
  flex: 0 0 250px;  /* fixed width on desktop */
  max-width: 100%;  /* prevent overflow */
}

/* Image styling */
.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: block;
}

/* Text container */
.about-text {
  flex: 1 1 0;      /* take remaining space, allow shrinking */
  min-width: 0;     /* critical to allow shrinking in flexbox */
  word-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
}

/* Full width text below */
.full-width-text {
  margin-top: 30px;
}

/* MOBILE STYLES */
@media (max-width: 768px) {
  .about-flex-container {
    flex-direction: column; /* stack image + text vertically */
  }

  .about-image {
    flex: none;
    width: 100%;       /* full width image */
    max-width: 300px;  /* optional max width */
    margin: 0 auto 20px;
  }

  .about-text {
    width: 100%;
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
  }

  .about-image {
    flex: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px;
  }

  .about-text {
    width: 100%;
  }
}

/* ==================================
   Page-Specific Hero Backgrounds
   ================================== */
.hero.about-hero {
  background:
    linear-gradient(rgba(13, 27, 42, 0.7), rgba(13, 27, 42, 0.7)),
    url('images/boiler4.jpg') center/cover no-repeat;
}

.hero.services-hero {
  background:
    linear-gradient(rgba(13, 27, 42, 0.7), rgba(13, 27, 42, 0.7)),
    url('images/boiler7.jpg') center/cover no-repeat;
}

.hero.boilers-hero {
  background:
    linear-gradient(rgba(13, 27, 42, 0.7), rgba(13, 27, 42, 0.7)),
    url('images/Boiler3.jpg') center/cover no-repeat;
}

.indented-list {
  margin-left: 1.5rem;      /* Adjust indentation as needed */
  list-style-position: inside; /* Keeps bullets aligned nicely */
  margin-bottom: 1.5rem;
}

.getintouch-button {
  text-align: center;       /* Center the button container */
  margin-top: 1.5rem;
}

.getintouch-button .btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  padding: 0.8rem 1.8rem;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.getintouch-button .btn-primary:hover {
  background-color: #163349;
  transform: translateY(-2px);
}
/* Centered Hero Text for pages without a side image */
.centered-hero .hero-container {
  justify-content: center;
}

.centered-hero .hero-text {
  margin: 0 auto;
  text-align: center;
}

/* ==================================
   Section Titles
   ================================== */
.section {
  padding: 4rem 0;
  background-color: var(--color-bg-section);
}

.section-light {
  background-color: #FFFFFF;
}

.section .section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

/* ==================================
   Services Page Layout
   ================================== */
.services-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card h3 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.service-card .btn {
  align-self: flex-start;
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
}

.service-card .btn:hover {
  background-color: #163349;
  transform: translateY(-1px);
}

/* ==================================
   Boilers Page Layout
   ================================== */
.boilers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* Accordion dropdown styling */
.accordion details {
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  background-color: var(--color-card-bg);
  padding: 0.5rem 1rem;
}

.accordion summary {
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::before {
  content: '▶';
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}

.accordion details[open] summary::before {
  transform: rotate(90deg);
}

.accordion ul {
  margin-top: 0.5rem;
  padding-left: 1.5rem;
}

.accordion ul li {
  margin-bottom: 0.3rem;
}

.boiler-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.boiler-card:hover {
  transform: translateY(-5px);
}

.boiler-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.boiler-card .boiler-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.boiler-card .boiler-info h3 {
  margin-bottom: 0.8rem;
  color: var(--color-secondary);
}

.boiler-card .boiler-info p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.boiler-card .boiler-info .price {
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.boiler-card .boiler-info .btn {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  align-self: flex-start;
}

.boiler-card .boiler-info .btn:hover {
  background-color: #163349;
  transform: translateY(-1px);
}

/* Contact Page & Form - Responsive Grid Layout
   ================================== */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 1rem; /* prevent edge overflow on small screens */
}

.contact-details,
.contact-form {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-details:hover,
.contact-form:hover {
  transform: translateY(-5px);
}

.contact-details h3 {
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 1.5rem;
}

.contact-details p,
.contact-details ul {
  color: #333333;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.contact-details ul {
  list-style: none;
  padding-left: 0;
}

.contact-details ul li {
  margin-bottom: 0.5rem;
}

.contact-details .map-placeholder {
  margin-top: auto;
  width: 100%;
  height: 220px;
  background-color: #ddd;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 1rem;
  box-sizing: border-box;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #444;
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  max-width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 1rem;
  color: #333333;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--color-secondary);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form .submit-btn {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  align-self: flex-start;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-form .submit-btn:hover {
  background-color: #163349;
  transform: translateY(-2px);
}

/* Responsive fixes to prevent overflow */
@media (max-width: 576px) {
  .contact-container {
    display: block;
    padding: 0 1rem;
  }

  .contact-details,
  .contact-form {
    width: 100%;
    max-width: 100%;
  }

  .contact-form .submit-btn {
    width: 100%;
    text-align: center;
  }
}


.contact-details iframe {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  display: block;
}

/* ==================================
   Footer
   ================================== */
footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 2rem 0;
  text-align: center;
}
footer .footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}
footer .footer-links li {
  margin: 0 1rem;
}
footer .footer-links a {
  color: var(--color-text-light);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
footer .footer-links a:hover {
  color: #85C1E9;
}
footer p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #DDDDDD;
}
/* ==================================
   Media Queries (Responsive Design)
   ================================== */
/* Tablets and below */
@media (max-width: 576px) {
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-text {
    padding: 2rem 1rem;
  }
  .contact-container {
  .contact-container {
    display: block;
    padding: 0 1rem;
  }
  .contact-details,
  .contact-form {
    width: 100%;
    max-width: 100%;
  }
  .contact-form .submit-btn {
    width: 100%;
    text-align: center;
    flex-direction: column;
  }
  }
}
}
iframe {
/* Mobile */
@media (max-width: 576px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    flex-direction: column;
  width: 100%;
    width: 100%;
  height: 220px; /* or adjust */
  border: none;
  border-radius: 5px;
  max-width: 100%;
    margin-top: 1rem;
    display: none; /* Show via JS if implemented */
  }
  .nav-toggler {
  display: block;
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    fill: var(--color-text-light);
  }
  .services-overview,
  .boilers-grid {
    grid-template-columns: 1fr;
  }
    .hero-text h2 {
    font-size: 2rem;                /* slightly smaller on mobile */
    padding: 0 1rem;                /* small horizontal padding */
  }
  .hero-buttons {
    flex-direction: column;         /* stack the buttons on very small screens */
    gap: 0.75rem;                  
    align-items: center;            /* center each button vertically */
  }
  .btn-secondary {
    width: 40px;
    height: 40px;
  }
   .indented-list {
    margin-left: 1rem;
  }
  .getintouch-button .btn-primary {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
   .hero-text p {
    font-size: 1rem;
    line-height: 1.4;
    padding: 0 1rem;              /* Small horizontal padding for narrow viewports */
  }
}
}
@media (max-width: 768px) {
  .hero {
    background-position: 60% center;
    min-height: 60vh;
  }
}


/* ==================================================================
   2. HAMBURGER MENU STYLES (NO LOGO VERSION)
   ================================================================== */

/* 2.1 HEADER CONTAINER */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 2.2 NAV TOGGLER (HAMBURGER) */
.nav-toggler {
  display: none;               /* Hidden on desktop; visible on small */
  background: none;
  border: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  margin-right: 1rem;
}

.nav-toggler:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.toggler-icon {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-text-light);
  border-radius: 2px;
}

/* 2.3 NAV LINKS (DESKTOP) */
nav .nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav .nav-links li a {
  color: var(--color-text-light);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav .nav-links li a:hover,
nav .nav-links li a.active {
  color: #85C1E9;
}

/* 2.4 HEADER CTAs (DESKTOP) */
.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-quote {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-quote:hover {
  background-color: #163349;
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: #1DAF59;
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: var(--color-text-light);
}

/* 2.5 RESPONSIVE BREAKPOINT (≤768px) */
@media (max-width: 768px) {
  /* Show the hamburger */
  .nav-toggler {
    display: flex;
  }

  /* Hide nav-links & CTAs */
  nav .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    flex-direction: column;
    align-items: center;
    display: none;           /* Hidden by default on mobile */
    gap: 1rem;
    padding: 1rem 0;
    z-index: 999;
  }

  /* When the “active” class is added, show the menu */
  nav .nav-links.active {
    display: flex;
  }

  /* Center each link in the vertical dropdown */
  nav .nav-links li {
    width: 100%;
    text-align: center;
    margin: 0;
  }

  nav .nav-links li a {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
    font-size: 1.1rem;
  }

  /* Hide the desktop CTAs inside header */
  .header-cta {
    display: none;
  }


 

  /* Small adjustment to keep header-container balanced */
  .header-container {
    justify-content: space-between;
  }
}

