/* =============================================
   Desert Sun Roofing — Main Stylesheet
   Colors: Bold Red #C0392B | Dark Gray #1C1C1E | Light Gray #F5F5F5
   ============================================= */

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

:root {
  --red:        #C0392B;
  --red-dark:   #962d22;
  --red-light:  #e74c3c;
  --gray-900:   #1C1C1E;
  --gray-800:   #2C2C2E;
  --gray-700:   #3A3A3C;
  --gray-400:   #8E8E93;
  --gray-100:   #F5F5F5;
  --white:      #FFFFFF;
  --font:       'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow:     0 4px 20px rgba(0,0,0,0.15);
  --radius:     6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.65;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

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

/* ---- UTILITY ---- */
.container {
  width: 90%;
  max-width: 1160px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  border: none;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--red);
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray-400);
  max-width: 560px;
}

/* ---- TOP BAR ---- */
.topbar {
  background: var(--gray-900);
  color: var(--gray-100);
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--gray-100); }
.topbar a:hover { color: var(--red-light); }
.topbar-phone { font-weight: 700; color: var(--red-light) !important; font-size: 0.95rem; }

/* ---- HEADER / NAV ---- */
header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gray-900);
}
.logo-tagline {
  font-size: 0.72rem;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: var(--gray-900);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--red); }

.nav-cta { margin-left: 8px; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 60%, #3a1208 100%);
  color: var(--white);
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpolygon points='30 0 60 30 30 60 0 30'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(192,57,43,0.25);
  border: 1px solid rgba(192,57,43,0.5);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f1948a;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 640px;
}
.hero h1 span { color: var(--red-light); }
.hero p {
  font-size: 1.12rem;
  color: #c0c0c0;
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--red-light);
}
.hero-stat span {
  font-size: 0.85rem;
  color: #a0a0a0;
}

/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--red);
  color: var(--white);
  padding: 18px 0;
}
.trust-bar .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}
.trust-item .icon { font-size: 1.3rem; }

