/* ============================================================
   REYNOLDS CONSTRUCTION CO. — STYLES
   ------------------------------------------------------------
   Palette, fonts and spacing all come from the variables below.
   Change a value here and it updates everywhere it's used.
   ============================================================ */

:root {
  /* -- Colors: black / white / grey, matching the logo -- */
  --ink: #141414;         /* near-black — headings, dark backgrounds */
  --paper: #f4f3f1;       /* warm off-white — page background */
  --white: #ffffff;
  --steel: #6e6b66;       /* mid grey — muted / secondary text */
  --steel-line: #d9d6d0;  /* light grey — borders & dividers */
  --charcoal: #1c1b19;    /* dark surface — footer, cards on dark */
  --charcoal-2: #262421;  /* slightly lighter dark surface */

  /* -- Fonts -- */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius: 4px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0;
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--steel);
  margin-bottom: 10px;
  text-align: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  background: var(--ink);
  color: var(--paper);
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn:hover { background: transparent; color: var(--ink); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}

.btn-outline:hover { background: var(--paper); color: var(--ink); }

.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---------- Header ---------- */

header.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--steel-line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 20px;
}

.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-link img { height: 60px; width: auto; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  border-bottom-color: var(--ink);
}

.call-btn {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-radius: var(--radius);
  margin-left: 6px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 110px 20px 70px;
  text-align: center;
  overflow: hidden;
}

.hero-blade {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  max-width: none;
  opacity: 0.06;
  transform: translate(-50%, -46%) rotate(0deg);
  animation: spin-slow 90s linear infinite;
  pointer-events: none;
}

@keyframes spin-slow {
  to { transform: translate(-50%, -46%) rotate(360deg); }
}

.hero-content { position: relative; z-index: 1; }

.hero .eyebrow { color: #a8a49b; }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 20px;
}

.hero p {
  font-family: var(--font-body);
  text-transform: none;
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 34px;
  color: #d7d4cc;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.scroll-cue {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8780;
}

.scroll-cue svg { animation: bob 1.8s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- Stat strip ---------- */

.stat-strip {
  background: var(--charcoal);
  color: var(--paper);
  border-bottom: 1px solid #35322d;
}

.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  text-align: center;
  padding: 34px 12px;
  border-left: 1px solid #35322d;
}

.stat:first-child { border-left: none; }

.stat .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  display: block;
}

.stat .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a8a49b;
  margin-top: 6px;
  display: block;
}

/* ---------- Section basics ---------- */

section { padding: 90px 0; }

section h2 {
  text-align: center;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 46px;
}

.alt-bg { background: var(--white); border-top: 1px solid var(--steel-line); border-bottom: 1px solid var(--steel-line); }

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Services (interactive tabs) ---------- */

.services-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.service-tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  border-right: 1px solid var(--steel-line);
}

.service-tab {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--steel-line);
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--steel);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.service-tab:last-child { border-bottom: none; }

.service-tab:hover { background: var(--paper); color: var(--ink); }

.service-tab.active {
  background: var(--ink);
  color: var(--paper);
}

.service-tab .n { font-size: 0.75rem; opacity: 0.6; }

.service-panel {
  padding: 46px;
  display: none;
}

.service-panel.active { display: block; }

.service-panel svg { color: var(--ink); margin-bottom: 18px; }

.service-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  text-align: left;
}

.service-panel p {
  color: var(--steel);
  font-size: 1.02rem;
  max-width: 46ch;
}

/* ---------- Process ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--steel-line);
  border-left: 1px solid var(--steel-line);
}

.process-step {
  padding: 34px 26px;
  border-right: 1px solid var(--steel-line);
  border-bottom: 1px solid var(--steel-line);
  background: var(--white);
}

.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--steel);
  display: block;
  margin-bottom: 14px;
}

.process-step h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  text-align: left;
}

.process-step p {
  color: var(--steel);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- About ---------- */

