/*
Theme Name: SMG Roofing Co
Theme URI: https://smgroofingco.com
Author: SMG Roofing Co
Author URI: https://smgroofingco.com
Description: Custom premium theme for SMG Roofing Co — South Florida's trusted roofing contractor.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smg-roofing
*/

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0d1f42;
  --dark-navy: #071428;
  --gold: #d4813a;
  --light-gold: #e8c96a;
  --cream: #f5f2ec;
  --white: #ffffff;
  --text: #1a1a2e;
  --gray: #6a6a7a;
  --light-gray: #f0ede6;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.site-topbar {
  background: var(--dark-navy);
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.topbar-inner a {
  color: var(--light-gold);
  font-weight: 500;
}

.topbar-inner a:hover { color: var(--gold); }

.site-header {
  background: var(--navy);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold), #b8940a);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 900;
  color: white;
  letter-spacing: 1px;
}

.logo-text-group { display: flex; flex-direction: column; }

.logo-company {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
  line-height: 1.2;
}

.logo-tagline {
  font-size: 10px;
  color: var(--light-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 32px; }

.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.main-nav a:hover { color: white; }
.main-nav a:hover::after { width: 100%; }

.nav-cta {
  background: var(--gold) !important;
  color: white !important;
  padding: 10px 24px !important;
  border-radius: 4px;
  font-weight: 600 !important;
  letter-spacing: 1px;
  border: 2px solid var(--gold);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: transparent !important;
  color: var(--gold) !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: white;
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--dark-navy) 60%, #050d1e 100%);
  color: white;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

/* Hero Slideshow */
.hero-slideshow {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  transform: scale(1);
}

.hero-slide.active {
  opacity: 1;
  animation: heroZoom 8s ease-in-out forwards;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(160deg, rgba(7,20,40,0.85) 0%, rgba(13,31,66,0.75) 50%, rgba(5,13,30,0.85) 100%);
  z-index: 1;
}

.hero-has-slideshow .hero-content {
  z-index: 2;
}

/* Slideshow progress bar */
.hero-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: var(--gold);
  z-index: 3;
  width: 0%;
  transition: none;
}

.hero-progress.animating {
  transition: width linear;
  width: 100%;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,129,58,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,201,106,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  background: rgba(212,129,58,0.15);
  color: var(--light-gold);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(212,129,58,0.25);
}

.hero h1 {
  font-size: clamp(44px, 7vw, 68px);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero h1 span { color: var(--light-gold); }

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 560px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-gold {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

.btn-gold:hover {
  background: transparent;
  color: var(--gold);
}

.btn-outline {
  background: transparent;
  color: var(--light-gold);
  border-color: var(--light-gold);
}

.btn-outline:hover {
  background: var(--light-gold);
  color: var(--navy);
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat h3 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--light-gold);
  margin-bottom: 4px;
}

.hero-stat p {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
  padding: 100px 0;
  background: var(--cream);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .overline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.section-header h2 {
  font-size: clamp(36px, 5vw, 52px);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

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

/* Visual Service Cards (Perkins style) */
.services-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-visual-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-visual-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-visual-image {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
  position: relative;
  overflow: hidden;
}

.service-visual-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.service-visual-card:hover .service-visual-image {
  background-size: 110%;
}

.service-visual-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(13,31,66,0.1) 0%, rgba(13,31,66,0.25) 100%);
  transition: var(--transition);
}

.service-visual-card:hover .service-visual-overlay {
  background: linear-gradient(180deg, rgba(13,31,66,0.05) 0%, rgba(13,31,66,0.15) 100%);
}

.service-visual-placeholder {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 32px;
  z-index: 1;
}

.service-visual-placeholder small {
  font-size: 12px;
  display: block;
  margin-top: 4px;
}

.service-visual-content {
  padding: 28px 28px 32px;
}

.service-visual-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-visual-content p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.service-link {
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.service-link:hover {
  color: var(--navy);
  transform: translateX(4px);
}

/* Original small cards (keep for fallback) */

.service-card {
  background: white;
  padding: 44px 36px;
  border-radius: 8px;
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(212,129,58,0.03) 0%, transparent 50%);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gold), #b8940a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  position: relative;
}

.service-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  position: relative;
}

.service-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
  position: relative;
}

/* ========================================
   WHY CHOOSE US
   ======================================== */
