/* ===========================
   RESET &amp; WORDPRESS OVERRIDES
   =========================== */

html, body {
  margin: 0 !important;
  padding: 0 !important;
}

/* Classic / theme wrappers – remove extra padding/whitespace */
#page,
.site,
.site-main,
.content-area,
#primary,
#main,
.site-content,
#content {
  margin: 0 !important;
  padding: 0 !important;
}

/* When logged in, don't push content down */
body.admin-bar {
  margin-top: 0 !important;
}

#wpadminbar {
  position: fixed !important;
}

/* Block theme wrappers */
.wp-site-blocks {
  padding: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.wp-block-group,
.entry-content {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none !important;
}

/* Remove default margin/padding on first block */
.wp-site-blocks > *:first-child,
.wp-block-group__inner-container > *:first-child,
body > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Hide built-in theme header + auto page titles */
#masthead,
.site-header,
.site-header-container,
.header-main,
.page-header,
.entry-header,
.site-branding,
.site-logo,
.entry-title,
.wp-block-post-title,
h1.wp-block-post-title,
header.wp-block-template-part {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

/* Hide auto page list (About, Blog, Cookie Policy, etc.) */
.wp-block-page-list,
.wp-block-page-list * {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Extra safety for any nav-style block WP injects */
nav.wp-block-navigation,
nav.wp-block-navigation * {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide any default footer/template-part footer (keep only .footer) */
#colophon,
footer.site-footer,
footer.wp-block-template-part:not(.footer),
footer .site-info,
footer .wp-block-navigation,
footer .wp-block-page-list,
footer .wp-block-site-title {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

/* Make sure nothing extra shows up after your custom footer */
.footer ~ * {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ===========================
   DESIGN VARIABLES
   =========================== */

:root {
  --primary: #112241;
  --accent: #d4af37;
  --light: #f8f9fa;
  --white: #ffffff;
  --dark: #1a1a1a;
  --gray: #6c757d;
}

/* ===========================
   BASE STYLES
   =========================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--dark);
  background: #fff;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   HEADER
   =========================== */

.header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 20px;
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  flex-wrap: nowrap !important;
  margin: 0 !important;
  gap: 1rem;
}

.logo {
  display: flex;
  gap: .6rem;
  align-items: center;
  color: #fff;
}

.logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.header a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 0.6rem !important;
}

.nav a {
  margin: 0 .6rem;
  opacity: .95;
  transition: color .2s ease;
  display: inline-block !important;
  white-space: nowrap !important;
}

.nav a:hover {
  color: var(--accent);
}

/* Hide specific navigation items */
.nav a[href*="robots"],
.nav a[href*="cookie-policy"],
.nav a[href*="ai-agent"] {
  display: none !important;
}

/* ===========================
   HERO – OLD SINGLE COLUMN (.hero)
   (used on some pages)
   =========================== */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 50vh;
  margin-top: 0;
  padding-top: 0;
}

.hero .left {
  background: linear-gradient(135deg, var(--primary) 0%, #1a4d6d 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 48px 20px;
}

.hero h1 {
  font-size: 2.6rem;
  margin: .2rem 0 1rem;
  color: #fff !important;
  line-height: 1.2;
}

.hero h2 {
  color: var(--accent) !important;
  letter-spacing: .06em;
  font-weight: 700;
  margin: 0 0 .4rem;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.hero p {
  opacity: .95;
  max-width: 50ch;
}

/* ===========================
   HERO SPLIT (.hero-split)
   HOME: TEXT LEFT / LOGO RIGHT
   =========================== */

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  min-height: 60vh;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, #1a4d6d 100%);
  color: #fff;
  padding: 60px 5vw;
  column-gap: 40px;
}

.hero-left {
  max-width: 600px;
}

/* Vertical spacing inside hero text */
.hero-left > * + * {
  margin-top: 0.75rem;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Heading styles for hero-split */
.hero-split h2 {
  color: var(--accent) !important;
  letter-spacing: .06em;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin: 0;
}

.hero-split h1 {
  color: #fff !important;
  font-size: 2.6rem;
  margin: .2rem 0 1rem;
  line-height: 1.2;
}

.hero-split p {
  color: #f1f5f9;
  opacity: .95;
  max-width: 50ch;
}

/* Gold glow logo in hero-split – smaller + clean */
.hero-logo-large {
  width: 45%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(212,175,55,0.28));
  opacity: 0;
  animation: fadeInLogo 1.2s ease-out forwards;
}

/* Fade-in animation */
@keyframes fadeInLogo {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   HERO &amp; CTA BUTTON ROWS
   =========================== */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.cta {
  background: linear-gradient(135deg, var(--primary) 0%, #1a4d6d 100%);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cta-actions .btn {
  margin: 0;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: all .3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
}

.btn-primary:hover {
  background: #c19e2f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212,175,55,.3);
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--primary);
}

/* ===========================
   STATS SECTION
   =========================== */

.stats {
  background: var(--accent);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  padding: 28px 20px;
}

.stat {
  background: rgba(255,255,255,.92);
  border-radius: 12px;
  text-align: center;
  padding: 14px 10px;
  font-weight: 800;
  color: var(--primary);
}

/* ===========================
   GENERIC SECTIONS
   =========================== */

.section {
  padding: 48px 20px;
  max-width: 100%;
}

.section h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  margin: 0 0 8px;
}

.section p.lead {
  text-align: center;
  color: var(--gray);
  max-width: 70ch;
  margin: 0 auto 28px;
}

/* ===========================
   GRID UTILITIES
   =========================== */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Generic auto grid if needed */
.auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

/* ===========================
   FLIP CARDS
   =========================== */

.card {
  background: transparent;
  border-radius: 14px;
  height: 340px;
  perspective: 1000px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card:hover .card-inner,
.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-front {
  background: #fff;
  border-top: 4px solid var(--accent);
  box-shadow: 0 6px 22px rgba(0,0,0,.07);
}

.card-back {
  background: linear-gradient(135deg, var(--primary) 0%, #1a4d6d 100%);
  color: #fff;
  transform: rotateY(180deg);
  box-shadow: 0 6px 22px rgba(0,0,0,.12);
  padding: 20px 18px;
}

.card-front h3 {
  margin: 8px 0 6px;
  color: var(--primary);
}

.card-front p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

.card-back h3 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 1.05rem;
}

.card-back p {
  color: #e8eef5;
  font-size: 0.88rem;
  line-height: 1.5;
}

.icon {
  width: 54px;
  height: 54px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.flip-indicator {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 8px;
  font-style: italic;
  opacity: 0.7;
}

/* Static card variant (favorites, contact, etc.) */
.card--static {
  height: auto;
  perspective: none;
  cursor: default;
}

.card--static .card-inner {
  transform: none !important;
}

.card--static .card-front {
  position: static;
  height: auto;
}

/* ===========================
   REVIEW CARDS
   =========================== */

.review-card {
  background: #122641;
  border-radius: 12px;
  padding: 28px;
  border-left: 4px solid #d4af37;
  box-shadow: 0 4px 15px rgba(0,0,0,.15);
  transition: transform .3s ease, box-shadow .3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.quote-icon {
  color: #d4af37;
  font-size: 3rem;
  line-height: 1;
  opacity: 0.4;
  font-family: Georgia, serif;
  margin-bottom: 8px;
}

.stars {
  color: #d4af37;
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-text {
  color: #d4af37;
  font-style: italic;
  line-height: 1.7;
  margin: 0 0 15px;
  font-size: 1rem;
}

.reviewer-name {
  color: #d4af37;
  font-weight: 700;
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.reviewer {
  color: #d4af37;
  font-weight: 400;
  margin: 0;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* ===========================
   REVIEW CTA SECTION
   =========================== */

.review-cta {
  background: var(--light);
  padding: 48px 20px;
  text-align: center;
}

.review-cta .container {
  max-width: 900px;
  margin: 0 auto;
}

.review-cta h3 {
  color: var(--primary);
  font-size: 2rem;
  margin: 0 0 12px;
}

.review-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.qr-code img {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  border: 4px solid var(--accent);
  background: #fff;
  padding: 12px;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.google-review-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--primary);
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.google-review-button:hover {
  background: #c19e2f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.google-icon {
  font-size: 1.3rem;
}

/* ===========================
   CONTACT SECTION FIXES
   =========================== */

#contact .card {
  height: auto;
  perspective: none;
  cursor: default;
}

#contact .card-inner {
  transform: none !important;
}

#contact .card-front {
  position: static;
  height: auto;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 24px 16px;
  margin-top: 24px;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity .2s ease;
}

.footer a:hover {
  opacity: .8;
}

.footer-links,
.footer-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.footer-meta {
  font-size: .9rem;
  opacity: .8;
  margin-top: 10px;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    justify-content: center;
  }

  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-right {
    margin-top: 20px;
  }

  .hero-logo-large {
    width: 60%;
    max-width: 260px;
  }
}

@media (max-width: 600px) {
  .header {
    flex-direction: column;
    gap: .5rem;
  }

  .hero .left {
    padding: 32px 20px;
  }

  .hero h1,
  .hero-split h1 {
    font-size: 2rem;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    display: block;
    max-width: 280px;
    width: 100%;
    margin: 6px auto;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    height: 360px;
  }

  .review-options {
    flex-direction: column;
    gap: 16px;
  }
}

/* Mobile touch support for flip cards */
@media (hover: none) {
  .card:active .card-inner {
    transform: rotateY(180deg);
  }
}

/* ===========================
   PRICING PAGE TEMP FIX
   =========================== */

.section [style*="grid-template-columns"] {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 18px !important;
}

@media (max-width: 980px) {
  .section [style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .section [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* === QUICK TWEAKS – OVERRIDES === */

/* Make the hero logo a little larger but not huge */
.hero-logo-large {
  width: 60%;
  max-width: 260px;
}

/* Center button text perfectly */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

/* Make cards feel more “horizontal” on wider screens */
@media (min-width: 981px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .card {
    height: 340px;
  }
}
