/* ==========================================================================
   VARIABLES, RESETS & GLOBAL MOBILE LOCKS
   ========================================================================== */
:root {
  --primary-green: #ffc401;
  --light-green: #f8de75;
  --black: #000000;
  --dark-gray: #1a1a1a;
  --light-gray: #f4f4f4;
  --white: #ffffff;
  --text-color: #333333;
  --font-heading: 'Bebas Neue', sans-serif;
  --font-public: 'Public Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

/* Strict horizontal locks to prevent mobile side-scrolling */
html,
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  position: relative;
}

main,
footer {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

header {
  width: 100%;
  max-width: 100%;
  /* Removed overflow hidden here so the dropdown can show! */
}

.container {
  margin: 0 auto;
  padding: 0 20px;
  width: 100vw;
  max-width: 100%;
}

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

/* Prevent Grid/Flex items from bursting their containers */
.card,
.service-box,
.review-card,
.warning-card,
.plan-card,
.feature-item {
  min-width: 0 !important;
  max-width: 100%;
}

/* ==========================================================================
   TYPOGRAPHY & BUTTONS
   ========================================================================== */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-color);
  margin-bottom: 10px;
  text-align: center;
}

.eyebrow-green {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 5px;
}

.btn-green,
.btn-green-sm,
.btn-green-full {
  background-color: var(--primary-green);
  color: var(--black) !important;
  text-decoration: none;
  font-weight: 800;
  border-radius: 4px;
  transition: background 0.3s ease;
  text-align: center;
  display: inline-block;
}

.btn-green {
  padding: 12px 30px;
  text-decoration: none;
  font-weight: 800;
}

.btn-green-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-green-full {
  padding: 15px;
  width: 100%;
  font-size: 16px;
}

.btn-white {
  background-color: var(--white);
  color: var(--black);
  padding: 12px 30px;
  text-decoration: none;
  font-weight: 800;
  border-radius: 4px;
}

.btn-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: 800;
}

.btn-green-light,
.btn-green-dark {
  background-color: var(--primary-green);
}

.btn-black {
  background-color: var(--black);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  background-color: var(--black);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 100px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
}

.nav-menu a.active {
  color: var(--primary-green);
}

/* Hamburger Base (Hidden on Desktop) */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger .bar {
  display: block;
  width: 30px;
  height: 3px;
  margin: 6px auto;
  background-color: var(--white);
  transition: all 0.3s ease-in-out;
  border-radius: 3px;
}

/* ==========================================================================
   SECTIONS (HERO, FEATURES, SERVICES, ETC.)
   ========================================================================== */
.hero {
  height: 650px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 15%, rgba(0, 0, 0, 0.4) 45%, rgba(0, 0, 0, 0) 70%), url('assets/InstantRoof_web_home_y01.png');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
}

.hero-container {
  padding-left: 5%;
  padding-right: 5%;
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 750px;
  z-index: 5;
}

.hero-content.home-page {
  background: rgba(40, 40, 40, 0.55);
  padding: 35px 45px;
  border-radius: 14px;
  max-width: 850px;
}

.hero-content h1 {
  font-size: 64px;
  line-height: 1.0;
  margin-bottom: 25px;
  letter-spacing: -1px;
}

.hero-content h3 {
  font-size: 36px;
  color: var(--light-green);
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.hero-content p {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 40px;
  max-width: 550px;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

.hero-btns a {
  font-family: var(--font-heading) !important;
  font-size: 26px;
  padding: 12px 35px;
  border-radius: 6px;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}

.hero-btns a:hover {
  transform: translateY(-2px);
}

.hero-badge {
  position: absolute;
  top: 40px;
  right: 40px;
  z-index: 10;
}

.hero-badge img {
  width: 280px;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
}

/* Feature Strip */
.feature-strip {
  background-color: var(--white);
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
}

.feature-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 15px;
}

.feature-grid .feature-item:nth-child(4) img {
  transform: scale(1.6);
  transform-origin: center;
}

.feature-grid .feature-item:nth-child(2) img {
  transform: scale(1.1);
  transform-origin: top;
}

.feature-text strong {
  font-size: 24px;
  display: block;
  color: var(--primary-green);
  font-family: var(--font-heading);
  margin-bottom: 8px;
  min-height: 34px;
}

.feature-text p {
  font-size: 14px;
  line-height: 1.4;
  color: #666;
  font-family: var(--font-body) !important;
  margin: 0;
}

/* What We Do */
.what-we-do {
  background-color: var(--black);
  padding: 80px 0;
  text-align: center;
}

.what-we-do .container {
  padding-left: 5%;
  padding-right: 5%;
}

.section-title-light {
  color: var(--primary-green);
  font-family: var(--font-heading);
  letter-spacing: 1px;
  margin-bottom: 50px;
  font-size: 50px;
}

.dual-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5%;
}

