/* Shared site styles (used on ALL pages) */
.script-red {
  font-family: "Permanent Marker", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #ff3b3b;
  text-shadow: 2px 2px 0 #000, 0 0 10px rgba(255,0,0,.35);
  letter-spacing: .5px;
}
.block-font {
  font-family: "Oswald", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Improved nav buttons (same spirit as your homepage) */
.nav-red { background: #c1121f; color: #fff; }
.nav-red:hover { filter: brightness(1.08); }

.nav-pill{
  display:inline-block;
  padding:.55rem .95rem;
  border-radius:.65rem;
  font-weight:800;
  font-size:.9rem;
  letter-spacing:.02em;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .08s ease, filter .15s ease;
}
.nav-pill:hover{ transform: translateY(-1px); }

.pill-red { background:#c1121f; color:#fff; }
.pill-red:hover { filter: brightness(1.08); }

.pill-cta{
  display:inline-block;
  padding:.75rem 1.2rem;
  border-radius:999px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  transition: transform .08s ease, filter .15s ease;
}
.pill-cta:hover{ transform: translateY(-1px); }

/* ==============================
   HOMEPAGE WIX-STYLE OVERRIDES
   Targets only index.html elements
   ============================== */

/* 1) Stronger brushed metal (applies where .metal-bg is used) */
.metal-bg{
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(232,232,232,0.92)),
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,0.10) 0px,
      rgba(0,0,0,0.10) 1px,
      rgba(255,255,255,0.00) 7px,
      rgba(255,255,255,0.00) 13px
    ),
    radial-gradient(900px 500px at 50% 0%, rgba(255,255,255,0.55), rgba(0,0,0,0.05)),
    radial-gradient(900px 500px at 50% 100%, rgba(255,255,255,0.35), rgba(0,0,0,0.07))
    !important;
}

/* 2) Script text: light gray fill + red outline + black shadow */
.metal-bg .script-red,
header .script-red,
section.bg-black .script-red{
  color: #e9e9e9 !important;
  -webkit-text-stroke: 3px #d31313;
  text-shadow: 2px 2px 0 #000, 0 0 10px rgba(0,0,0,0.35) !important;
}

/* 3) Keep dark Wix panels dark (and readable) */
.bg-black\/40{ background: rgba(0,0,0,0.55) !important; }
.bg-black\/70{ background: rgba(0,0,0,0.72) !important; }
.border-white\/10{ border-color: rgba(255,255,255,0.12) !important; }
.text-white\/90{ color: rgba(255,255,255,0.92) !important; }

/* 4) Fix tile overflow for the 3rd tile (Lifetime Workmanship Warranty) */
.metal-bg .lg\:col-span-5 > div:nth-child(3) .script-red{
  font-size: 1.6rem !important;
  line-height: 1.05 !important;
  word-break: break-word;
}

/* 5) Make bottom buttons feel integrated */
.metal-bg .lg\:col-span-5{
  row-gap: 14px;
}
.metal-bg .lg\:col-span-5 > a{
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06), 0 10px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

/* 6) Contact section visibility */
section.bg-black{
  background: rgba(0,0,0,0.92) !important;
}
section.bg-black, section.bg-black *{
  color: #f2f2f2 !important;
}
section.bg-black a{
  color: #ffffff !important;
  text-decoration: underline;
}


/* ==============================
   REFINEMENTS (less blotchy, gunmetal, tighter tiles)
   ============================== */

/* Gunmetal brushed metal */
.metal-bg{
  background:
    linear-gradient(180deg, rgba(95,95,95,0.72), rgba(60,60,60,0.78)),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.08) 0px,
      rgba(255,255,255,0.08) 1px,
      rgba(0,0,0,0.00) 7px,
      rgba(0,0,0,0.00) 13px
    ),
    radial-gradient(900px 500px at 50% 0%, rgba(255,255,255,0.10), rgba(0,0,0,0.22)),
    radial-gradient(900px 500px at 50% 100%, rgba(255,255,255,0.06), rgba(0,0,0,0.28))
    !important;
}

/* Script: subtler outline (less blotchy) */
.metal-bg .script-red,
header .script-red,
section.bg-black .script-red{
  color: #e6e6e6 !important;
  -webkit-text-stroke: 2px rgba(211, 19, 19, 0.85);
  text-shadow:
    2px 2px 0 rgba(0,0,0,0.95),
    0 0 8px rgba(0,0,0,0.35) !important;
}

