/* =========================================================
   Planet Roofing - Main Style CSS
   File: /assets/css/style.css or /style/style.css
   Use on all custom Planet Roofing HTML pages
   Brand: Planet Roofing | Fort Lauderdale, FL
   ========================================================= */

:root {
  --pr-red: #d71920;
  --pr-red-dark: #a80f16;
  --pr-navy: #07182d;
  --pr-dark: #101820;
  --pr-charcoal: #172331;
  --pr-gold: #f4c76b;
  --pr-light: #f7f8fb;
  --pr-soft-red: #fff1f2;
  --pr-white: #ffffff;
  --pr-text: #24313f;
  --pr-muted: #667085;
  --pr-border: #e6eaf0;
  --pr-shadow: 0 14px 38px rgba(7, 24, 45, 0.12);
  --pr-radius: 18px;
  --pr-radius-lg: 28px;
  --pr-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--pr-text);
  background: var(--pr-white);
  line-height: 1.65;
  font-size: 16px;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--pr-red);
}

p {
  margin: 0 0 16px;
}

h1,
h2,
h3,
h4 {
  color: var(--pr-dark);
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(38px, 5.6vw, 68px);
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 19px;
}

ul,
ol {
  margin-top: 0;
}

.container {
  width: min(var(--pr-max), 92%);
  margin: 0 auto;
}

.narrow {
  width: min(860px, 92%);
  margin: 0 auto;
}

.section {
  padding: 76px 0;
}

.section-sm {
  padding: 46px 0;
}

.section-light {
  background: var(--pr-light);
}

.section-dark {
  background: var(--pr-navy);
  color: var(--pr-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark p {
  color: var(--pr-white);
}

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

.lead {
  font-size: 18px;
  color: var(--pr-muted);
  max-width: 850px;
}

.text-center .lead {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-block;
  color: var(--pr-red);
  background: var(--pr-soft-red);
  border: 1px solid #ffd6da;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

/* =========================
   Header / Navigation
   ========================= */

.topbar {
  background: var(--pr-navy);
  color: var(--pr-white);
  font-size: 14px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 9px 0;
  flex-wrap: wrap;
}

.topbar a {
  color: var(--pr-white);
  font-weight: 800;
}

.site-header {
  background: var(--pr-white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--pr-border);
  box-shadow: 0 4px 18px rgba(7, 24, 45, 0.06);
}

.navbar {
  width: min(var(--pr-max), 92%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  color: var(--pr-dark);
}

.logo img {
  width: 115px;
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-weight: 800;
  font-size: 15px;
  color: var(--pr-dark);
}

.nav-menu a:hover {
  color: var(--pr-red);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--pr-white);
  border: 1px solid var(--pr-border);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--pr-shadow);
  list-style: none;
  z-index: 200;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
}

.dropdown-menu li a:hover {
  background: var(--pr-soft-red);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

#menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--pr-dark);
}

/* =========================
   Buttons
   ========================= */

.btn,
.button,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--pr-red);
  color: var(--pr-white) !important;
  border: 2px solid var(--pr-red);
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 900;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(215, 25, 32, 0.24);
  transition: 0.2s ease;
}

.btn:hover,
.button:hover,
.cta-button:hover {
  background: var(--pr-red-dark);
  border-color: var(--pr-red-dark);
  color: var(--pr-white) !important;
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--pr-navy);
  border-color: var(--pr-navy);
}

.btn-dark:hover {
  background: var(--pr-dark);
  border-color: var(--pr-dark);
}

.btn-light {
  background: var(--pr-white);
  color: var(--pr-dark) !important;
  border-color: var(--pr-white);
}

.btn-light:hover {
  background: var(--pr-gold);
  border-color: var(--pr-gold);
  color: var(--pr-dark) !important;
}

.btn-outline {
  background: transparent;
  color: var(--pr-red) !important;
  border-color: var(--pr-red);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--pr-red);
  color: var(--pr-white) !important;
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
}

/* =========================
   Hero Sections
   ========================= */

.hero {
  position: relative;
  background: linear-gradient(110deg, rgba(7, 24, 45, 0.94), rgba(7, 24, 45, 0.76));
  color: var(--pr-white);
  padding: 86px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.10);
  pointer-events: none;
}

.hero .container,
.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 42px;
  align-items: center;
}