.card {
  height: 480px;
  border-radius: 20px;
  background-color: #a6d2ff;
  background-size: cover;
  background-position: bottom right;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px;
  text-align: left;
  position: relative;
  overflow: hidden;
  border: none;
}

.card-residential {
  background-position: right bottom;
}

.card-commercial {
  background-position: center bottom;
}

.card-content {
  max-width: 80%;
  z-index: 2;
}

.card h3 {
  font-family: var(--font-heading);
  color: var(--black);
  font-size: 44px;
  line-height: 1;
  margin-bottom: 15px;
}

.card p {
  color: #000000;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
}

.btn-green-card {
  background-color: var(--primary-green);
  color: var(--black);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 24px;
  padding: 12px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 2;
  transition: transform 0.2s;
}

.btn-green-card:hover {
  transform: translateY(-2px);
  background-color: var(--primary-green);
}

/* Services */
.services-section {
  padding: 80px 0;
  background-color: #fff;
  text-align: center;
}

.services-section .container {
  padding-left: 5%;
  padding-right: 5%;
}

.section-header .eyebrow {
  font-family: var(--font-heading);
  font-size: 30px;
  color: #000;
  margin-bottom: 5px;
}

.section-header p {
  font-family: var(--font-public);
  font-size: 20px;
  color: #000;
  padding-bottom: 20px;
}

.heading-green {
  font-family: var(--font-heading);
  color: var(--primary-green);
  font-size: 50px;
  line-height: 1;
  margin-bottom: 15px;
}

