/* ============================================
   GRACE ROOFING GROUP — Theme Overrides
   Bold, Glowing, Premium Aesthetic
   ============================================ */

/* ============================================
   PRELOADER — Premium Loading Screen
   ============================================ */

.grace-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #1B1B1D;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.grace-preloader__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}

.grace-preloader__svg {
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 12px rgba(200, 166, 116, 0.25));
}

.grace-preloader__brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 2rem;
  color: #F7F7F5;
  letter-spacing: -0.02em;
  line-height: 1;
}

.grace-preloader__sub {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #C8A674;
  margin-top: 0.35rem;
}

.grace-preloader__bar {
  width: 16rem;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.grace-preloader__progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #C8A674, #D4B896);
  border-radius: 9999px;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 12px rgba(200, 166, 116, 0.4);
}

.grace-preloader__text {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.grace-preloader__label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #B9B5AA;
}

.grace-preloader__percent {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: #C8A674;
  min-width: 2.5rem;
  text-align: right;
}

.grace-preloader__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.grace-preloader__particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(200, 166, 116, 0.15);
  border-radius: 50%;
}

/* --- Admin bar offset --- */
html.admin-bar {
  margin-top: 0 !important;
}

.admin-bar .grace-site-nav {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .grace-site-nav {
    top: 46px;
  }
}

/* --- Scrolled nav --- */
.grace-site-nav.is-scrolled {
  background: rgba(27, 27, 29, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(200, 166, 116, 0.08);
}

/* --- Mobile menu --- */
.grace-mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   TYPOGRAPHY — Bolder, More Commanding
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700 !important;
}

h1, h2 {
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

/* ============================================
   TEXT GRADIENT — Golden Glow Effect
   ============================================ */

.text-gradient {
  background: linear-gradient(135deg, #d4aa60, #e8c98a, #c8a674) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: brightness(1.15);
  text-shadow: none;
  position: relative;
}

/* Glow aura behind gradient text */
.text-gradient::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #d4aa60, #e8c98a, #c8a674);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(20px) brightness(1.5);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}

/* Wrapper glow for headings containing gold text */
h1 .text-gradient,
h2 .text-gradient,
h3 .text-gradient {
  filter: brightness(1.2) drop-shadow(0 0 30px rgba(200, 166, 116, 0.3));
}

/* ============================================
   EYEBROW — Subtle Gold Luminosity
   ============================================ */

.eyebrow {
  color: #d4aa60 !important;
  text-shadow: 0 0 20px rgba(200, 166, 116, 0.25);
  font-weight: 600 !important;
  letter-spacing: 0.25em !important;
}

/* ============================================
   STAT NUMBERS — Luminous & Bold
   ============================================ */

.stat-number {
  font-weight: 800 !important;
  color: #fff !important;
  text-shadow:
    0 0 30px rgba(200, 166, 116, 0.2),
    0 0 60px rgba(200, 166, 116, 0.1);
  filter: brightness(1.05);
}

.stat-label {
  color: #c4bfb3 !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
}

/* ============================================
   BUTTONS — Glowing Gold CTA
   ============================================ */

.btn-primary {
  background: linear-gradient(135deg, #d4aa60, #c8a674) !important;
  color: #1B1B1D !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  box-shadow:
    0 4px 20px rgba(200, 166, 116, 0.25),
    0 0 0 0 rgba(200, 166, 116, 0);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e0bb75, #d4aa60) !important;
  box-shadow:
    0 8px 40px rgba(200, 166, 116, 0.45),
    0 0 60px rgba(200, 166, 116, 0.15) !important;
  transform: translateY(-1px) scale(1.03) !important;
}

.btn-secondary {
  border-color: rgba(200, 166, 116, 0.35) !important;
  font-weight: 600 !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-secondary:hover {
  border-color: rgba(200, 166, 116, 0.7) !important;
  background-color: rgba(200, 166, 116, 0.12) !important;
  box-shadow: 0 0 30px rgba(200, 166, 116, 0.12);
}

/* ============================================
   CARDS — Dark Glass with Gold Glow Hover
   ============================================ */

.card-dark {
  background-color: rgba(35, 35, 38, 0.85) !important;
  border: 1px solid rgba(247, 247, 245, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-dark:hover {
  border-color: rgba(200, 166, 116, 0.2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(200, 166, 116, 0.06);
}

/* Service cards glow on hover */
.service-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(200, 166, 116, 0.08);
  transform: translateY(-4px);
}

/* ============================================
   ICON BOXES — Brighter Gold
   ============================================ */

/* Make gold accent icons brighter */
.text-\[\#C8A674\] {
  color: #d4aa60 !important;
}

/* Gold background icon boxes — brighter tint */
.bg-\[\#C8A674\]\/10 {
  background-color: rgba(212, 170, 96, 0.12) !important;
}

.bg-\[\#C8A674\]\/20 {
  background-color: rgba(212, 170, 96, 0.2) !important;
}

/* ============================================
   BODY TEXT — Slightly Brighter
   ============================================ */

.text-\[\#B9B5AA\] {
  color: #c4c0b5 !important;
}

.text-\[\#8A8680\] {
  color: #9e9a93 !important;
}

/* Primary text — pure crisp white */
.text-\[\#F7F7F5\] {
  color: #ffffff !important;
}

/* ============================================
   PROJECTS GRID — Immersive Dark Cards
   ============================================ */

.grace-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 767px) {
  .grace-projects-grid {
    grid-template-columns: 1fr;
  }
}

.grace-project-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.grace-project-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(200, 166, 116, 0.08);
}

.grace-project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.grace-project-card:hover img {
  transform: scale(1.08);
}

.grace-project-card .grace-project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(27, 27, 29, 0.9) 0%,
    rgba(27, 27, 29, 0.4) 40%,
    rgba(27, 27, 29, 0.05) 100%
  );
  transition: opacity 0.4s ease;
}

.grace-project-card:hover .grace-project-overlay {
  background: linear-gradient(
    to top,
    rgba(27, 27, 29, 0.95) 0%,
    rgba(27, 27, 29, 0.5) 50%,
    rgba(27, 27, 29, 0.15) 100%
  );
}

.grace-project-card .grace-project-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, #d4aa60, #c8a674);
  color: #1B1B1D;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 9999px;
  z-index: 2;
  box-shadow: 0 2px 12px rgba(200, 166, 116, 0.3);
}

.grace-project-card .grace-project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
}