/* Lock the 2x2 tiles to equal height so buttons don't "float" */
.metal-bg .lg\:col-span-5 > div:nth-child(-n+4){
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Also normalize button tiles */
.metal-bg .lg\:col-span-5 > a{
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lifetime tile: smaller still */
.metal-bg .lg\:col-span-5 > div:nth-child(3) .script-red{
  font-size: 1.35rem !important;
  line-height: 1.02 !important;
  letter-spacing: 0.2px;
}

/* Keep contact section readable */
section.bg-black, section.bg-black *{
  color: #f2f2f2 !important;
}


/* === Fine-tune script outline + lifetime tile === */
.metal-bg .script-red,
header .script-red,
section.bg-black .script-red{
  -webkit-text-stroke: 1.5px rgba(211, 19, 19, 0.80) !important; /* thinner */
}

.metal-bg .lg\:col-span-5 > div:nth-child(3) .script-red{
  font-size: 1.20rem !important; /* smaller */
  line-height: 1.00 !important;
}

/* Make Gallery + About buttons black like the others */
.metal-bg .lg\:col-span-5 > div:nth-child(1) a,
.metal-bg .lg\:col-span-5 > div:nth-child(4) a{
  background:#000 !important;
  color:#ffffff !important;
  border-color:#000 !important;
}


/* === Force all tile buttons to identical size and alignment === */

.metal-bg .lg\:col-span-5 a{
  width:100% !important;
  max-width:180px;
  height:46px !important;

  display:flex !important;
  align-items:center;
  justify-content:center;

  margin-left:auto;
  margin-right:auto;

  font-size:0.95rem;
  letter-spacing:0.5px;
  padding:0 !important;
}

/* Ensure tiles align vertically */
.metal-bg .lg\:col-span-5 > div{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:center;
}

/* Keep button spacing consistent */
.metal-bg .lg\:col-span-5 > div a{
  margin-top:18px;
}


/* Drop the TBD button slightly in the Lifetime Warranty tile */
.metal-bg .lg\:col-span-5 > div:nth-child(3) a{
  margin-top:30px !important;
}


/* === Final tile spacing polish === */

/* balance space between heading and button */
.metal-bg .lg\:col-span-5 > div{
  padding-top:24px !important;
  padding-bottom:22px !important;
}

/* keep titles centered visually */
.metal-bg .lg\:col-span-5 .script-red{
  margin-bottom:10px;
}

/* consistent button spacing */
.metal-bg .lg\:col-span-5 a{
  margin-top:16px !important;
}


/* =========================================================
   TOP NOTCH THEME (apply to all pages with body.tn-theme)
   EXCLUDES privacy.html (no tn-theme class there)
   ========================================================= */

body.tn-theme{
  /* gunmetal brushed metal */
  background:
    linear-gradient(180deg, rgba(95,95,95,0.72), rgba(60,60,60,0.78)),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.08) 0px,
      rgba(255,255,255,0.08) 1px,
      rgba(0,0,0,0.00) 7px,
      rgba(0,0,0,0.00) 13px
    ),
    radial-gradient(900px 500px at 50% 0%, rgba(255,255,255,0.10), rgba(0,0,0,0.22)),
    radial-gradient(900px 500px at 50% 100%, rgba(255,255,255,0.06), rgba(0,0,0,0.28))
    !important;

  color: #f2f2f2;
}

/* Make default page content readable even if Tailwind classes say gray/black */
body.tn-theme .text-gray-900,
body.tn-theme .text-gray-800,
body.tn-theme .text-gray-700,
body.tn-theme .text-gray-600,
body.tn-theme .text-black{
  color:#f2f2f2 !important;
}