.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-photo {
  background: var(--ink);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.about-photo .about-logo {
  width: 65%;
  max-width: 340px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.about-list li {
  padding: 14px 0;
  border-top: 1px solid var(--steel-line);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.about-list li:last-child { border-bottom: 1px solid var(--steel-line); }

.about-list svg { flex-shrink: 0; color: var(--ink); }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px;
}

.gallery-item {
  background: var(--ink);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8780;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 10px;
  overflow: hidden;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease;
}

.gallery-item:hover { opacity: 0.8; }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px 20px;
}

.lightbox.open { display: flex; }

.lightbox-box {
  background: var(--charcoal);
  color: var(--paper);
  max-width: 520px;
  width: 100%;
  padding: 50px 30px;
  text-align: center;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 30px;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Testimonials (carousel) ---------- */

.testimonial-carousel {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.testimonial-track { position: relative; min-height: 190px; }

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.testimonial-slide.active { opacity: 1; pointer-events: auto; }

.testimonial-slide .stars { color: var(--ink); letter-spacing: 3px; margin-bottom: 14px; }

.testimonial-slide p.quote {
  font-family: var(--font-display);
  text-transform: none;
  font-size: 1.4rem;
  line-height: 1.4;
  margin: 0 0 16px;
}

.testimonial-slide .name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.carousel-arrow {
  background: none;
  border: 1px solid var(--steel-line);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

.carousel-arrow:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.carousel-dots { display: flex; gap: 8px; }

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--steel-line);
  cursor: pointer;
  padding: 0;
}

.carousel-dots button.active { background: var(--ink); }

/* ---------- FAQ ---------- */

.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--steel-line); }

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.faq-q .plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.faq-q .plus::before, .faq-q .plus::after {
  content: '';
  position: absolute;
  background: var(--ink);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.faq-q .plus::before { width: 14px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 14px; transition: transform 0.2s ease; }

.faq-item.open .plus::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-a p {
  color: var(--steel);
  margin: 0 0 22px;
  max-width: 62ch;
  padding-right: 42px;
}

/* ---------- Contact ---------- */

.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
}

.contact-details {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 34px;
}

.contact-details h3 {
  text-align: left;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.contact-details > p { color: #cfccc4; }

.contact-details ul { list-style: none; padding: 0; margin-top: 28px; }

.contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #35322d;
}

.contact-details li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.contact-details a { color: var(--paper); text-decoration: none; font-family: var(--font-mono); font-size: 0.92rem; }
.contact-details a:hover { text-decoration: underline; }
.contact-details svg { flex-shrink: 0; }
.contact-details span { font-size: 0.92rem; color: #d7d4cc; }

form.contact-form {
  background: var(--white);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  padding: 34px;
  position: relative;
}

form.contact-form .ticket-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  border-bottom: 1px dashed var(--steel-line);
  padding-bottom: 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}

form.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--steel);
}

form.contact-form input,
form.contact-form textarea,
form.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
}

.field { margin-bottom: 18px; }

#job-hint {
  font-size: 0.85rem;
  color: var(--steel);
  margin: 0 0 18px;
  font-style: italic;
  min-height: 1.2em;
}

.form-note {
  font-size: 0.82rem;
  color: var(--steel);
  margin: 14px 0 0;
}

.bot-field-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  background: var(--white);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  padding: 50px 34px;
  text-align: center;
}

.form-success svg {
  color: var(--ink);
  background: var(--paper);
  border-radius: 50%;
  padding: 14px;
  margin-bottom: 18px;
}

.form-success h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.form-success p {
  color: var(--steel);
  margin: 0 auto;
  max-width: 38ch;
}

.form-success a {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Footer ---------- */

footer {
  background: var(--charcoal);
  color: #a8a49b;
  padding: 50px 0 26px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid #35322d;
  margin-bottom: 22px;
}

.footer-top img { height: 40px; }

.footer-links {
  list-style: none;
  display: flex;
  gap: 22px;
  padding: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links a { color: #cfccc4; text-decoration: none; }
.footer-links a:hover { color: var(--paper); }

footer .fine-print {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: center;
  color: #6f6c66;
}

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
}

.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---------- Mobile call bar ---------- */

.mobile-call-bar { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .services-wrap { grid-template-columns: 1fr; }
  .service-tabs { border-right: none; }
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
}

@media (max-width: 760px) {
  nav.main-nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper);
    flex-direction: column;
    display: none;
    padding: 10px 0;
    overflow-y: auto;
  }

  nav.main-nav.open { display: block; }

  nav.main-nav ul { flex-direction: column; padding: 0 24px; }
  nav.main-nav li { border-bottom: 1px solid var(--steel-line); }
  nav.main-nav a { display: block; padding: 16px 4px; }
  .call-btn { margin-left: 0; text-align: center; }

  .menu-toggle { display: block; }

  .mobile-call-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--ink);
    border-top: 1px solid #35322d;
  }

  .mobile-call-bar a {
    display: block;
    text-align: center;
    color: var(--paper);
    text-decoration: none;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 16px;
  }

  body { padding-bottom: 56px; }
  .back-to-top { bottom: 72px; }
}