.grace-project-card .grace-project-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  transition: color 0.3s ease;
  line-height: 1.3;
}

.grace-project-card:hover .grace-project-title {
  color: #d4aa60;
  text-shadow: 0 0 20px rgba(200, 166, 116, 0.2);
}

.grace-project-card .grace-project-location {
  font-size: 0.8rem;
  color: #c4c0b5;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* View All Projects card in grid */
.grace-projects-cta {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #232326;
  border: 1px solid rgba(247, 247, 245, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  transition: all 0.4s ease;
  cursor: pointer;
}

.grace-projects-cta:hover {
  border-color: rgba(200, 166, 116, 0.3);
  box-shadow: 0 0 40px rgba(200, 166, 116, 0.08);
}

/* ============================================
   WHY CHOOSE — Enhanced Feature Cards
   ============================================ */

/* Feature number watermark — brighter */
.text-\[\#C8A674\]\/10 {
  color: rgba(212, 170, 96, 0.12) !important;
}

/* ============================================
   PROCESS STEPS — Enhanced step numbers
   ============================================ */

.text-\[\#C8A674\]\/20 {
  color: rgba(212, 170, 96, 0.18) !important;
}

/* ============================================
   TESTIMONIALS — Luminous Quote
   ============================================ */

[data-testimonials] blockquote {
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.04);
}

/* ============================================
   SECTION DIVIDERS — Subtle Golden Gradient
   ============================================ */

section + section {
  border-top: 1px solid rgba(200, 166, 116, 0.06);
}

/* ============================================
   FORM INPUTS — Subtle Glow Focus
   ============================================ */

input:focus,
textarea:focus {
  border-color: #d4aa60 !important;
  box-shadow:
    0 0 0 3px rgba(200, 166, 116, 0.15),
    0 0 20px rgba(200, 166, 116, 0.08) !important;
}

/* ============================================
   CONTACT ALERTS
   ============================================ */

.grace-contact-alert {
  margin-bottom: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(247, 247, 245, 0.1);
  padding: 1rem 1.25rem;
}

.grace-contact-alert.is-success {
  border-color: rgba(200, 166, 116, 0.5);
  background: rgba(200, 166, 116, 0.12);
  color: #f7f7f5;
}

.grace-contact-alert.is-error {
  border-color: rgba(255, 99, 71, 0.45);
  background: rgba(255, 99, 71, 0.14);
  color: #f7f7f5;
}

/* ============================================
   MAP & MISC
   ============================================ */

.grace-map-label {
  pointer-events: none;
}

.grace-menu-icon-hidden {
  display: none;
}

/* City dots pulse animation */
.city-dot {
  animation: city-pulse 2.5s ease-in-out infinite;
}

@keyframes city-pulse {
  0%, 100% { opacity: 0.3; r: 4; }
  50% { opacity: 0.6; r: 6; }
}

/* ============================================
   SCROLLBAR — Refined & Glowy
   ============================================ */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #1B1B1D;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4aa60, #c8a674);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e0bb75, #d4aa60);
}