body.tn-theme a{ color:#ffffff; }
body.tn-theme a:hover{ filter: brightness(1.08); }

/* Give main content a “dark panel” feel like homepage sections */
body.tn-theme main{
  background: rgba(0,0,0,0.62);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 42px 24px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

/* Mobile padding */
@media (min-width: 768px){
  body.tn-theme main{ padding: 56px 40px; }
}

/* Headings: Permanent Marker + subtle red outline + shadow */
body.tn-theme h1,
body.tn-theme h2,
body.tn-theme h3{
  font-family: "Permanent Marker", cursive;
  color: #e6e6e6 !important;
  -webkit-text-stroke: 1.5px rgba(211, 19, 19, 0.80);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.95), 0 0 8px rgba(0,0,0,0.35);
}

/* Paragraph/list readability */
body.tn-theme p,
body.tn-theme li{
  color: rgba(255,255,255,0.92) !important;
}

/* Make white cards readable if a page uses them */
body.tn-theme .bg-white{
  background: rgba(255,255,255,0.92) !important;
  color: #111 !important;
}
body.tn-theme .bg-white *{
  color:#111 !important;
}

/* Accordion/details cards (How It Works) */
body.tn-theme details{
  background: rgba(0,0,0,0.62) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}
body.tn-theme summary{
  color:#f2f2f2 !important;
}


/* =========================================================
   HOMEPAGE TILE FIX (scoped) — prevents global link/button bugs
   ========================================================= */

/* Reset any broad rules that may have hit all <a> elements */
.home-tiles a{
  transform: none !important;
  margin-top: 0 !important;
}

/* Right tile grid container */
.home-tiles .lg\:col-span-5{
  row-gap: 16px;
}

/* Make each of the 4 tiles behave consistently */
.home-tiles .lg\:col-span-5 > div:nth-child(-n+4){
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height: 190px;
}

/* Button base style for ALL 4 tile buttons */
.home-tiles .lg\:col-span-5 > div:nth-child(-n+4) a{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  height: 48px !important;
  width: 100% !important;
  max-width: 200px !important;
  margin: 18px auto 0 auto !important;
  border-radius: 9999px !important;
  font-family: "Oswald", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: .5px;
}

/* Tile 1 (Paint Matching) + Tile 4 (Locally Owned) — button should be BLACK w/ LIGHT text */
.home-tiles .lg\:col-span-5 > div:nth-child(1) a,
.home-tiles .lg\:col-span-5 > div:nth-child(4) a{
  background:#000 !important;
  color:#f2f2f2 !important;
}

/* Tile 2 (Free Estimates) + Tile 3 (Lifetime Warranty) — button should be WHITE w/ BLACK text */
.home-tiles .lg\:col-span-5 > div:nth-child(2) a,
.home-tiles .lg\:col-span-5 > div:nth-child(3) a{
  background: rgba(255,255,255,0.92) !important;
  color:#000 !important;
}

/* Keep Lifetime Workmanship Warranty text from pushing layout */
.home-tiles .lg\:col-span-5 > div:nth-child(3) .script-red{
  font-size: 1.45rem !important;
  line-height: 1.05 !important;
}


/* ===== Construction Tape ===== */
.construction-tape{
  height:60px;
  background:
    repeating-linear-gradient(
      45deg,
      #ffd400 0px,
      #ffd400 20px,
      #000 20px,
      #000 40px
    );
  border-top:4px solid #000;
  border-bottom:4px solid #000;
  box-shadow:0 6px 16px rgba(0,0,0,.4);
}

.construction-wrap{
  position:relative;
  overflow:hidden;
}

.construction-tape.top{
  transform:rotate(-3deg);
  margin-bottom:40px;
}

.construction-tape.bottom{
  transform:rotate(3deg);
  margin-top:40px;
}

/* force readable button text */
a.bg-white\/95{
  color:#000 !important;
}

/* ===== Gallery button fix ===== */
.gallery-buttons a,
.gallery-buttons button,
a.rounded-2xl{
  color:#000 !important;
}

.gallery-buttons a:hover,
.gallery-buttons button:hover{
  color:#000 !important;
}

/* ===== Gallery white button text fix (force black) ===== */
a.bg-white\/95,
a.bg-white\/95 *{
  color:#000 !important;
}

/* ===== FORCE: Gallery buttons must be black text ===== */
.gallery-buttons a,
.gallery-buttons a *{
  color:#000 !important;
}

/* ===== FORCE: Gallery page buttons text always black ===== */
body.tn-theme .gallery-buttons a.bg-white\/95,
body.tn-theme .gallery-buttons a.bg-white\/95 *{
  color:#000 !important;
}

/* just in case the buttons are not bg-white/95 */
body.tn-theme .gallery-buttons a,
body.tn-theme .gallery-buttons a *{
  color:#000 !important;
}

/* FIX: prevent header overlays from hijacking clicks */
header { pointer-events: none; }
header a, header nav, header button { pointer-events: auto; }
