/*
Theme Name: Prime Electrical Services
Theme URI: https://www.primeelectricalco.com
Author: Prime Electrical Services Colorado LLC
Author URI: https://www.primeelectricalco.com
Description: A custom theme for Prime Electrical Services Colorado - Master Electricians providing expert residential and commercial electrical services. Features a dark/gold color scheme with modern design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prime-electrical
Tags: dark, gold, business, electrician, custom-logo, custom-menu, featured-images

Prime Electrical Services Custom WordPress Theme
Licensed, Insured, and Family-Owned Electrical Experts in Colorado

Color Palette:
  Primary Gold: #D4AF37
  Background Dark: #121212
  Black: #000000
  Text: #FFFFFF (white), #9CA3AF (gray-400), #D1D5DB (gray-300)
*/

/* ===========================
   CSS Custom Properties
   =========================== */
:root {
  /* Brand Colors */
  --prime-gold: #D4AF37;
  --prime-gold-light: #fde047;
  --prime-gold-hover: #ecc94b;
  --prime-dark: #121212;
  --prime-black: #000000;

  /* Text Colors */
  --text-white: #FFFFFF;
  --text-gray-300: #D1D5DB;
  --text-gray-400: #9CA3AF;
  --text-gray-500: #6B7280;
  --text-gray-800: #1F2937;

  /* Border Colors */
  --border-gray-800: #1f2937;

  /* Shadows */
  --shadow-gold: rgba(212, 175, 55, 0.1);
  --shadow-gold-strong: rgba(212, 175, 55, 0.2);
}

/* ===========================
   Reset & Base Styles
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--prime-dark);
  color: var(--text-white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--prime-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--prime-gold-light);
}

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

/* ===========================
   Typography
   =========================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-white);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Gold accent text */
.text-prime-gold,
.accent-gold {
  color: var(--prime-gold);
}

/* ===========================
   Container
   =========================== */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===========================
   Header & Navigation
   =========================== */
.site-header {
  background-color: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px var(--shadow-gold);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  max-width: 80rem;
  margin: 0 auto;
}

/* Site Branding / Logo */
.site-branding {
  flex-shrink: 0;
}

.site-logo,
.site-branding a {
  display: flex;
  align-items: center;
}

.site-logo img,
.site-branding img,
.custom-logo {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
  transition: filter 0.3s ease, transform 0.3s ease;
}

@media (min-width: 768px) {

  .site-logo img,
  .site-branding img,
  .custom-logo {
    height: 96px;
  }
}

.site-logo:hover img,
.site-branding a:hover img,
.site-branding a:hover .custom-logo {
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.6));
}

/* Logo Sheen/Shimmer Effect */
.logo-sheen-container,
.site-branding a {
  position: relative;
  overflow: hidden;
}

.logo-sheen-container::after,
.site-branding a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  /* The moving gradient that creates the sheen */
  background: linear-gradient(100deg,
      transparent 30%,
      rgba(255, 255, 255, 0.4),
      transparent 70%);
  background-size: 200% 100%;

  /* Use the logo image itself to clip the sheen effect */
  -webkit-mask-image: url('https://raw.githubusercontent.com/CREATEDCHARACTR/PRIME-ELECTRICAL-SERVICES-WEBSITE/5dfdded2fbac523836ea6f493ccfafd84574fda4/6E5280CD-E25E-4340-A845-E837EB5A5BC4.png');
  mask-image: url('https://raw.githubusercontent.com/CREATEDCHARACTR/PRIME-ELECTRICAL-SERVICES-WEBSITE/5dfdded2fbac523836ea6f493ccfafd84574fda4/6E5280CD-E25E-4340-A845-E837EB5A5BC4.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;

  /* Animate the background position to move the sheen */
  animation: logo-sheen 6s infinite;
  animation-timing-function: ease-in-out;
}

