/* ===============================
   GrimeTech — Ceramic Coatings Page
   Clean, legible, on-brand styling
   Depends on variables from main.css
   =============================== */

/* ---------------------------------
   Page-scoped tokens (safe overrides)
-----------------------------------*/
body.ceramicCoats {
  --pageMax: 1100px;
  --sectionPadY: clamp(28px, 5vw, 64px);
  --sectionPadX: 16px;
  --cardBg: rgba(20, 20, 20, .55);
  --cardBorder: rgba(255,255,255,.08);
  --cardShadow: 0 12px 28px rgba(0,0,0,.28);
  --glassBlur: 4px;
  --accent: var(--grimeGreen);
  --ink: var(--gray90);
  --muted: var(--gray80);
  --hairlineTop: 1px solid rgba(255,255,255,.06);
  --hairlineBottom: 1px solid rgba(0,0,0,.25);
}

/* ---------------------------------
   Background — page hero image
-----------------------------------*/
body.ceramicCoats .background{
  background-image:url('../img/ceramicCoats.jpg');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  height:100vh;
  width:100%;
}
/* Green vignette overlay for legibility */
body.ceramicCoats .background::after{
  content:"";
  position:fixed; inset:0;
  background: radial-gradient(1200px 600px at 70% 20%, rgba(66,232,133,.14), transparent 60%),
              linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.25) 40%, rgba(0,0,0,.65));
  pointer-events:none; z-index:-1;
}

/* Optional extra dark cover on this page only */
body.ceramicCoats .bg-cover{ background-color: rgba(0,0,0,.50); }

/* ---------------------------------
   Global base tweaks (scoped)
-----------------------------------*/
body.ceramicCoats main{ margin-top:0; }
body.ceramicCoats{
  font-family:var(--ff);
  font-size:16px;
  background:var(--gray10);
  color:var(--gray90);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
body.ceramicCoats h1,
body.ceramicCoats h2{ font-family:var(--ffh); color:var(--ink); }
body.ceramicCoats h3,
body.ceramicCoats h4{ font-family:var(--ff); color:var(--ink); }

body.ceramicCoats h1{ font-size:clamp(2.2rem,5vw,3.5rem); line-height:1.1; margin:0 0 .4rem; }
body.ceramicCoats h2{ font-size:clamp(1.6rem,3.5vw,2.2rem); line-height:1.2; margin:0 0 .75rem; }
body.ceramicCoats h3{ font-size:clamp(1.1rem,2.3vw,1.3rem); margin:.2rem 0 .5rem; }
body.ceramicCoats p { max-width: 72ch; }

/* Links */
body.ceramicCoats a{ color:var(--accent); text-decoration:none; transition:color .15s ease; }
body.ceramicCoats a:hover{ text-decoration:underline; }
body.ceramicCoats a:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; border-radius:6px; }

/* ---------------------------------
   Sections — dark slabs with subtle hairlines
-----------------------------------*/
body.ceramicCoats .services-section,
body.ceramicCoats .intro,
body.ceramicCoats .includes,
body.ceramicCoats .packages,
body.ceramicCoats .surfaces,
body.ceramicCoats .process,
body.ceramicCoats .access,
body.ceramicCoats .call-to-action{
  background:var(--primaryGrey);
  border-top:var(--hairlineTop);
  border-bottom:var(--hairlineBottom);
  padding:var(--sectionPadY) var(--sectionPadX);
  width:100%;
}
body.ceramicCoats .intro-title,
body.ceramicCoats .services-section h2{ margin:0 0 12px; text-align:center; }

/* Center inner content */
body.ceramicCoats .intro > .intro-grid,
body.ceramicCoats .includes .includes-grid,
body.ceramicCoats .packages .package-cards,
body.ceramicCoats .packages .pricing-note,
body.ceramicCoats .surfaces .addon-grid,
body.ceramicCoats .process .steps,
body.ceramicCoats .process .notice,
body.ceramicCoats .access .access-list{
  max-width:var(--pageMax);
  margin-inline:auto;
}

/* ---------------------------------
   HERO (unchanged)
-----------------------------------*/
body.ceramicCoats .hero{
  position:relative;
  text-align:center;
  color:var(--ink);
  height:100vh;
  display:flex; justify-content:center; align-items:center;
  padding:0 16px;
}
body.ceramicCoats .hero .hero-text{ z-index:1; max-width:900px; }
body.ceramicCoats .hero h1{ color:var(--accent); text-shadow:2px 2px 5px rgba(0,0,0,.8); }
body.ceramicCoats .hero p { font:var(--p); text-shadow:2px 2px 5px rgba(0,0,0,.7); margin:0 auto 8px; max-width:60ch; }