.hero h1,
.hero h2,
.hero h3,
.hero p {
  color: var(--pr-white);
}

.hero p {
  font-size: 19px;
  color: #eef4f8;
  max-width: 760px;
}

.hero .eyebrow {
  color: var(--pr-gold);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-card,
.form-card {
  background: var(--pr-white);
  color: var(--pr-text);
  border-radius: var(--pr-radius-lg);
  padding: 28px;
  box-shadow: var(--pr-shadow);
}

.hero-card h2,
.hero-card h3,
.form-card h2,
.form-card h3 {
  color: var(--pr-dark);
}

.hero-card p,
.form-card p {
  color: var(--pr-muted);
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--pr-white);
  font-weight: 800;
  font-size: 14px;
}

/* =========================
   Cards / Grids
   ========================= */

.grid-2,
.grid-3,
.grid-4,
.services-grid,
.cards-grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3,
.services-grid,
.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.service-card,
.info-card,
.review-card {
  background: var(--pr-white);
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius);
  padding: 24px;
  box-shadow: 0 10px 26px rgba(7, 24, 45, 0.07);
  height: 100%;
}

.card:hover,
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pr-shadow);
  transition: 0.2s ease;
}

.card img,
.service-card img,
.project-card img,
.gallery-card img,
.image-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
}

.project-card,
.gallery-card,
.image-card {
  background: var(--pr-white);
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius);
  padding: 14px;
  box-shadow: 0 10px 26px rgba(7, 24, 45, 0.07);
  overflow: hidden;
}

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--pr-soft-red);
  color: var(--pr-red);
  border-radius: 14px;
  font-weight: 900;
  margin-bottom: 14px;
}

/* =========================
   Lists
   ========================= */

.check-list,
.clean-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.check-list li,
.clean-list li {
  position: relative;
  padding-left: 34px;
  margin: 11px 0;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--pr-red);
  color: var(--pr-white);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
}

.clean-list li::before {
  content: "•";
  position: absolute;
  left: 8px;
  top: 0;
  color: var(--pr-red);
  font-size: 22px;
  line-height: 1;
}

/* =========================
   Forms
   ========================= */

form,
.quote-form {
  display: grid;
  gap: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--pr-border);
  border-radius: 12px;
  padding: 14px 15px;
  font: inherit;
  color: var(--pr-text);
  background: var(--pr-white);
}

textarea {
  min-height: 115px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(215, 25, 32, 0.16);
  border-color: var(--pr-red);
}

button,
input[type="submit"] {
  cursor: pointer;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.form-grid .full,
.form-grid textarea,
.form-grid button {
  grid-column: 1 / -1;
}

/* =========================
   CTA Sections
   ========================= */

.cta-section,
.cta-band {
  background: linear-gradient(135deg, var(--pr-red), var(--pr-red-dark));
  color: var(--pr-white);
  padding: 58px 0;
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, var(--pr-red), var(--pr-red-dark));
  color: var(--pr-white);
  border-radius: var(--pr-radius-lg);
  padding: 38px;
  box-shadow: var(--pr-shadow);
}

.cta-section h2,
.cta-section p,
.cta-band h2,
.cta-band p,
.cta-box h2,
.cta-box p {
  color: var(--pr-white);
}

.cta-section p,
.cta-band p {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   FAQ / Details
   ========================= */

.faq details,
details.faq-item {
  background: var(--pr-white);
  border: 1px solid var(--pr-border);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 12px 0;
  box-shadow: 0 8px 18px rgba(7, 24, 45, 0.05);
}

.faq summary,
details.faq-item summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--pr-dark);
  font-size: 18px;
}

.faq details p,
details.faq-item p {
  margin: 12px 0 0;
  color: var(--pr-muted);
}

/* =========================
   Tables
   ========================= */

.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(7, 24, 45, 0.07);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--pr-white);
}

th,
td {
  padding: 15px;
  border-bottom: 1px solid var(--pr-border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--pr-navy);
  color: var(--pr-white);
}

tr:last-child td {
  border-bottom: none;
}

/* =========================
   Links / Service Links
   ========================= */

.service-links,
.local-links,
.internal-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.service-links a,
.local-links a,
.internal-links a {
  background: var(--pr-white);
  border: 1px solid var(--pr-border);
  border-radius: 14px;
  padding: 14px;
  font-weight: 900;
  color: var(--pr-dark);
  box-shadow: 0 6px 16px rgba(7, 24, 45, 0.04);
}