@keyframes logo-sheen {
  0% {
    background-position: 200% 0;
  }

  15% {
    background-position: -200% 0;
  }

  50% {
    background-position: -200% 0;
  }

  65% {
    background-position: 200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* Desktop Navigation */
.main-navigation {
  display: none;
  flex: 1;
  justify-content: center;
}

@media (min-width: 1024px) {
  .main-navigation {
    display: flex;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .header-cta-btn {
    display: inline-block;
  }
}

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

.nav-menu li a {
  color: var(--text-white);
  font-weight: 500;
  padding: 0.5rem 0;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
  color: var(--prime-gold);
}

.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Header CTA Button */
.header-cta-btn {
  display: none;
  background-color: var(--prime-gold);
  color: var(--prime-dark);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.header-cta-btn:hover {
  background-color: var(--prime-gold-light);
  color: var(--prime-dark);
  transform: scale(1.05);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  background: transparent;
  border: 2px solid var(--prime-gold);
  color: var(--prime-gold);
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: var(--prime-gold);
  color: var(--prime-dark);
}

/* Mobile Navigation */
.mobile-navigation {
  display: none;
  background: var(--prime-black);
  border-top: 1px solid var(--border-gray-800);
  padding: 1rem;
}

.mobile-navigation.is-open {
  display: block;
}

.mobile-navigation .nav-menu {
  flex-direction: column;
  gap: 0;
  text-align: center;
}

.mobile-navigation .nav-menu li a {
  display: block;
  padding: 1rem;
  border-bottom: 1px solid var(--border-gray-800);
}

/* Mobile CTA Button */
.mobile-navigation .header-cta-mobile {
  display: block;
  width: 100%;
  background-color: var(--prime-gold);
  color: var(--prime-dark);
  font-weight: 700;
  text-align: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  margin-top: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.mobile-navigation .header-cta-mobile:hover {
  background-color: var(--prime-gold-light);
  color: var(--prime-dark);
}

@media (min-width: 1024px) {
  .mobile-navigation {
    display: none !important;
  }
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 1.5rem;
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.8));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 60rem;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-gray-300);
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* ===========================
   Buttons
   =========================== */
.btn,
.wp-block-button__link {
  display: inline-block;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary,
.wp-block-button.is-style-fill .wp-block-button__link {
  background-color: var(--prime-gold);
  color: var(--prime-dark);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover {
  background-color: var(--prime-gold-light);
  transform: scale(1.05);
  color: var(--prime-dark);
}

.btn-secondary,
.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent;
  color: var(--prime-gold);
  border: 2px solid var(--prime-gold);
}

.btn-secondary:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--prime-gold);
  color: var(--prime-dark);
  transform: scale(1.05);
}

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

.btn-dark:hover {
  background-color: #1f2937;
  transform: scale(1.05);
}

/* ===========================
   Sections
   =========================== */
.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.section-dark {
  background-color: var(--prime-dark);
}

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

.section-gold {
  background-color: var(--prime-gold);
}

.section-gold,
.section-gold h1,
.section-gold h2,
.section-gold h3,
.section-gold p,
.section-gold a {
  color: var(--prime-dark);
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray-400);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto 3rem;
}

/* ===========================
   Cards
   =========================== */
.card {
  background-color: var(--prime-black);
  border: 1px solid var(--border-gray-800);
  border-radius: 0.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--prime-gold);
  box-shadow: 0 25px 50px -12px var(--shadow-gold-strong);
  transform: scale(1.02);
}

/* Service Card */
.service-card {
  background-color: var(--prime-black);
  padding: 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-gray-800);
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--prime-gold);
  box-shadow: 0 25px 50px -12px var(--shadow-gold);
  transform: scale(1.05);
}

.service-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: var(--prime-dark);
  border-radius: 50%;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-gray-400);
  margin-bottom: 0;
}

/* Project Card */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.project-card img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.project-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

.project-card-content h3 {
  margin-bottom: 0.25rem;
}

.project-card-content .location {
  color: var(--prime-gold);
  font-size: 0.875rem;
}

.category-badge {
  display: inline-block;
  background-color: var(--prime-gold);
  color: var(--prime-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Testimonial Card */
.testimonial-card {
  background-color: var(--prime-dark);
  padding: 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-gray-800);
}

.testimonial-card blockquote {
  color: var(--text-gray-300);
  font-style: italic;
  margin: 0 0 1.5rem 0;
  padding: 0;
  border: none;
  font-size: 1rem;
  line-height: 1.8;
}

.testimonial-card blockquote::before {
  content: '"';
  color: var(--prime-gold);
  font-size: 3rem;
  line-height: 0;
  vertical-align: -0.5rem;
  margin-right: 0.25rem;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--text-white);
}

.testimonial-card .location {
  color: var(--prime-gold);
  font-size: 0.875rem;
}

/* ===========================
   Trust Badges
   =========================== */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  border: 2px solid var(--prime-gold);
  border-radius: 0.5rem;
  width: 12rem;
  min-height: 10rem;
  justify-content: center;
  transition: all 0.3s ease;
}