.why-us {
  padding: 100px 0;
  background: var(--navy);
  color: white;
}

.why-us .section-header h2 { color: white; }
.why-us .section-header p { color: rgba(255,255,255,0.6); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.value-card {
  text-align: center;
  padding: 40px 24px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.value-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(212,129,58,0.3);
}

.value-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.value-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.value-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
  padding: 100px 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  background: linear-gradient(135deg, var(--navy), var(--dark-navy));
  border-radius: 12px;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.about-image::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at top right, rgba(212,129,58,0.15) 0%, transparent 60%);
}

.about-image-text {
  text-align: center;
  position: relative;
  z-index: 1;
}

.about-image-text .big-year {
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  font-weight: 900;
  color: var(--light-gold);
  line-height: 1;
}

.about-image-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 8px;
}

.about-content .overline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.about-content h2 {
  font-size: 42px;
  color: var(--navy);
  margin-bottom: 20px;
}

.about-content p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-content .highlight {
  background: white;
  padding: 20px 24px;
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--navy);
  font-weight: 500;
  font-style: italic;
  line-height: 1.7;
}

/* ========================================
   SERVICE AREA
   ======================================== */
.service-area {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(212,129,58,0.04) 0%, rgba(232,201,106,0.04) 100%);
}

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

.area-card {
  background: white;
  padding: 32px 24px;
  border-radius: 8px;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.area-card .area-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.area-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
  padding: 100px 0;
  background: var(--navy);
  color: white;
}

.testimonials .section-header h2 { color: white; }
.testimonials .section-header p { color: rgba(255,255,255,0.6); }

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

.testimonial-card {
  background: rgba(255,255,255,0.05);
  padding: 40px 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}

.testimonial-stars {
  color: var(--light-gold);
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--light-gold);
}

.testimonial-location {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

.testimonial-placeholder {
  text-align: center;
  padding: 60px 40px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 2px dashed rgba(255,255,255,0.1);
}

.testimonial-placeholder p {
  font-size: 16px;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

/* ========================================
   GALLERY / PORTFOLIO
   ======================================== */
.gallery-section {
  padding: 100px 0;
  background: var(--cream);
}

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

.gallery-item {
  background: var(--navy);
  border-radius: 8px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.gallery-item:hover { transform: scale(1.02); }

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

.gallery-placeholder {
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 14px;
  padding: 20px;
}

.gallery-placeholder .camera { font-size: 36px; margin-bottom: 8px; }

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--gold) 0%, #b8681e 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(36px, 5vw, 52px);
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-white {
  background: white;
  color: var(--navy);
  border-color: white;
  font-weight: 700;
}

.cta-section .btn-white:hover {
  background: transparent;
  color: white;
}

.cta-section .btn-outline-white {
  background: transparent;
  color: white;
  border-color: white;
}

.cta-section .btn-outline-white:hover {
  background: white;
  color: var(--navy);
}

.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
  padding: 100px 0;
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  margin-top: 24px;
}

.contact-info h3:first-child { margin-top: 0; }

.contact-info p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
}

.contact-info a {
  color: var(--gold);
  font-weight: 600;
}

.contact-info a:hover { color: var(--navy); }

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #ddd5c8;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  margin-bottom: 16px;
  transition: var(--transition);
  background: white;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form .btn-gold { width: 100%; text-align: center; border: 2px solid var(--gold); }

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--dark-navy);
  color: white;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-section h3 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light-gold);
  margin-bottom: 20px;
}

.footer-about p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 16px;
}

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

.footer-section ul li { margin-bottom: 10px; }

.footer-section ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

.footer-section ul li a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.footer-contact-item a { color: var(--light-gold); }
.footer-contact-item a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .services-grid, .services-visual-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 40px; }
}

@media (max-width: 768px) {
  .site-topbar { display: none; }

  .main-nav { display: none; }
  .main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    background: var(--navy);
    padding: 20px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  }

  .menu-toggle { display: block; }

  .hero { padding: 80px 0 60px; }
  .hero h1 { font-size: 36px; }
  .hero-stats { flex-direction: column; gap: 20px; }

  .services-grid,
  .services-visual-grid,
  .values-grid,
  .testimonial-grid,
  .gallery-grid { grid-template-columns: 1fr; }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .hero-buttons { flex-direction: column; }
  .btn { text-align: center; }
}