.service-links a:hover,
.local-links a:hover,
.internal-links a:hover {
  border-color: var(--pr-red);
  color: var(--pr-red);
  background: var(--pr-soft-red);
}

/* =========================
   Maps / Embeds
   ========================= */

.map iframe,
.map-embed iframe,
iframe.google-map {
  width: 100%;
  height: 390px;
  border: 0;
  border-radius: var(--pr-radius);
  box-shadow: var(--pr-shadow);
}

.video-embed {
  position: relative;
  overflow: hidden;
  border-radius: var(--pr-radius);
  box-shadow: var(--pr-shadow);
  aspect-ratio: 16 / 9;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================
   Blog / Article Pages
   ========================= */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 340px;
  gap: 34px;
  align-items: start;
}

.article-content {
  background: var(--pr-white);
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius);
  padding: 34px;
  box-shadow: 0 10px 26px rgba(7, 24, 45, 0.07);
}

.article-content h2 {
  margin-top: 38px;
}

.article-content h2:first-child {
  margin-top: 0;
}

.sidebar {
  position: sticky;
  top: 104px;
}

.sidebar-box {
  background: var(--pr-white);
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius);
  padding: 22px;
  box-shadow: 0 10px 26px rgba(7, 24, 45, 0.07);
  margin-bottom: 18px;
}

.note,
.alert,
.pro-tip {
  border-left: 5px solid var(--pr-red);
  background: var(--pr-soft-red);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 22px 0;
}

.pro-tip {
  border-left-color: var(--pr-gold);
  background: #fff8e7;
}

/* =========================
   Footer
   ========================= */

.footer,
.site-footer {
  background: var(--pr-navy);
  color: #dbe5ef;
  padding: 54px 0 22px;
}

.footer h2,
.footer h3,
.footer h4,
.site-footer h2,
.site-footer h3,
.site-footer h4 {
  color: var(--pr-white);
}

.footer a,
.site-footer a {
  color: #dbe5ef;
  display: inline-block;
  margin: 5px 0;
}

.footer a:hover,
.site-footer a:hover {
  color: var(--pr-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 30px;
  padding-top: 18px;
  text-align: center;
  color: #aebdcc;
  font-size: 14px;
}

/* =========================
   Utilities
   ========================= */

.shadow {
  box-shadow: var(--pr-shadow);
}

.rounded {
  border-radius: var(--pr-radius);
}

.bg-light {
  background: var(--pr-light);
}

.bg-red {
  background: var(--pr-red);
  color: var(--pr-white);
}

.max-700 {
  max-width: 700px;
}

.max-850 {
  max-width: 850px;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 22px; }
.mt-3 { margin-top: 34px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 12px; }
.mb-2 { margin-bottom: 22px; }
.mb-3 { margin-bottom: 34px; }

/* =========================
   Mobile Responsive
   ========================= */

@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4,
  .services-grid,
  .cards-grid,
  .service-links,
  .local-links,
  .internal-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: static;
  }

  .hamburger {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    left: 4%;
    right: 4%;
    top: 100%;
    background: var(--pr-white);
    border: 1px solid var(--pr-border);
    border-radius: 18px;
    box-shadow: var(--pr-shadow);
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  #menu-toggle:checked ~ .nav-menu {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border-radius: 12px;
    min-width: auto;
    margin-top: 6px;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .section {
    padding: 58px 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .topbar .container {
    justify-content: center;
    text-align: center;
  }

  .navbar {
    width: min(94%, 1180px);
  }

  .logo img {
    width: 90px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 17px;
  }

  .grid-3,
  .grid-4,
  .services-grid,
  .cards-grid,
  .service-links,
  .local-links,
  .internal-links,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .service-card,
  .info-card,
  .review-card,
  .hero-card,
  .form-card,
  .article-content,
  .sidebar-box {
    padding: 22px;
  }

  .card img,
  .service-card img,
  .project-card img,
  .gallery-card img,
  .image-card img {
    height: 200px;
  }

  .map iframe,
  .map-embed iframe,
  iframe.google-map {
    height: 320px;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .button,
  .cta-button {
    width: 100%;
  }
}