.trust-badge:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-4px);
}

.trust-badge-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.trust-badge h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.trust-badge p {
  color: var(--text-gray-400);
  font-size: 0.875rem;
  margin: 0;
}

/* ===========================
   Grid Layouts
   =========================== */
.grid {
  display: grid;
  gap: 2rem;
}

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

@media (min-width: 640px) {
  .sm-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .md-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .md-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .lg-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* ===========================
   Two Column Layout
   =========================== */
.two-column {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .two-column {
    grid-template-columns: 1fr 1fr;
  }
}

.two-column img {
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ===========================
   Feature List
   =========================== */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.feature-list .icon {
  color: var(--prime-gold);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* ===========================
   About Page Styles
   =========================== */
.about-profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-profile-grid {
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
  }
}

.about-photo img {
  width: 100%;
  height: auto;
  max-width: 500px;
  margin: 0 auto;
  display: block;
}

.about-story h2 {
  font-size: 2rem;
}

@media (min-width: 768px) {
  .about-story h2 {
    font-size: 2.5rem;
  }
}

.rounded-lg {
  border-radius: 0.5rem;
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
  background-color: var(--prime-gold);
  padding: 4rem 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-section {
    padding: 5rem 1.5rem;
  }
}

.cta-section h2 {
  color: var(--prime-dark);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-gray-800);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background-color: var(--prime-black);
  border-top: 2px solid var(--prime-gold);
  padding: 3rem 0 2rem;
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Original 4-column grid (kept for backward compatibility) */
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* New 3-column grid matching React footer */
.footer-grid-3col {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-grid-3col {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }
}

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

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

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

@media (min-width: 768px) {
  .footer-left {
    text-align: left;
  }

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

  .footer-right {
    text-align: right;
  }
}

.footer-section h3 {
  color: var(--text-white);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section p {
  color: var(--text-gray-400);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
  color: var(--text-gray-400);
  font-size: 0.875rem;
}

.footer-section a {
  color: var(--text-gray-300);
  transition: color 0.3s ease;
}

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

.footer-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1.5rem !important;
  font-size: 0.875rem !important;
}

.footer-bottom {
  border-top: 1px solid var(--border-gray-800);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-gray-500);
  font-size: 0.875rem;
}

/* ===========================
   Blog / Post Styles
   =========================== */
.post-header {
  text-align: center;
  padding: 3rem 0;
}

.post-meta {
  color: var(--text-gray-400);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.post-meta a {
  color: var(--prime-gold);
}

.post-thumbnail {
  margin-bottom: 2rem;
}

.post-thumbnail img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.post-content {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* WordPress Content Styles */
.entry-content,
.post-content {
  color: var(--text-gray-300);
  line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--prime-gold);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.entry-content strong,
.post-content strong {
  color: var(--text-white);
}

.entry-content a,
.post-content a {
  color: var(--prime-gold);
  text-decoration: underline;
}

.entry-content a:hover,
.post-content a:hover {
  color: var(--prime-gold-light);
}

.entry-content blockquote,
.post-content blockquote {
  border-left: 4px solid var(--prime-gold);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-gray-300);
}

.entry-content ul,
.entry-content ol,
.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.entry-content ul li::marker,
.entry-content ol li::marker,
.post-content ul li::marker,
.post-content ol li::marker {
  color: var(--prime-gold);
}

.entry-content li,
.post-content li {
  margin-bottom: 0.5rem;
}

/* Blog Archive */
.blog-posts {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .blog-posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-posts {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: var(--prime-black);
  border: 1px solid var(--border-gray-800);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  border-color: var(--prime-gold);
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px var(--shadow-gold-strong);
}

.blog-card-image {
  height: 12rem;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.1);
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.blog-card-content h3 a {
  color: var(--text-white);
}

.blog-card-content h3 a:hover {
  color: var(--prime-gold);
}

.blog-card-content .excerpt {
  color: var(--text-gray-400);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.read-more {
  color: var(--prime-gold);
  font-weight: 600;
  font-size: 0.875rem;
}

/* ===========================
   Contact Form Styles
   =========================== */
.contact-form {
  max-width: 36rem;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

/* Contact Page Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
  }
}

.contact-form-wrapper,
.contact-info-wrapper {
  width: 100%;
}

.contact-info-wrapper h2 {
  font-size: 1.75rem;
}

.contact-info-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-info-item a {
  color: var(--text-white);
  text-decoration: none;
}

.contact-info-item a:hover {
  color: var(--prime-gold);
}

/* Form Row (side-by-side fields) */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-half {
  margin-bottom: 0;
}

/* Error Styling */
.error-message {
  display: block;
  margin-top: 0.25rem;
  color: #ef4444;
  font-size: 0.875rem;
}

.form-group input.has-error,
.form-group select.has-error,
.form-group textarea.has-error {
  border-color: #ef4444;
}

/* Form Notices */
.form-notice {
  text-align: center;
  margin: 1.5rem 0;
}

.emergency-notice {
  color: #ef4444;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.email-notice {
  color: var(--text-gray-400);
  font-size: 0.75rem;
  margin: 0;
}

.form-group label {
  display: block;
  color: var(--text-white);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select,
.wpcf7-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--prime-black);
  border: 1px solid var(--border-gray-800);
  border-radius: 0.5rem;
  color: var(--text-white);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

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

.form-group textarea {
  min-height: 10rem;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-gray-500);
}

/* Contact Form 7 Compatibility */
.wpcf7 .wpcf7-submit {
  background-color: var(--prime-gold);
  color: var(--prime-dark);
  font-weight: 700;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wpcf7 .wpcf7-submit:hover {
  background-color: var(--prime-gold-light);
  transform: scale(1.05);
}

.wpcf7 .wpcf7-response-output {
  border-color: var(--prime-gold) !important;
  color: var(--text-white);
  background: var(--prime-black);
  padding: 1rem;
  border-radius: 0.5rem;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.7s ease-out forwards;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.95);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ===========================
   Utility Classes
   =========================== */
.text-center {
  text-align: center;
}

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

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

.mb-0 {
  margin-bottom: 0;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mt-0 {
  margin-top: 0;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Flex utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

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

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

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

/* WordPress Admin Bar Compatibility */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* Screen Reader Text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--prime-gold);
  clip: auto !important;
  clip-path: none;
  color: var(--prime-dark);
  display: block;
  font-size: 1rem;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* WordPress Caption */
.wp-caption {
  max-width: 100%;
  margin-bottom: 1rem;
}

.wp-caption-text {
  color: var(--text-gray-400);
  font-size: 0.875rem;
  text-align: center;
  margin-top: 0.5rem;
}

/* WordPress Alignments */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

/* WordPress Gallery */
.wp-block-gallery {
  margin-bottom: 1.5rem;
}

.wp-block-gallery .wp-block-image img {
  border-radius: 0.5rem;
}

/* WordPress Pagination */
.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  background: var(--prime-black);
  border: 1px solid var(--border-gray-800);
  border-radius: 0.25rem;
  color: var(--text-white);
  font-weight: 500;
  transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--prime-gold);
  border-color: var(--prime-gold);
  color: var(--prime-dark);
}

/* ===========================
   Preloader / Loading Screen
   =========================== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--prime-dark);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  opacity: 1;
  visibility: visible;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  width: 200px;
  height: auto;
  max-width: 50vw;
  animation: logo-pulse 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0));
}

@keyframes logo-pulse {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
  }

  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 16px rgba(212, 175, 55, 1));
  }
}

.loading-bar-container {
  width: 250px;
  height: 4px;
  background-color: rgba(212, 175, 55, 0.2);
  border-radius: 2px;
  margin-top: 2.5rem;
  overflow: hidden;
  position: relative;
}

.loading-bar-pulse {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--prime-gold), transparent);
  background-size: 200% 100%;
  animation: charge-bar 2.5s linear infinite;
  position: absolute;
  top: 0;
  left: 0;
}

@keyframes charge-bar {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.loading-text {
  margin-top: 1.5rem;
  color: var(--prime-gold);
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: bold;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  animation: text-flicker 2.5s linear infinite;
}

@keyframes text-flicker {

  0%,
  18%,
  22%,
  25%,
  53%,
  57%,
  100% {
    text-shadow:
      0 0 4px var(--prime-gold),
      0 0 11px var(--prime-gold),
      0 0 19px var(--prime-gold),
      0 0 40px var(--prime-gold);
    opacity: 1;
  }

  20%,
  24%,
  55% {
    text-shadow: none;
    opacity: 0.6;
  }
}

/* Page fade-in after preloader */
.page-fade-in {
  animation: pageEnter 0.7s ease-out forwards;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}