/* ============================================
   SELECTION — Golden Highlight
   ============================================ */

::selection {
  background: rgba(212, 170, 96, 0.35);
  color: #fff;
}

::-moz-selection {
  background: rgba(212, 170, 96, 0.35);
  color: #fff;
}

/* ============================================
   LINK UNDERLINE — Brighter Gold
   ============================================ */

.link-underline::after {
  background: #d4aa60 !important;
}

/* ============================================
   HERO ENHANCEMENTS
   ============================================ */

/* Hero badge glow */
[data-hero-badge] {
  border-color: rgba(200, 166, 116, 0.2) !important;
  background: rgba(27, 27, 29, 0.6) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Hero word shimmer */
[data-hero-word] {
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.06);
}

/* Scroll indicator glow */
[data-hero] .w-px {
  background: linear-gradient(to bottom, #d4aa60, transparent) !important;
  box-shadow: 0 0 8px rgba(200, 166, 116, 0.3);
}

/* ============================================
   STATS STRIP — Floating Glassmorphism Bar
   ============================================ */

.grace-stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 27, 29, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 166, 116, 0.15);
  border-radius: 1rem;
  padding: 1.25rem 2rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(200, 166, 116, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.grace-stats-divider {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, transparent, rgba(200, 166, 116, 0.3), transparent);
  flex-shrink: 0;
}

/* Section that follows the floating stats strip */
.grace-after-stats {
  padding-top: 10rem !important;
}

@media (min-width: 1024px) {
  .grace-after-stats {
    padding-top: 12rem !important;
  }
}

/* ============================================
   FOOTER — Enhanced
   ============================================ */

footer {
  border-top-color: rgba(200, 166, 116, 0.08) !important;
}

/* ============================================
   RESPONSIVE POLISH
   ============================================ */

@media (max-width: 640px) {
  h1 {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
  }

  h2 {
    font-size: 1.75rem !important;
    line-height: 1.15 !important;
  }

  .grace-project-card {
    aspect-ratio: 16 / 11;
  }

  .grace-project-card .grace-project-info {
    padding: 1.25rem;
  }

  /* Hero mobile adjustments */
  #hero [data-hero-content] {
    padding-top: 7rem;
    padding-bottom: 8rem;
  }

  #hero [data-hero-badge] {
    padding: 0.35rem 0.75rem;
  }

  #hero [data-hero-badge] span {
    font-size: 0.65rem;
  }

  /* Stats strip mobile */
  .grace-stats-strip {
    padding: 0.75rem 0.5rem;
    border-radius: 0.75rem;
    gap: 0;
  }

  .grace-stats-strip [data-hero-stat] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .grace-stats-strip .stat-number {
    font-size: 1.25rem !important;
  }

  .grace-stats-strip .stat-label {
    font-size: 0.5rem !important;
    letter-spacing: 0.05em !important;
  }

  .grace-stats-divider {
    height: 1.75rem;
  }

  /* Storm damage section mobile — stack panels */
  #hero + section + section + section + section .grid.lg\\:grid-cols-2 {
    gap: 0;
  }

  /* About section stats grid mobile */
  [data-counter-group] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Process steps — tighter on mobile */
  .text-5xl.font-bold.text-\\[\\#C8A674\\]\\/20 {
    font-size: 2.5rem !important;
  }

  /* Testimonial quote sizing */
  [data-testimonials] blockquote {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
  }

  /* Coverage map hide on mobile */
  #coverage .aspect-square {
    max-width: 280px;
  }

  /* Section padding reduction on mobile */
  section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  section .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 1023px) {
  #hero [data-hero-content] {
    padding-top: 8rem;
    padding-bottom: 9rem;
  }

  .grace-stats-strip .stat-number {
    font-size: 1.5rem !important;
  }
}

/* ============================================
   INTERNAL PAGES — Additional Styles
   ============================================ */

/* Select dropdown styling */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B9B5AA' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

select option {
  background: #232326;
  color: #F7F7F5;
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Work page — featured card minimum height */
@media (min-width: 768px) {
  .grace-project-card[class*="col-span-2"] {
    aspect-ratio: auto;
  }

  .grace-project-card[class*="col-span-2"] img {
    min-height: 420px;
  }
}

/* ============================================
   INTERNAL PAGE HERO
   ============================================ */
.grace-page-hero {
  padding-top: 7rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .grace-page-hero {
    padding-top: 7.5rem;
    padding-bottom: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .grace-page-hero {
    padding-top: 8rem;
    padding-bottom: 3rem;
  }
}

