/* ===========================================================
   Gregular Contracting — styles
   Warm, craft-forward design system. Light paper base with
   walnut/brass accents and a dark "about" band for contrast.
   =========================================================== */

:root {
  --paper:      #f6f1e7;
  --paper-2:    #efe7d7;
  --card:       #fffdf8;
  --ink:        #211c17;
  --ink-2:      #5b5147;
  --walnut:     #5a3d2b;
  --walnut-dark:#3d2818;
  --brass:      #b07d2c;
  --brass-2:    #c8963e;
  --line:       rgba(33, 28, 23, 0.12);
  --line-2:     rgba(33, 28, 23, 0.08);
  --shadow:     0 18px 40px -24px rgba(61, 40, 24, 0.45);
  --radius:     16px;
  --maxw:       1120px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

.container { width: min(var(--maxw), 100% - 2.5rem); margin-inline: auto; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.9rem;
}
.eyebrow-light { color: var(--brass-2); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--walnut);
  --btn-fg: #fbf7ef;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 0.95rem;
  padding: 0.7rem 1.25rem; border-radius: 999px;
  text-decoration: none; border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 22px -14px rgba(61,40,24,0.7);
}
.btn:hover { transform: translateY(-2px); background: var(--walnut-dark); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 0.9rem 1.6rem; font-size: 1rem; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line); box-shadow: none;
}
.btn-ghost:hover { background: var(--paper-2); border-color: var(--walnut); }

:focus-visible { outline: 3px solid var(--brass-2); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand-mark svg { border-radius: 9px; box-shadow: var(--shadow); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; }

.nav-menu { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--ink-2); transition: color 0.15s; }
.nav-menu a:hover { color: var(--ink); }
.nav-menu a.btn { color: #fbf7ef; }
.nav-menu a.btn:hover { color: #fbf7ef; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.2s; }
.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 {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 460px at 82% -8%, rgba(200,150,62,0.16), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 0.4rem 0 1.2rem; }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; margin: 0 0 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; list-style: none; padding: 0; margin: 0; }
.hero-badges li { position: relative; padding-left: 1.3rem; font-size: 0.9rem; color: var(--ink-2); font-weight: 500; }
.hero-badges li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px;
  background: var(--brass-2); border-radius: 50%;
}

.hero-art { position: relative; }
.art-svg { width: 100%; height: auto; border-radius: 26px; box-shadow: var(--shadow); }
.art-chip {
  position: absolute; left: -10px; bottom: 22px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.7rem 1rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; line-height: 1.1;
}
.art-chip strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--walnut); }
.art-chip span { font-size: 0.75rem; color: var(--ink-2); letter-spacing: 0.03em; }

/* ---------- Trust strip ---------- */
.trust { background: var(--walnut-dark); color: var(--paper); }
.trust-inner {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  padding: 1.6rem 0; text-align: center;
}
.trust-item { display: flex; flex-direction: column; gap: 0.15rem; }
.trust-num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--brass-2); }
.trust-item span:last-child { font-size: 0.82rem; color: rgba(246,241,231,0.75); letter-spacing: 0.02em; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 640px; margin: 0 auto clamp(2rem, 5vw, 3.2rem); text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-lead { color: var(--ink-2); font-size: 1.05rem; margin: 0.8rem 0 0; }

.grid { display: grid; gap: 1.25rem; }

/* ---------- Services ---------- */
.services-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 1.6rem;
  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--paper-2); color: var(--walnut); margin-bottom: 1rem;
}
.card h3 { font-size: 1.25rem; margin-bottom: 0.45rem; }
.card p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

/* ---------- Gallery ---------- */
.gallery-grid { grid-template-columns: repeat(3, 1fr); }
.tile {
  position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; align-items: flex-end; color: #fbf7ef;
  background-size: cover; background-position: center;
}
/* Placeholder art via layered gradients — swap for real photos when ready */
.tile::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(0,0,0,0.05) 0 6px, rgba(255,255,255,0.03) 6px 12px);
  mix-blend-mode: overlay;
}
.tile figcaption {
  position: relative; z-index: 1; width: 100%;
  padding: 0.9rem 1.1rem; font-weight: 600; font-size: 0.98rem;
  background: linear-gradient(180deg, transparent, rgba(28,18,10,0.75));
}
.tile-a { background-color: #6b4a30; background-image: linear-gradient(145deg,#7a5334,#4a3120); }
.tile-b { background-color: #8a6a3e; background-image: linear-gradient(145deg,#a07d47,#5f4527); }
.tile-c { background-color: #5a4636; background-image: linear-gradient(145deg,#6e5541,#3d2f24); }
.tile-d { background-color: #7d5a34; background-image: linear-gradient(145deg,#986e3d,#57391f); }
.tile-e { background-color: #b98a4e; background-image: linear-gradient(145deg,#c8963e,#7a5334); }
.tile-f { background-color: #6a5a4a; background-image: linear-gradient(145deg,#8a7862,#463b30); }
.tile:hover { transform: translateY(-3px); transition: transform 0.2s ease; }

/* ---------- Process ---------- */
.process-grid { grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 1.6rem; position: relative;
}
.step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: var(--paper); background: var(--walnut);
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.step p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* ---------- About ---------- */
.about { background: var(--walnut-dark); color: var(--paper); }
.about-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.about-copy h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.about-copy p { color: rgba(246,241,231,0.82); margin: 0 0 1rem; font-size: 1.05rem; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat {
  background: rgba(246,241,231,0.06); border: 1px solid rgba(246,241,231,0.12);
  border-radius: var(--radius); padding: 1.4rem;
}
.stat strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--brass-2); line-height: 1; margin-bottom: 0.4rem; }
.stat span { font-size: 0.9rem; color: rgba(246,241,231,0.75); }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }
.contact-copy h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 0.6rem; }
.contact-copy .section-lead { margin-bottom: 1.6rem; }
.contact-details { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-details li {
  display: flex; flex-direction: column; gap: 0.1rem;
  border-left: 3px solid var(--brass-2); padding-left: 1rem;
}
.contact-label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.contact-details a { font-weight: 600; text-decoration: none; }
.contact-details a:hover { color: var(--walnut); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(246,241,231,0.8); padding: 2.4rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.footer-brand .brand-name { color: var(--paper); font-size: 1.1rem; }
.footer-brand p { margin: 0.2rem 0 0; font-size: 0.85rem; color: rgba(246,241,231,0.6); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-nav a { text-decoration: none; font-size: 0.9rem; color: rgba(246,241,231,0.8); }
.footer-nav a:hover { color: var(--paper); }
.footer-legal { width: 100%; font-size: 0.82rem; color: rgba(246,241,231,0.5); margin: 0.5rem 0 0; border-top: 1px solid rgba(246,241,231,0.12); padding-top: 1rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-art { order: -1; max-width: 420px; }
  .services-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
  .trust-inner { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav-menu.open { max-height: 340px; }
  .nav-menu li { padding: 0.35rem 0; }
  .nav-menu a.btn { margin-top: 0.5rem; }
  .services-grid, .gallery-grid, .process-grid { grid-template-columns: 1fr; }
}
