/* ==========================================================================
   Rink Chambers — single-page site
   Palette: gold #D6A114 · brown #65481A · cream #EED89F · page #FCFBF9 · text #1A1A1A
   ========================================================================== */

:root {
  --gold: #D6A114;
  --gold-dark: #B8890F;
  --brown: #65481A;
  --brown-dark: #4E3714;
  --cream: #EED89F;
  --cream-soft: #FAF3E0;
  --page: #FCFBF9;
  --ink: #1A1A1A;
  --muted: #5C5C5C;
  --white: #FFFFFF;
  --shadow: 0 10px 30px rgba(101, 72, 26, 0.10);
  --radius: 10px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  line-height: 1.7;
  font-size: 1rem;
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 { line-height: 1.25; color: var(--brown); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.15rem; }

a { color: var(--brown); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.gold { color: var(--gold); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brown); color: var(--white);
  padding: 0.6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }
.btn-brown { background: var(--brown); color: var(--white); }
.btn-brown:hover { background: var(--brown-dark); }
.btn-outline-light { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn-outline-light:hover { background: var(--cream); color: var(--brown); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 18px rgba(0, 0, 0, 0.10); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-logo { width: 46px; height: 50px; object-fit: contain; }
.wordmark {
  font-variant: small-caps; font-weight: 700; font-size: 1.45rem;
  letter-spacing: 0.03em; line-height: 1;
}
.wm-rink { color: var(--gold-dark); }
.wm-chambers { color: var(--brown); }
.wordmark-dark .wm-rink { color: var(--gold); }
.wordmark-dark .wm-chambers { color: var(--cream); }

.site-nav ul { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.site-nav a:not(.btn) {
  text-decoration: none; font-weight: 500; color: var(--ink);
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:not(.btn):hover,
.site-nav a:not(.btn).active { color: var(--brown); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
}
.nav-toggle span {
  display: block; height: 3px; width: 100%; background: var(--brown);
  border-radius: 2px; margin: 4px 0; transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(100deg, rgba(58, 41, 12, 0.96) 0%, rgba(58, 41, 12, 0.88) 45%, rgba(101, 72, 26, 0.55) 100%),
    url("../images/hero.jpg") right center / cover no-repeat var(--brown-dark);
  color: var(--white);
  padding: 160px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* subtle hexagon motif echoing the RR monogram */
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='96' viewBox='0 0 56 64'%3E%3Cpath d='M28 2L52 16v32L28 62 4 48V16z' fill='none' stroke='%23EED89F' stroke-opacity='0.07' stroke-width='1.5'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-copy { max-width: 640px; }
.hero-kicker {
  color: var(--cream); font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; font-size: 0.85rem; margin-bottom: 1rem;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero-motto {
  color: var(--gold); letter-spacing: 0.35em; text-transform: uppercase;
  font-size: 0.9rem; font-weight: 600; margin-bottom: 1.25rem;
}
.hero-lede { max-width: 34rem; color: #F2EDE3; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-kicker {
  color: var(--gold-dark); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 0.8rem; margin-bottom: 0.5rem;
}
.section h2 { margin-bottom: 0.75rem; }
.section h2::after {
  content: ""; display: block; width: 64px; height: 3px;
  background: var(--gold); margin-top: 0.75rem; border-radius: 2px;
}
.section-lede { max-width: 42rem; color: var(--muted); margin-bottom: 2.5rem; }

/* ---------- Pain points ---------- */
.pain { background: var(--white); }
.pain-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin: 2.5rem 0 2rem;
}
.pain-item {
  background: var(--cream-soft);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}
.pain-icon {
  width: 34px; height: 34px; stroke: var(--brown); fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 0.9rem;
}
.pain-item p { font-size: 0.95rem; }
.pain-note { font-size: 1.05rem; }
.pain-note a { font-weight: 600; }

/* ---------- Services ---------- */
.services { background: var(--page); }
.card-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid #EFE9DC;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-head { list-style: none; cursor: pointer; }
.card-head::-webkit-details-marker { display: none; }
.card-chev { display: none; }
.card-icon {
  width: 58px; height: 64px;
  background: var(--cream);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.card-icon svg {
  width: 28px; height: 28px; stroke: var(--brown); fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.92rem; color: var(--muted); }
.card p strong { color: var(--brown); font-weight: 600; }

/* Desktop: always expanded, equal-height cards with the link pinned bottom */
@media (min-width: 761px) {
  .card { display: flex; flex-direction: column; }
  .card-body { display: flex; flex-direction: column; flex: 1; }
  .card-body p { flex: 1; }
  .card-head { cursor: default; }
}
.card-link {
  margin-top: 1.1rem; font-weight: 600; font-size: 0.9rem;
  color: var(--brown); text-decoration: none;
  border-bottom: 2px solid var(--gold);
  align-self: flex-start; padding-bottom: 2px;
  transition: color 0.2s;
}
.card-link:hover { color: var(--gold-dark); }
.card-cta { background: var(--brown); border-color: var(--brown); }
.card-cta h3 { color: var(--white); }
.card-cta p { color: var(--cream-soft); }
.card-cta .card-icon { background: rgba(238, 216, 159, 0.15); }
.card-cta .card-icon svg { stroke: var(--gold); }
.card-cta .btn { align-self: flex-start; margin-top: 1.1rem; }

/* ---------- Why us ---------- */
.why { background: var(--white); text-align: center; }
.why h2::after { margin-left: auto; margin-right: auto; }
.why .section-lede { margin-left: auto; margin-right: auto; }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
}
.why-badge {
  width: 72px; height: 80px; margin: 0 auto 1.2rem;
  background: linear-gradient(160deg, var(--gold), var(--gold-dark));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
}
.why-badge svg {
  width: 34px; height: 34px; stroke: var(--white); fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.why-item h3 span { font-weight: 500; color: var(--muted); font-size: 0.95rem; }
.why-item p { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(rgba(58, 41, 12, 0.88), rgba(78, 55, 20, 0.90)),
    url("../images/cta.jpg") center / cover no-repeat var(--brown-dark);
  color: var(--white);
  padding: 80px 0;
}
.cta-inner { text-align: center; }
.cta-band h2 { color: var(--white); max-width: 46rem; margin: 0 auto 1.75rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- About ---------- */
.about { background: var(--page); }
.about-inner {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem;
  align-items: start;
}
.about-copy p { margin-bottom: 1.2rem; }
.about-copy em { color: var(--brown); font-weight: 600; font-style: italic; }
.about-copy .btn { margin-top: 0.5rem; }
.about-values {
  background: var(--white);
  border: 1px solid #EFE9DC;
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}
.about-photo {
  width: calc(100% + 3rem); margin: -1.75rem -1.5rem 1.4rem;
  max-width: none;
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 16 / 10; object-fit: cover;
}
.about-values h3 { margin-bottom: 0.9rem; }
.values-list { list-style: none; }
.values-list li {
  padding: 0.55rem 0 0.55rem 1.6rem;
  position: relative;
  font-size: 0.95rem; color: var(--muted);
  border-bottom: 1px solid #F3EEE2;
}
.values-list li:last-child { border-bottom: 0; }
.values-list li::before {
  content: ""; position: absolute; left: 0; top: 1.05em;
  width: 10px; height: 11px; background: var(--gold);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.values-list strong { color: var(--ink); }
.hours-box {
  margin-top: 1.5rem; padding: 1.1rem 1.25rem;
  background: var(--cream-soft); border-radius: var(--radius);
}
.hours-box h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.hours-box p { font-size: 0.95rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: var(--white); }
.contact-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem;
  align-items: start;
}
.contact-form { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem;
  color: var(--brown);
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid #D9D2C2;
  border-radius: 8px;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--page);
  transition: border-color 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--gold);
}
.form-field textarea { resize: vertical; }
.field-error { display: none; color: #A4231B; font-size: 0.82rem; margin-top: 0.3rem; }
.form-field.invalid .field-error { display: block; }
.form-field.invalid input, .form-field.invalid select, .form-field.invalid textarea {
  border-color: #A4231B;
}
.hp-field { position: absolute; left: -9999px; }
.form-status {
  background: var(--cream); border-left: 4px solid var(--gold-dark);
  color: var(--brown-dark);
  padding: 0.9rem 1.1rem; border-radius: 8px; margin-bottom: 1.25rem;
  font-weight: 500;
}
.form-alt { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }

.contact-details h3 { margin-bottom: 0.6rem; }
.contact-details address { font-style: normal; color: var(--muted); margin-bottom: 1.2rem; }
.contact-list { list-style: none; margin-bottom: 1.5rem; }
.contact-list li { padding: 0.5rem 0; border-bottom: 1px solid #F3EEE2; font-size: 0.95rem; }
.contact-label {
  display: block; font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold-dark); font-weight: 600;
}
.map-wrap {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid #EFE9DC; box-shadow: var(--shadow);
}
.map-wrap iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown-dark); color: #EFE7D8; }
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 2.5rem;
  padding: 60px 1.25rem 40px;
}
.footer-brand img { width: 74px; height: 80px; margin-bottom: 0.8rem; }
.footer-motto {
  color: var(--gold); letter-spacing: 0.25em; text-transform: uppercase;
  font-size: 0.75rem; font-weight: 600; margin-top: 0.9rem;
}
.site-footer h3 {
  color: var(--cream); font-size: 0.95rem; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 0.9rem;
}
.footer-links ul { list-style: none; }
.footer-links a, .footer-contact a { color: #EFE7D8; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-links li { padding: 0.25rem 0; }
.footer-contact p { font-size: 0.92rem; margin-bottom: 0.8rem; }
.footer-bottom {
  border-top: 1px solid rgba(238, 216, 159, 0.2);
  padding-top: 1.25rem; padding-bottom: 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.82rem; color: #CBBFA8;
}

/* ---------- Floaters ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }

.to-top {
  position: fixed; right: 1.45rem; bottom: 6rem; z-index: 90;
  width: 46px; height: 52px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg {
  width: 20px; height: 20px; stroke: var(--brown-dark); fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .pain-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { text-align: center; }
  .hero-copy { max-width: none; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .about-inner, .contact-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 0; align-items: stretch; }
  .site-nav li { border-bottom: 1px solid #F3EEE2; }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a:not(.btn) { display: block; padding: 0.9rem 1.5rem; border-bottom: 0; }
  .nav-cta { padding: 0.9rem 1.5rem; }
  .hero { padding: 130px 0 70px; }
  .section { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Service tiles collapse to tappable rows; body scrolls inside when open */
  .card-grid { gap: 0.7rem; }
  .card { padding: 0.95rem 1.1rem; }
  .card:hover { transform: none; box-shadow: none; }
  .card-head { display: flex; align-items: center; gap: 0.85rem; }
  .card-head h3 { margin-bottom: 0; flex: 1; font-size: 1.02rem; }
  .card-icon { width: 42px; height: 46px; margin-bottom: 0; flex-shrink: 0; }
  .card-icon svg { width: 21px; height: 21px; }
  .card-chev {
    display: block; width: 20px; height: 20px; flex-shrink: 0;
    stroke: var(--gold-dark); fill: none; stroke-width: 2.5;
    stroke-linecap: round; stroke-linejoin: round;
    transition: transform 0.25s;
  }
  .card[open] .card-chev { transform: rotate(180deg); }
  .card-body {
    margin-top: 0.9rem;
    max-height: 46vh; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-right: 0.3rem;
  }
  .card-cta { padding: 1.5rem 1.25rem; }
}

@media (max-width: 480px) {
  .pain-grid, .card-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; }
}