/* Buttons (shared) */
body.ceramicCoats .btn-primary,
body.ceramicCoats .btn-secondary{
  display:inline-block; margin-top:14px; padding:12px 18px;
  border-radius:14px; font-weight:700; letter-spacing:.2px;
  transition:transform .12s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
body.ceramicCoats .btn-primary{ background:var(--accent); color:#0b0b0b; box-shadow:0 8px 20px rgba(66,232,133,.25); }
body.ceramicCoats .btn-primary:hover{ transform:translateY(-1px); box-shadow:0 10px 24px rgba(66,232,133,.35); }
body.ceramicCoats .btn-secondary{ background:transparent; color:var(--accent); border:2px solid var(--accent); }
body.ceramicCoats .btn-secondary:hover{ background:var(--accent); color:#0b0b0b; }

/* ---------------------------------
   Intro section
-----------------------------------*/
body.ceramicCoats .intro .intro-grid{ display:grid; gap:22px; }
@media (min-width:860px){
  body.ceramicCoats .intro .intro-grid{ grid-template-columns:1.2fr .8fr; align-items:center; }
}
body.ceramicCoats .intro .pillars{ display:grid; gap:8px; padding:0; list-style:none; margin:12px 0; }
body.ceramicCoats .intro .pillars li{ padding-left:16px; position:relative; }
body.ceramicCoats .intro .pillars li::before{
  content:""; position:absolute; left:0; top:.55em; width:8px; height:8px; border-radius:2px; background:var(--accent);
}
body.ceramicCoats .intro .micro-note{ color:var(--muted); font-size:.95rem; }
body.ceramicCoats .intro .intro-media img{ width:100%; height:auto; border-radius:14px; box-shadow:0 8px 20px rgba(0,0,0,.35); }

/* ---------------------------------
   Includes
-----------------------------------*/
body.ceramicCoats .includes .includes-grid{
  display:flex; 
  gap:14px;
  flex-wrap: wrap; 
  margin-top:16px;
  margin-left:auto; margin-right:auto;
  justify-content:center;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
body.ceramicCoats .includes .include{
  background:rgba(255,255,255,.04);
  border:1px solid var(--cardBorder);
  border-radius:12px; padding:14px 16px;
  margin-inline:auto; width:100%; max-width:520px;
}
body.ceramicCoats .includes .include p{ margin:.4rem 0 0; }
body.ceramicCoats .includes .notice{ margin:14px auto 0; color:var(--muted); font-size:.95rem; }

/* ---------------------------------
   Packages
-----------------------------------*/
body.ceramicCoats .packages .pricing-note{ text-align:center; color:var(--muted); margin:8px auto 0; max-width:70ch; }
body.ceramicCoats .package-cards{
  --gap:clamp(14px,3vw,24px);
  display:grid; gap:var(--gap); grid-template-columns:1fr; margin:24px auto 0;
}
@media (min-width:760px){ body.ceramicCoats .package-cards{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:1080px){ body.ceramicCoats .package-cards{ grid-template-columns:repeat(3,minmax(0,1fr)); } }

body.ceramicCoats .package-card{
  position:relative; display:flex; flex-direction:column; gap:12px;
  background:var(--cardBg);
  border:1px solid var(--cardBorder);
  border-radius:16px; padding:clamp(16px,3vw,24px);
  box-shadow:var(--cardShadow);
  backdrop-filter:blur(var(--glassBlur));
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
body.ceramicCoats .package-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0,0,0,.35), 0 10px 30px rgba(66,232,133,.16);
  border-color: rgba(255,255,255,.12);
}
body.ceramicCoats .package-card header{ display:grid; gap:4px; }
body.ceramicCoats .package-card .subtitle{ margin:0; color:var(--muted); font-size:.96rem; }
body.ceramicCoats .package-card .bullets{ margin:0; padding:0; list-style:none; display:grid; gap:8px; }
body.ceramicCoats .package-card .bullets li{ padding-left:18px; position:relative; }
body.ceramicCoats .package-card .bullets li::before{
  content:""; position:absolute; left:0; top:.55em; width:9px; height:9px; border-radius:2px; background:var(--accent);
  box-shadow:0 0 0 2px rgba(66,232,133,.22);
}
body.ceramicCoats .package-card.featured{ border-color:rgba(66,232,133,.45); box-shadow:0 18px 42px rgba(66,232,133,.18); }
body.ceramicCoats .package-card .badge{
  position:absolute; top:12px; right:12px; font-size:.75rem; letter-spacing:.4px;
  padding:6px 10px; border-radius:999px; background:rgba(66,232,133,.14); color:var(--accent);
  border:1px solid rgba(66,232,133,.35);
}
body.ceramicCoats .pricebox{
  margin-top:auto; display:grid; grid-template-columns:1fr 1fr; gap:10px;
  padding:12px; border-radius:12px; background:rgba(255,255,255,.04); border:1px solid var(--cardBorder);
}
body.ceramicCoats .pricebox div{ display:grid; gap:2px; justify-items:center; }
body.ceramicCoats .pricebox span{ font-size:.92rem; color:var(--muted); }
body.ceramicCoats .pricebox strong{ font-size:1.25rem; letter-spacing:.2px; }

/* ---------------------------------
   Surfaces
-----------------------------------*/
body.ceramicCoats .surfaces .addon-grid{ display:grid; gap:14px; margin-top:14px; }
@media (min-width:760px){ body.ceramicCoats .surfaces .addon-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); } }
body.ceramicCoats .surfaces .addon{
  background:rgba(255,255,255,.04); border:1px solid var(--cardBorder);
  border-radius:12px; padding:14px 16px;
}

/* ---------------------------------
   Process
-----------------------------------*/
body.ceramicCoats .process .steps{ counter-reset:step; list-style:none; padding:0; }
body.ceramicCoats .process .steps li{ position:relative; padding:12px 0 12px 44px; }
body.ceramicCoats .process .steps li::before{
  counter-increment:step; content:counter(step);
  position:absolute; left:0; top:8px; width:28px; height:28px; border-radius:8px;
  display:grid; place-items:center; background:rgba(66,232,133,.14); color:var(--accent);
  border:1px solid rgba(66,232,133,.35);
}
body.ceramicCoats .process .notice{ margin:14px auto 0; color:var(--muted); font-size:.95rem; max-width:72ch; text-align:center; }

/* ---------------------------------
   Access / CTA
-----------------------------------*/
body.ceramicCoats .access {
  text-align: center;
}
body.ceramicCoats .access .access-list {
  /* center the list as a block */
  max-width: min(800px, 90%);
  margin: 12px auto 18px;
  padding: 0;                 /* remove left pad that pushed it off-center */
  list-style: disc inside;    /* keep bullets visible and tidy on mobile */
  text-align: left;           /* bullets left-align for readability */
}
body.ceramicCoats .access .btn-primary {
  margin-inline: auto;        /* ensure the button centers */
  display: inline-block;
}

/* CTA: center copy and button, constrain width for nicer line length */
body.ceramicCoats .call-to-action {
  text-align: center;
}
body.ceramicCoats .call-to-action p {
  max-width: 60ch;
  margin: 0 auto 10px;        /* center and give a bit of breathing room */
}
body.ceramicCoats .call-to-action > a[href] {
  margin-inline: auto;
  display: inline-block;
}

/* Optional: unify bottom spacing of the Process notice with the sections after it */
body.ceramicCoats .process .notice {
  margin: 16px auto 0;
  text-align: center;
  max-width: 72ch;
}

/* Optional: ensure all section headings are centered consistently
   (you had this already for most, this just reinforces it) */
body.ceramicCoats .services-section h2,
body.ceramicCoats .call-to-action p {
  margin-left: auto;
  margin-right: auto;
}
body.ceramicCoats .access .access-list{ padding-left:16px; }
body.ceramicCoats .call-to-action{
  display:grid; place-items:center;
  padding:clamp(24px,4vw,40px) 16px;
}
body.ceramicCoats .call-to-action a.btn,
body.ceramicCoats .call-to-action a[href]{
  margin-top:10px; display:inline-block; padding:12px 18px;
  border-radius:14px;
  background:var(--accent); color:#0b0b0b; font-weight:700;
  box-shadow:0 8px 20px rgba(66,232,133,.25);
}

/* ---------------------------------
   Alternating light/dark backgrounds
-----------------------------------*/
body.ceramicCoats{
  --slabDark: var(--primaryGrey);
  --slabLight: var(--secondaryGrey, #1e1e1e);
}
body.ceramicCoats .intro{ background: var(--slabLight); }
body.ceramicCoats .includes{ background: var(--slabDark); }
body.ceramicCoats .packages{ background: var(--slabLight); }
body.ceramicCoats .surfaces{ background: var(--slabDark); }
body.ceramicCoats .process{ background: var(--slabLight); }
body.ceramicCoats .access{ background: var(--slabDark); }
body.ceramicCoats .call-to-action{ background: var(--slabLight); }

/* ===== Centered Consultation Modal + Map Image (Refined) ===== */
/* Ensure hidden modal never shows on load (even with flex styles) */
body.ceramicCoats .gt-modal[hidden] { display: none !important; }


body.ceramicCoats .gt-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px; /* extra padding for breathing room */
}

body.ceramicCoats .gt-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
}

body.ceramicCoats .gt-modal__panel {
  position: relative;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid var(--cardBorder);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
  padding: 28px 28px 22px; /* more inner padding for content */
  color: var(--ink);
  width: 100%;
  max-width: 520px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

body.ceramicCoats .gt-modal__map {
  margin: 16px -28px 20px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
}

body.ceramicCoats .gt-modal__map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* ensures perfect centering */
}

body.ceramicCoats .gt-modal__header h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.5vw, 1.4rem);
}
body.ceramicCoats .gt-modal__header p {
  margin: 6px 0 16px;
  color: var(--muted);
}

body.ceramicCoats .gt-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}
body.ceramicCoats .gt-modal__close:hover {
  color: var(--accent);
}

body.ceramicCoats .gt-modal__body {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 0 2px;
}
body.ceramicCoats .gt-modal__row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  align-items: center;
}

body.ceramicCoats .gt-modal__footer {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ---------------------------------
   Utilities
-----------------------------------*/
@media (prefers-reduced-motion:reduce){
  body.ceramicCoats *{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}