.sub-intro {
  font-family: var(--font-body);
  font-size: 18px;
  color: #333;
  font-weight: 500;
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.service-box {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-box h4 {
  font-size: 30px;
  color: var(--primary-green);
}

.service-box p {
  font-family: var(--font-public);
  font-size: 18px;
}

.service-image-wrapper {
  position: relative;
  width: 100%;
  height: 140px;
}

.main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-circle {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffc90d;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  z-index: 2;
}

.icon-circle img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.service-content {
  padding: 40px 15px 30px;
  flex-grow: 1;
}

/* Care Section */
.care-section {
  padding: 60px 0;
  background-color: #f4f4f4;
}

.care-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.warning-card {
  position: relative;
  border-radius: 30px;
  background-size: cover;
  background-position: center;
  padding: 40px;
  min-height: 550px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  overflow: hidden;
}

.badge-black {
  background: var(--primary-green);
  color: #fff;
  display: inline-block;
  padding: 6px 15px;
  font-family: var(--font-heading);
  font-size: 30px;
  border-radius: 4px;
  align-self: flex-start;
}

.warning-middle h3 {
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 1.1;
  text-align: left;
  max-width: 400px;
}

.destroy-text {
  font-size: 80px;
  display: block;
  line-height: 0.9;
  color: var(--black);
  font-weight: 1000;
}

.warning-bottom {
  max-width: 500px;
}

.not-fire {
  font-size: 24px;
  margin-bottom: 0;
}

.warning-bottom h4 {
  font-family: var(--font-heading);
  font-size: 36px;
  margin-bottom: 5px;
}

.warning-bottom p {
  font-size: 24px;
  opacity: 0.9;
  line-height: 1.3;
}

.plan-card {
  background-color: var(--dark-gray);
  border-radius: 30px;
  padding: 50px 30px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge-white {
  background: #fff;
  color: var(--primary-green);
  display: inline-block;
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: 24px;
  border-radius: 6px;
  margin-bottom: 30px;
  align-self: flex-start;
}

.plan-title {
  font-family: var(--font-heading);
  font-size: 52px;
  margin-bottom: 10px;
  line-height: 1;
}

.plan-title-wrapper {
  align-self: flex-start;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}

.price-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
}

.price-from {
  font-family: var(--font-heading);
  font-size: 28px;
  align-self: center;
  margin-top: 10px;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 140px;
  line-height: 0.9;
}

.price-period {
  font-family: var(--font-heading);
  font-size: 32px;
}

.plan-intro {
  font-size: 22px;
  margin-bottom: 35px;
  font-weight: 500;
  max-width: 90%;
  line-height: 1.2;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
  display: inline-block;
  text-align: left;
}

.plan-list li {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.plan-list li::before {
  content: '✓';
  background: var(--primary-green);
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.plan-outro {
  margin-bottom: 40px;
  font-weight: 500;
  font-size: 18px;
  opacity: 0.9;
}

.btn-lime-pill {
  background-color: var(--primary-green);
  color: var(--black);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 32px;
  padding: 18px 60px;
  border-radius: 60px;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  width: auto;
  min-width: 280px;
}

.btn-lime-pill:hover {
  transform: translateY(-3px);
  background-color: var(--light-green);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Results */
.results-section {
  padding: 80px 0;
  background: #000000;
}

.results-section .container {
  padding-left: 5%;
  padding-right: 5%;
}

.green-tag {
  background-color: var(--primary-green);
  display: inline-block;
  color: white;
  font-family: var(--font-heading);
  font-size: 24px;
  padding: 12px 25px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.results-section h2 {
  font-size: 50px;
  margin-bottom: 40px;
  color: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item img {
  border-radius: 5px;
}

/* Reviews */
.reviews-section {
  background-color: var(--black);
  padding: 80px 0;
  color: var(--white);
}

.reviews-section .container {
  padding-left: 5%;
  padding-right: 5%;
}

.reviews-section h2 {
  font-size: 50px;
  margin-bottom: 40px;
  color: #ffffff;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.review-card {
  background: #000000;
  border: 2px solid var(--primary-green);
  padding: 40px;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.review-header strong {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 36px;
  letter-spacing: 1px;
}

.stars {
  color: #f1c40f;
  font-size: 32px;
  padding-left: 10px;
}

.review-card p {
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 10px;
  font-weight: 400;
}

.review-author {
  display: block;
  margin-top: 40px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  color: #ffffff;
}

.google-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  cursor: pointer;
}

.google-badge img {
  width: 45px;
  height: auto;
}

.google-badge a {
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.3px;
}

.google-badge:hover a {
  text-decoration: underline;
  opacity: 0.9;
}

/* Bottom CTA */
.bottom-cta {
  background-color: var(--white);
  padding: 60px 0;
}

.bottom-cta .container {
  padding-left: 5%;
  padding-right: 5%;
}

.cta-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 40px;
}

.cta-flex-layout {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-top: 50px;
  padding-bottom: 50px;
}

.cta-text-content h3 {
  font-family: var(--font-heading);
  font-size: 48px;
  color: var(--primary-green);
  line-height: 1;
  margin-bottom: 5px;
}

.cta-text {
  flex-shrink: 0;
}

.cta-text h3 {
  color: var(--primary-green);
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 1;
  margin-bottom: 5px;
  white-space: nowrap;
}

.cursive-style {
  font-family: var(--font-marker);
  font-size: 18px;
}

.cta-text p {
  font-family: 'Permanent Marker', cursive;
  font-size: 32px;
  color: #000;
  margin: 0;
  white-space: nowrap;
}

.cta-btns {
  display: flex;
  gap: 20px;
  align-items: center;
}

.cta-action-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}



.cta-btns a {
  display: block;
  transition: transform 0.2s ease;
}

.cta-btns a:hover {
  transform: scale(1.05);
}

.cta-btns img {
  height: 90px;
  width: auto;
  display: block;
}

.dynamic-btn {
  display: flex;
  align-items: center; /* Vertically center icon and text */
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px; /* Rounded corners matching screenshot */
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 250px; /* Ensures buttons have consistent width */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dynamic-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-call-dark, .btn-text-dark {
  background-color: var(--primary-green); /* Very dark charcoal/black matching original image */
}


.btn-quote-black {
  background-color: #000000; /* Pure black for the middle button */
}

.btn-icon-svg {
  width: 48px; /* Consistent icon size */
  height: 60px;
  margin-right: 15px; /* Spacing between icon and text */
}

.btn-text-block {
  display: flex;
  flex-direction: column;
  color: var(--white);
  align-items: center;
}

.main-label {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2px;
}

.subtext-prominent {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 600;
  color: var(--lime-green); /* Lime green accents for number */
  letter-spacing: 0.5px;
}

.subtext-regular {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  opacity: 0.8;
}

/* Footer */
.main-footer {
  background-color: var(--black);
  color: var(--white);
  padding: 100px 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 80px;
}

.footer-brand img {
  height: 150px;
  width: auto;
  margin-bottom: 5px;
}

.footer-brand p {
  font-family: var(--font-signature, 'Black Bones'), var(--font-heading);
  font-size: 32px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 32px;
  color: #ffffff;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

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

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  transition: color 0.2s;
}

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

.footer-contact p {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
}

.footer-contact .btn-green-sm {
  background-color: var(--primary-green);
  color: var(--black);
  padding: 12px 30px;
  font-family: var(--font-heading);
  font-size: 30px;
  border-radius: 8px;
  margin-top: 15px;
  display: inline-block;
  text-transform: uppercase;
}

.footer-bottom {
  border-top: 1px solid #1a1a1a;
  padding-top: 40px;
  text-align: center;
}

.footer-bottom p {
  font-size: 16px;
  color: #ffffff;
  opacity: 0.8;
}

@media (max-width: 1560px) {
  .cta-flex-layout {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
}


/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* TABLET (max-width: 1024px) */
@media screen and (max-width: 1024px) {

  .feature-grid,
  .services-grid,
  .reviews-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid .service-box:last-child,
  .feature-grid .feature-item:last-child {
    grid-column: 1 / -1;
  }

  .care-grid,
  .dual-cards {
    grid-template-columns: 1fr;
  }

  .hero-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

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

  .hero-btns {
    justify-content: center;
  }

  .cta-flex {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .cta-btns {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-btns img {
    height: 70px;
  }
}

/* MOBILE (max-width: 768px) */
@media screen and (max-width: 768px) {
  .main-header {
    position: fixed !important;
    /* Locks the header to the glass of the screen */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    /* Ensures it floats above absolutely everything */
  }

  /* Because the header is floating, we must push the body down slightly
     so the top of your hero section isn't permanently hidden underneath it */
  body {
    padding-top: 90px;
  }

  /* Upgrades the dropdown menu so if it gets too long on short phones, 
     the user can scroll *inside* the menu */
  .nav-menu.active {
    max-height: 75vh;
    /* Limits the menu to 75% of the screen height */
    overflow-y: auto;
  }

  .hero {
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }

  /* 1. Un-restrict boundaries and force text to wrap safely */
  .cta-flex,
  .header-wrapper,
  .hero-btns,
  .review-header,
  .cta-btns {
    flex-wrap: wrap !important;
    width: 100%;
  }

  h1,
  h2,
  h3,
  h4,
  p,
  a,
  strong,
  span,
  .cta-text h3,
  .cta-text p {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto;
  }

  /* 2. Container & Image Protections */
  .container,
  .what-we-do .container,
  .services-section .container,
  .results-section .container,
  .reviews-section .container,
  .bottom-cta .container,
  .hero-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  img {
    max-width: 100% !important;
    object-fit: contain;
  }

  /* 3. Header & Footer Logo Size Limits */
  .logo {
    max-width: 70%;
    display: flex;
    align-items: center;
  }

  .logo img {
    width: 100%;
    max-width: 240px;
    height: auto !important;
  }

  .footer-brand img {
    height: auto !important;
    max-width: 200px;
    margin: 0 auto 15px;
  }

  .footer-grid {
    text-align: center;
    justify-content: center;
    gap: 30px;
  }

  .cta-action-buttons {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }
  .dynamic-btn {
    width: 90%;
    max-width: 300px;
    justify-content: center; /* center content when stacked on mobile */
  }
  .btn-icon-svg {
    margin-right: 15px; /* keep internal spacing on mobile */
  }

  /* 4. Hamburger Menu Logic */
  .header-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .hamburger {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--black);
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    border-bottom: 1px solid #1a1a1a;
  }

  .nav-menu a {
    font-size: 16px;
  }

  .nav-menu.active {
    max-height: 500px;
    padding: 30px 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* 5. Fluid Buttons */
  .btn-lime-pill,
  .footer-contact .btn-green-sm,
  .hero-btns a {
    min-width: 0 !important;
    width: 100%;
    max-width: 320px;
    padding: 15px 20px;
    box-sizing: border-box;
  }

  .btn-lime-pill {
    font-size: 24px;
    margin: 0 auto;
  }

  .footer-contact .btn-green-sm {
    font-size: 22px;
    padding: 12px 15px;
  }

  .hero-content {
    text-align: left !important;
    width: 100%;
  }

  .hero-content h3 {
    display: none !important;
  }

  .hero-btns {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100% !important;
  }

  .hero-btns .btn-green {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 15px !important;
    max-width: 200px !important;
  }

  .hero-btns .btn-white {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 15px !important;
    max-width: 200px !important;
  }


  /* 6. Typography Clamp (Mathematically limits huge text) */
  .hero-content h1 {
    font-size: clamp(28px, 8vw, 40px) !important;
  }

  .destroy-text {
    font-size: clamp(30px, 10vw, 44px) !important;
  }

  .warning-middle h3 {
    font-size: clamp(26px, 8vw, 38px) !important;
    text-align: center;
    margin: 0 auto;
  }

  .price-amount {
    font-size: clamp(50px, 15vw, 70px) !important;
  }

  .section-title-light,
  .results-section h2,
  .reviews-section h2 {
    font-size: 32px;
    text-align: center;
  }

  .card h3,
  .plan-title {
    font-size: 30px;
  }

  /* 7. Grids to 1 Column */
  .feature-grid,
  .services-grid,
  .reviews-grid,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* 8. Specific Component Tweaks */
  .hero {
    height: auto;
    padding: 60px 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0.6) 100%), url('assets/InstantRoof_web_home_y01.png');
  }

  .hero-badge {
    position: relative;
    top: auto;
    right: auto;
    margin: 30px auto 0;
    width: 220px;
  }

  .badge-white,
  .badge-black {
    align-self: center;
  }

  .plan-title-wrapper {
    align-items: center;
    text-align: center;
  }

  .plan-list li {
    font-size: 18px;
  }

  .review-card {
    padding: 25px 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .review-header {
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
  }

  .review-header strong {
    font-size: 24px;
  }

  .stars {
    font-size: 24px;
    padding-left: 0;
  }

  .review-card p {
    font-size: 18px;
  }

  .warning-card {
    /* Adds a dark overlay to the background image so text is always 100% readable */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85)), url('assets/InstantRoof_web_demo_04.png') !important;
    padding: 40px 25px !important;
    min-height: auto !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 25px;
    /* Creates clean, even spacing between the top, middle, and bottom */
    align-items: center;
    border-radius: 20px !important;
  }

  /* Center and scale the badge */
  .badge-black {
    align-self: center !important;
    font-size: 16px !important;
    padding: 8px 16px !important;
    letter-spacing: 2px;
    margin-bottom: 0 !important;
  }

  /* Scale the headline */
  .warning-middle h3 {
    font-size: 28px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    max-width: 100% !important;
  }

  /* Make the word DESTROY pop in brand green instead of black */
  .destroy-text {
    font-size: 42px !important;
    color: var(--light-green) !important;
    display: block;
    margin: 10px 0;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  }

  /* Fix the bottom text hierarchy */
  .warning-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .not-fire {
    font-size: 20px !important;
    color: #ffffff !important;
    font-weight: 800;
  }

  .warning-bottom h4 {
    font-size: 24px !important;
    line-height: 1.2 !important;
    color: var(--white) !important;
  }

  .warning-bottom p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    opacity: 0.9;
    font-weight: 400;
  }

}

/* SMALL MOBILE (max-width: 480px) */
@media screen and (max-width: 480px) {
  .logo img {
    max-width: 180px;
  }

  .cta-btns img {
    height: 60px;
  }

  .card,
  .warning-card,
  .plan-card {
    padding: 30px 15px;
  }
}

/* ==========================================================================
   SHOWROOM SECTION
   ========================================================================== */
.showroom-section {
  width: 100%;
  padding-bottom: 100px;
}

.showroom-split {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 400px;
}

.showroom-content {
  padding: 60px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white
}

.showroom-content h2 {
  color: var(--primary-green);
  font-size: 56px;
  margin-bottom: 15px;
  line-height: 1;
}

.showroom-content p {
  font-size: 28px;
  font-family: var(--font-body);
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 40px;
  max-width: 480px;
}

.showroom-address {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pin-icon {
  width: 65px;
  height: 65px;
  flex-shrink: 0;
}

.address-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.1;
  color: var(--black);
  text-decoration: none; /* Removes the default blue underline */
  transition: opacity 0.2s ease; /* Adds a smooth hover transition */
}

.address-text:hover {
  opacity: 0.7; /* Gives user visual feedback that it is clickable */
}

.showroom-image {
  background-size: cover;
  background-position: center;
  min-height: 400px;
}

/* ==========================================================================
   ADD THESE TO YOUR EXISTING MEDIA QUERIES
   ========================================================================== */

/* Tablet (max-width: 1024px) */
@media screen and (max-width: 1024px) {
  .showroom-split {
    grid-template-columns: 1fr;
  }
  .showroom-content {
    padding: 50px 5%;
    border-right: none;
    align-items: center;
    text-align: center;
  }
  .showroom-address {
    justify-content: center;
  }
}

/* Mobile (max-width: 768px) */
@media screen and (max-width: 768px) {
  .showroom-content h2 {
    font-size: clamp(36px, 10vw, 48px);
  }
  .showroom-content p {
    font-size: 22px;
  }
  .pin-icon {
    width: 45px;
    height: 45px;
  }
  .address-text {
    font-size: 28px;
    text-align: left;
  }
  .showroom-image {
    min-height: 300px;
  }
}