/* Roc's Stone Repair — rebuilt static site styles */
* { box-sizing: border-box; }

:root {
  --ink: #111111;
  --paper: #ffffff;
  --muted: #444444;
  --max: 1180px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}

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

a { color: inherit; }

h1, h2, h3, .playfair {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 0 0 12px;
}

/* ---------- Top bar ---------- */
body.page-home {
  background: url('assets/luigi-marble-background.png') center top / cover no-repeat fixed, #f4f4f4;
  background-attachment: fixed;
}
body.page-home .topbar {
  background: transparent;
  border-bottom: none;
}
.topbar {
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
  padding: 10px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.topbar-logo { height: 54px; width: auto; flex: none; }
.topbar-logo img { height: 54px; width: auto; }
.topbar .site-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 26px;
  text-transform: none;
  white-space: nowrap;
}
.topbar .site-title a { text-decoration: none; }

.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
}
.btn {
  display: inline-block;
  background: #000000;
  color: #ffffff;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}
.btn:hover { background: #222222; }
.btn-lg { font-size: 20px; padding: 16px 34px; }

.page-actions {
  /* Inner pages: Call/Email buttons sit below the (transparent) header,
     directly on the marble — no white box behind them. */
  display: flex;
  gap: 12px;
  padding: 18px 24px 0;
}
body.page-marble .topbar {
  /* Inner pages: no white banner — the header is transparent like the
     Home Page, so the marble shows through fully. */
  background: transparent;
  border-bottom: none;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
  align-self: flex-start;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #111111;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mainnav {
  margin-left: auto;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 12px;
}
.mainnav a {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  text-decoration: none;
  font-size: 18px;
  color: #222222;
  white-space: nowrap;
}
.mainnav a:hover { text-decoration: underline; }
.mainnav a.active { font-weight: 700; text-decoration: underline; }

/* ---------- Hero (centered, stacked) ---------- */
.hero {
  background: transparent;
  padding: 8px 24px 52px;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
}
.hero-logo { display: flex; justify-content: center; }
.hero-logo img {
  /* True transparent logo: the marble was cut out of the file itself,
     so the emblem floats on the page marble with no disc or shadow. */
  width: min(720px, 92%);
}
.quote-box {
  /* Per Vinny's sketch: one clean rectangular frame around the heading
     and the Text Us Photos button — thicker 5px dark border,
     no fill color, marble shows through. Button centered below the heading. */
  background: transparent;
  border: 5px solid #111111;
  border-radius: 2px;
  padding: 36px 36px 40px;
  text-align: center;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
.quote-box h1 {
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.quote-box .quote-sub {
  font-size: 18px;
  color: #333333;
  margin: 0 0 24px;
}

/* ---------- Get In Touch banner ---------- */
.touch-banner {
  /* Dark overlay keeps the white text readable over the marble's light patches */
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('assets/dark-marble.jpg') center center / cover no-repeat, #222222;
  color: #ffffff;
  padding: 52px 24px 56px;
  text-align: center;
}
.touch-banner h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 30px;
}

/* ---------- 3-column services list ---------- */
.services-list {
  /* Columns sized to their own content, with the browser splitting the
     leftover space into exactly equal gaps (left edge, between each pair,
     right edge) — so the three categories sit evenly no matter how long
     their longest line is. */
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-evenly;
  gap: 28px 40px;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.services-list h3 {
  font-size: 21px;
  margin-bottom: 10px;
  letter-spacing: 0.4px;
}
.services-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.services-list li {
  padding: 3px 0;
  font-size: 17px;
  line-height: 1.55;
}
.touch-banner .services-list li { color: #f2f2f2; }

/* ---------- 4 Reasons ---------- */
.reasons {
  background: #ffffff;
  padding: 56px 24px 64px;
}
.reasons-inner { max-width: 1100px; margin: 0 auto; }
.reasons h2 { font-size: clamp(28px, 3.4vw, 40px); text-align: center; }
.reasons .intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px;
  font-size: 18px;
}
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.reason { text-align: center; }
.reason img {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
}
/* The four icons have different amounts of padding inside their image
   files, so the same box size draws them at different visible sizes.
   These are tuned so every icon's visible drawing matches the
   checkmark's height (72px on screen). The pin stays narrow — that's
   its shape — but its height matches the rest. */
.reason img.icon-dollar {
  width: 74px;
  height: 74px;
}
.reason img.icon-pin {
  width: 78px;
  height: 78px;
}
.reason img.icon-clock {
  width: 74px;
  height: 74px;
}
.reason h3 { font-size: 20px; text-transform: none; }
.reason p { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------- Footer ---------- */
.footer {
  background: #000000;
  color: #ffffff;
  text-align: center;
  padding: 26px 20px;
  font-size: 18px;
}
.footer a { color: #ffffff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .sep { margin: 0 10px; }
.footer p { margin: 6px 0; }
.footer-tagline { font-size: 18px; }
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.footer-social svg, .footer-social img { flex: none; }
.footer-copy { font-size: 15px; color: #cccccc; }
.footer-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 20px; }

/* ---------- Inner pages: full-page marble ---------- */
body.page-marble {
  /* Inner pages: the marble scrolls with the page — the staying-put
     (fixed) effect is only on the Home Page, per Vinny. */
  background: url('assets/carrara-marble.png') center top / cover no-repeat, #f2f2f2;
}
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}
.page-title {
  /* Thick bordered box around each inner page title, matching the live site */
  display: table;
  font-size: clamp(30px, 4vw, 46px);
  text-align: center;
  margin: 8px auto 28px;
  padding: 16px 44px;
  border: 4px solid #111111;
  background: transparent;
}
.card {
  /* Inner pages: content boxes are solid white (100%), like the Contact
     page's form card. The top banner stays 65% (see .page-marble .topbar).
     Homepage has no .card elements. */
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
  padding: 28px 30px;
  margin-bottom: 28px;
}
.card h2 { font-size: clamp(22px, 2.6vw, 30px); }
.card h3 { font-size: 20px; }
.card p { color: #333333; }
.card figure { margin: 18px 0 4px; }
.card figure img { border-radius: 4px; width: 100%; }
.card figcaption {
  font-size: 15px;
  color: #555555;
  margin-top: 8px;
  text-align: center;
}
.before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
/* Custom Work staircase pair: both photos the same height */
.before-after--equal img {
  height: 340px;
  object-fit: cover;
  width: 100%;
}
.service-list-card { padding: 30px 34px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 4px;
}
.gallery-grid figcaption {
  font-size: 15px;
  color: #555555;
  margin-top: 8px;
  text-align: center;
}
.pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.pair-grid figure { margin: 0; }
.pair-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
}

/* ---------- Reviews ---------- */
.review { margin-bottom: 30px; }
.review:last-child { margin-bottom: 0; }
/* Text-only reviews sitting directly in the card get the same
   divider rhythm as the side-by-side rows */
.card > .review {
  padding: 26px 0;
  border-top: 1px solid #e2e2e2;
  margin-bottom: 0;
}
.card > .review:first-child { border-top: none; padding-top: 6px; }
.card > .review:last-child { padding-bottom: 6px; }
.review h3 { font-size: 21px; text-transform: none; margin-bottom: 6px; }
.review p { margin: 0; color: #333333; }
.review img { border-radius: 4px; max-width: 560px; width: 100%; }
/* Side-by-side review rows: name + text on one side, photo(s) on the other */
.review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid #e2e2e2;
}
.review-row:first-child { border-top: none; padding-top: 6px; }
.review-row:last-child { padding-bottom: 6px; }
.review-row .review { margin-bottom: 0; }
.review-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.review-photos figure { margin: 0; }
.review-photos img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 4px;
}
.review-photos--single { grid-template-columns: minmax(0, 1fr); }
.review-photos--single img { height: auto; max-height: 420px; }

/* ---------- Contact ---------- */
.contact-card { text-align: center; }
.contact-card .btn-row { justify-content: center; margin-top: 18px; }
.contact-card img { border-radius: 4px; margin: 20px auto 0; max-width: 220px; width: 100%; }
.contact-line { font-size: 20px; margin: 8px 0; }

/* ---------- Estimate form ---------- */
.form-card { max-width: 640px; margin: 0 auto 28px; }
.form-card h2 { text-align: center; }
.form-sub { text-align: center; color: #333333; margin: 0 0 24px; }
.estimate-form .field { margin-bottom: 18px; }
.estimate-form label { display: block; font-weight: 500; margin-bottom: 6px; }
.estimate-form .required { color: #b3261e; }
.estimate-form input,
.estimate-form textarea {
  width: 100%;
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  padding: 12px 14px;
  border: 1px solid #999999;
  border-radius: 4px;
  background: #ffffff;
  color: #111111;
}
.estimate-form textarea { min-height: 120px; resize: vertical; }
.estimate-form input:focus,
.estimate-form textarea:focus { outline: 2px solid #111111; border-color: #111111; }
.estimate-form .btn { margin-top: 4px; }
.form-confirmation { text-align: center; font-size: 18px; }
.form-confirmation p { color: #333333; }
.form-confirmation a { font-weight: 700; }

/* ---------- Brown CTA strip (Services page) ---------- */
.cta-strip {
  background: url('assets/cta-brown-marble.jpg') center center / cover no-repeat, #d8c3a5;
  text-align: center;
  padding: 56px 20px;
}
.cta-strip p {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  color: #783f04;
  margin: 0;
  line-height: 1.3;
}
.cta-strip a { color: inherit; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-logo img { width: min(520px, 88%); }
  .reasons-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-list { grid-template-columns: 1fr; gap: 22px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid img { height: 220px; }
  .mainnav { gap: 18px; }
  .review-row { grid-template-columns: 1fr; gap: 18px; }
  .review-row--flip .review-photos { order: 2; }
  .review-row--flip .review { order: 1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  /* Phones ignore background-attachment: fixed, so the marble would scroll
     with the page. Use a fixed layer instead, so the marble stays put and
     the content slides over it — the same effect as desktop. */
  body.page-home { background: #f4f4f4; }
  body.page-home::before {
    content: "";
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    pointer-events: none;
    background: url('assets/luigi-marble-background.png') center top / cover no-repeat;
  }
  .topbar { padding: 10px 14px; gap: 10px; }
  .topbar .site-title { font-size: 21px; }
  .topbar-logo, .topbar-logo img { height: 42px; }
  .menu-toggle { display: flex; order: 1; }
  .mainnav { display: none; }
  .mainnav.open {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    order: 2;
    gap: 0;
    margin-left: 0;
    padding-top: 0;
    /* Links sit on the right side of the menu, over a 50% white
       background — the middle ground between solid white and fully
       transparent, so the marble shows through faintly. */
    align-items: flex-end;
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.15);
  }
  .mainnav.open a { font-size: 17px; padding: 13px 4px; text-align: right; border-bottom: 1px solid rgba(0, 0, 0, 0.15); }
  .mainnav.open a:last-child { border-bottom: none; }
  .btn { font-size: 15px; padding: 11px 18px; }
  .btn-lg { font-size: 18px; padding: 14px 26px; }
  .hero { padding: 12px 14px 36px; }
  .hero-inner { gap: 22px; }
  .hero-logo img { width: min(400px, 96%); }
  .quote-box { padding: 22px 16px 26px; }
  .touch-banner { padding: 38px 16px 42px; }
  .reasons { padding: 40px 16px 48px; }
  .reasons-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid img { height: auto; }
  .pair-grid { grid-template-columns: 1fr; }
  .pair-grid img { height: auto; }
  .before-after { grid-template-columns: 1fr; }
  .before-after--equal img { height: 280px; }
  .card { padding: 22px 18px; }
  .page-wrap { padding: 28px 14px 48px; }
  .page-title { padding: 12px 26px; }
  .review-photos img { height: 170px; }
  /* Footer contact stacks on phones: phone on its own line, email (with
     its envelope) on the next. The | divider is hidden on phones, since
     there's nothing to separate on one line anymore. */
  .footer .sep { display: none; }
  .footer-email { display: block; margin-top: 6px; }
}