/* ---- SERVICES GRID ---- */
.services-section {
  padding: 80px 0;
  background: var(--gray-100);
}
.services-header {
  text-align: center;
  margin-bottom: 48px;
}
.services-header .section-sub { margin: 0 auto; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.service-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--gray-900);
}
.service-card p {
  font-size: 0.93rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* ---- WHY US ---- */
.why-section {
  padding: 80px 0;
  background: var(--white);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-content .section-sub { margin-bottom: 32px; }
.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-icon {
  width: 44px;
  height: 44px;
  background: var(--gray-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.why-item h4 { font-weight: 700; margin-bottom: 4px; }
.why-item p  { font-size: 0.9rem; color: var(--gray-400); }
.why-visual {
  background: linear-gradient(145deg, var(--gray-900), var(--gray-800));
  border-radius: 16px;
  padding: 48px 40px;
  color: var(--white);
  text-align: center;
}
.why-visual .big-number {
  font-size: 5rem;
  font-weight: 900;
  color: var(--red-light);
  line-height: 1;
}
.why-visual p { color: #ccc; margin-top: 8px; font-size: 0.95rem; }
.why-visual hr { border-color: rgba(255,255,255,0.1); margin: 28px 0; }
.why-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(192,57,43,0.3);
  border-radius: 100px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #f1948a;
}

/* ---- SERVICE AREAS ---- */
.areas-section {
  padding: 80px 0;
  background: var(--gray-900);
  color: var(--white);
  text-align: center;
}
.areas-section .section-title { color: var(--white); }
.areas-section .section-sub { color: var(--gray-400); margin: 0 auto 48px; }
.areas-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.area-chip {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 100px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  transition: background 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.area-chip:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ---- REVIEWS ---- */
.reviews-section {
  padding: 80px 0;
  background: var(--gray-100);
  text-align: center;
}
.reviews-section .section-sub { margin: 0 auto 48px; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  text-align: left;
}
.review-card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.stars { color: #f39c12; font-size: 1.1rem; margin-bottom: 14px; }
.review-text {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}
.reviewer {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gray-400);
}

/* ---- CTA BANNER ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 16px;
}
.cta-banner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .btn-outline:hover { color: var(--red); }

/* ---- FOOTER ---- */
footer {
  background: var(--gray-900);
  color: #a0a0a0;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo-name { color: var(--white); font-size: 1.1rem; }
.footer-brand .logo-tagline { color: #666; }
.footer-desc {
  margin-top: 14px;
  font-size: 0.88rem;
  line-height: 1.7;
}
footer h4 {
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul a {
  color: #a0a0a0;
  font-size: 0.9rem;
  transition: color 0.2s;
}
footer ul a:hover { color: var(--red-light); }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}
.footer-contact .fc-icon { color: var(--red-light); margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.83rem;
}
.footer-bottom a { color: #a0a0a0; }
.footer-bottom a:hover { color: var(--red-light); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--gray-900), #3a1208);
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 1.05rem;
  color: #c0c0c0;
  max-width: 520px;
  margin: 0 auto;
}
.breadcrumb {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 16px;
}
.breadcrumb a { color: #aaa; }
.breadcrumb a:hover { color: var(--red-light); }

/* ---- SERVICES PAGE ---- */
.services-full {
  padding: 80px 0;
  background: var(--white);
}
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid #eee;
}
.service-detail:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }
.service-detail-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  line-height: 1;
}
.service-detail h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--gray-900);
}
.service-detail p {
  color: var(--gray-400);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.service-bullets {
  list-style: none;
  margin-bottom: 28px;
}
.service-bullets li {
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
  font-size: 0.93rem;
  color: var(--gray-700);
}
.service-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
.service-visual {
  background: linear-gradient(145deg, var(--gray-100), var(--gray-900));
  border-radius: 16px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}

/* ---- ABOUT PAGE ---- */
.about-story {
  padding: 80px 0;
  background: var(--white);
}
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-story h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.about-story p {
  color: var(--gray-400);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-visual {
  background: linear-gradient(145deg, var(--gray-900), #3a1208);
  border-radius: 16px;
  padding: 52px 40px;
  color: var(--white);
  text-align: center;
}
.about-visual .big { font-size: 4.5rem; font-weight: 900; color: var(--red-light); line-height: 1; }
.about-visual .sub { font-size: 1rem; color: #ccc; }
.about-values {
  padding: 80px 0;
  background: var(--gray-100);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.value-card {
  background: var(--white);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.value-card .v-icon { font-size: 2.5rem; margin-bottom: 14px; }
.value-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.value-card p { font-size: 0.88rem; color: var(--gray-400); line-height: 1.6; }
.team-section {
  padding: 80px 0;
  background: var(--white);
  text-align: center;
}
.team-section .section-sub { margin: 0 auto 48px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.team-card {
  background: var(--gray-100);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
  border: 3px solid var(--red);
}
.team-card h3 { font-size: 1rem; font-weight: 700; }
.team-card span { font-size: 0.85rem; color: var(--gray-400); }
.license-section {
  padding: 60px 0;
  background: var(--gray-900);
  color: var(--white);
  text-align: center;
}
.license-section h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.license-section p { color: #aaa; font-size: 0.95rem; }
.license-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}
.lic-badge {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 100px;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ddd;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- CONTACT PAGE ---- */
.contact-section {
  padding: 80px 0;
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 14px; }
.contact-info p { color: var(--gray-400); font-size: 0.95rem; line-height: 1.7; margin-bottom: 28px; }
.contact-details { list-style: none; margin-bottom: 32px; }
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.cd-icon {
  width: 44px;
  height: 44px;
  background: var(--red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--white);
}
.cd-text strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 0.9rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cd-text a, .cd-text p { font-size: 1rem; color: var(--gray-900); }
.cd-text a:hover { color: var(--red); }

/* Contact Form */
.contact-form-box {
  background: var(--gray-100);
  border-radius: 12px;
  padding: 40px 36px;
}
.contact-form-box h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.contact-form-box .form-sub {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-bottom: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.97rem;
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-900);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; padding: 15px; font-size: 1rem; margin-top: 6px; }
.form-note { font-size: 0.78rem; color: var(--gray-400); text-align: center; margin-top: 10px; }
.success-msg {
  display: none;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #155724;
  font-weight: 600;
  margin-top: 16px;
  text-align: center;
}

/* ---- MOBILE ---- */
@media (max-width: 900px) {
  .why-grid,
  .service-detail,
  .service-detail.reverse,
  .about-story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    gap: 16px;
  }
  .nav-cta.open { display: block; }
  .nav-toggle { display: flex; }
  header { position: relative; }
  .nav { flex-wrap: wrap; }
  .hero-stats { gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-bar .container { flex-direction: column; align-items: flex-start; gap: 10px; }
}
