/* =========================================================
   Veilstone Creative — design tokens
   ========================================================= */
:root {
  --olive: #656C40;
  --olive-dark: #4C5230;
  --olive-light: #8A9563;
  --ink: #1E1F1A;
  --ink-soft: #2A2C24;
  --cream: #FAFAF7;
  --sage-tint: #EEF0E5;
  --gray: #5C5F55;
  --gray-light: #DDE0D3;
  --white: #FFFFFF;

  --font-head: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1180px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 14px rgba(30, 31, 26, 0.08);
  --shadow-lg: 0 14px 42px rgba(30, 31, 26, 0.20);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4.5rem;
}

/* =========================================================
   Reset
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gray);
  line-height: 1.65;
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
section { padding: var(--space-5) 0; }
.section-tight { padding: var(--space-4) 0; }
.bg-sage { background: var(--sage-tint); }
.bg-ink { background: var(--ink); color: var(--gray-light); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: var(--white); }

/* Eyebrow / section heading */
.eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--olive);
  border-top: 3px solid var(--olive);
  border-bottom: 3px solid var(--olive);
  padding: 0.35em 0;
  margin-bottom: var(--space-3);
}
.bg-ink .eyebrow, .hero .eyebrow { color: var(--olive-light); border-color: var(--olive-light); }
.section-heading { text-align: center; margin-bottom: var(--space-4); max-width: 42em; margin-left: auto; margin-right: auto; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-heading p { margin-top: var(--space-2); color: var(--gray); }
.bg-ink .section-heading p { color: var(--gray-light); }

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 700;
  padding: 0.9em 1.9em;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-solid { background: var(--olive); color: var(--white); }
.btn-solid:hover { background: var(--olive-dark); }
.btn-outline { background: transparent; border: 2px solid var(--ink); color: var(--ink); }
.btn-outline-light { background: transparent; border: 2px solid rgba(255,255,255,0.6); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.phone-link { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 700; }
.phone-link svg { width: 1.1em; height: 1.1em; fill: var(--olive); }
.bg-ink .phone-link svg, .hero .phone-link svg { fill: var(--olive-light); }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  box-shadow: var(--shadow);
}
.nav-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6em var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.logo-badge {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 4px rgba(30,31,26,0.08);
}
.logo { display: flex; align-items: center; }
.logo img { height: 42px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: var(--space-3); }
.nav-links a.nav-link { font-weight: 700; padding: 0.5em 0; color: var(--ink); }
.nav-links a.nav-link:hover, .nav-links a.nav-link[aria-current="page"] { color: var(--olive); }

.nav-cta { display: flex; align-items: center; gap: var(--space-2); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4em;
}
.hamburger span { width: 24px; height: 2px; background: var(--ink); display: block; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: linear-gradient(160deg, var(--ink) 0%, #33362B 100%);
  color: var(--white);
  padding: var(--space-5) 0;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-4); align-items: center; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: var(--space-2) 0; color: var(--white); }
.hero p.lead { color: var(--gray-light); margin-bottom: var(--space-3); font-size: 1.1rem; max-width: 34em; }
.hero .hero-phone { font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--olive-light); font-weight: 800; display: block; margin-bottom: var(--space-2); }

/* Abstract browser-mockup graphic (two-tone, olive + white line art) */
.hero-graphic { display: flex; justify-content: center; }
.hero-graphic svg { width: 100%; max-width: 420px; height: auto; }

/* Page header (non-home pages) */
.page-hero {
  background: linear-gradient(160deg, var(--ink) 0%, #33362B 100%);
  color: var(--white);
  text-align: center;
  padding: var(--space-4) 0;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.page-hero p { color: var(--gray-light); max-width: 40em; margin: var(--space-2) auto 0; }
.page-hero .btn-row { justify-content: center; margin-top: var(--space-3); }

/* =========================================================
   Value-prop / stat strip
   ========================================================= */
.value-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.value-tile { text-align: center; padding: var(--space-3) var(--space-2); border-radius: var(--radius); background: var(--sage-tint); }
.value-tile svg { width: 40px; height: 40px; margin: 0 auto var(--space-1); fill: none; stroke: var(--olive); stroke-width: 2; }
.value-tile h4 { font-size: 1rem; margin-bottom: 0.3em; }
.value-tile p { font-size: 0.88rem; color: var(--gray); }

/* =========================================================
   Service pillar cards (Build / Maintain / Operate)
   ========================================================= */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.pillar-card {
  text-align: left;
  padding: var(--space-4) var(--space-3);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--olive);
}
.pillar-card svg { width: 48px; height: 48px; margin-bottom: var(--space-2); fill: none; stroke: var(--olive); stroke-width: 1.8; }
.pillar-card h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
.pillar-card p { color: var(--gray); font-size: 0.96rem; margin-bottom: var(--space-2); }
.pillar-card a { font-weight: 700; color: var(--olive-dark); }
.pillar-card a:hover { text-decoration: underline; }

/* =========================================================
   Industries-served strip
   ========================================================= */
.industries-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.industry-chip {
  display: flex; align-items: center; gap: 0.5em;
  background: var(--white); border: 1px solid var(--gray-light);
  padding: 0.6em 1.1em; border-radius: 999px; font-weight: 700; font-size: 0.92rem; color: var(--ink);
}
.industry-chip svg { width: 1.2em; height: 1.2em; fill: none; stroke: var(--olive); stroke-width: 2; }

/* =========================================================
   Portfolio
   ========================================================= */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.portfolio-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.portfolio-card .media { background: var(--sage-tint); padding: var(--space-3); }
.portfolio-card .media svg { width: 100%; height: 140px; fill: none; stroke: var(--olive); stroke-width: 1.5; }
.portfolio-card .body { padding: var(--space-3); }
.sample-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--olive-dark); background: var(--sage-tint);
  padding: 0.25em 0.7em; border-radius: 999px; margin-bottom: 0.6em;
}
.portfolio-card .industry { font-size: 0.82rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.portfolio-card h3 { font-size: 1.1rem; margin: 0.3em 0 0.5em; }
.portfolio-card p { font-size: 0.92rem; color: var(--gray); }
.portfolio-note { text-align: center; color: var(--gray); font-size: 0.88rem; margin-top: var(--space-3); font-style: italic; }

/* =========================================================
   Why-us bullet cards
   ========================================================= */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.why-card { display: flex; gap: var(--space-2); align-items: flex-start; }
.why-card .icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--olive); display: flex; align-items: center; justify-content: center;
}
.why-card .icon svg { width: 22px; height: 22px; stroke: var(--white); fill: none; stroke-width: 2.4; }
.why-card h4 { font-size: 1rem; margin-bottom: 0.3em; }
.why-card p { font-size: 0.9rem; color: var(--gray); }

/* =========================================================
   Testimonials
   ========================================================= */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.testimonial-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2);
}
.testimonial-card .stars { color: var(--olive); letter-spacing: 0.1em; font-size: 0.95rem; }
.testimonial-card blockquote { font-size: 0.95rem; color: var(--ink-soft); font-style: italic; }
.testimonial-card .attribution { font-size: 0.85rem; color: var(--gray); font-weight: 700; font-style: normal; }

/* =========================================================
   FAQ accordion
   ========================================================= */
.faq-list { max-width: 46em; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-light); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-2) 0; text-align: left; font-weight: 700; font-size: 1rem; color: var(--ink);
}
.faq-question .chevron { flex-shrink: 0; width: 20px; height: 20px; stroke: var(--olive); fill: none; stroke-width: 2; transition: transform 0.2s ease; }
.faq-item.open .faq-question .chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-answer { max-height: 20em; }
.faq-answer p { padding-bottom: var(--space-2); color: var(--gray); font-size: 0.94rem; }

/* CTA banner */
.cta-banner {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: var(--space-4) 0;
}
.cta-banner svg { width: 44px; height: 44px; margin: 0 auto var(--space-2); fill: none; stroke: var(--olive-light); stroke-width: 1.8; }
.cta-banner .eyebrow { color: var(--olive-light); border-color: var(--olive-light); }
.cta-banner h2 { color: var(--white); font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: var(--space-2); }
.cta-banner a.tel { color: var(--olive-light); }
.cta-banner .btn-row { justify-content: center; }

/* =========================================================
   About / process
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: start; }
.about-grid p { margin-bottom: var(--space-2); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.process-step { text-align: center; position: relative; }
.process-step .num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--olive); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem;
  margin: 0 auto var(--space-2);
}
.process-step h4 { font-size: 1rem; margin-bottom: 0.3em; }
.process-step p { font-size: 0.9rem; color: var(--gray); }

.commitment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.commitment-card { padding: var(--space-3); background: var(--sage-tint); border-radius: var(--radius); }
.commitment-card h4 { font-size: 1.05rem; margin-bottom: 0.4em; }
.commitment-card p { font-size: 0.92rem; color: var(--gray); }

/* =========================================================
   Services detail page
   ========================================================= */
.service-pillar {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: center;
  padding: var(--space-4) 0; border-bottom: 1px solid var(--gray-light);
}
.service-pillar:last-child { border-bottom: none; }
.service-pillar:nth-child(even) .media { order: 2; }
.service-pillar .media { background: var(--sage-tint); border-radius: var(--radius); padding: var(--space-4); }
.service-pillar .media svg { width: 100%; height: 200px; fill: none; stroke: var(--olive); stroke-width: 1.5; }
.service-pillar h2 { font-size: 1.5rem; margin-bottom: 0.5em; }
.service-pillar p { margin-bottom: var(--space-2); }
.service-pillar ul { margin: var(--space-2) 0; }
.service-pillar li { padding-left: 1.5em; position: relative; margin-bottom: 0.5em; font-size: 0.95rem; }
.service-pillar li::before { content: "\2713"; position: absolute; left: 0; color: var(--olive); font-weight: 800; }

/* =========================================================
   Contact
   ========================================================= */
.contact-section { background: var(--sage-tint); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.contact-info { display: flex; flex-direction: column; gap: var(--space-3); }
.contact-info .item { display: flex; gap: var(--space-2); align-items: flex-start; }
.contact-info svg { width: 1.6em; height: 1.6em; stroke: var(--olive-dark); fill: none; stroke-width: 2; flex-shrink: 0; }
.contact-info .big-phone { font-size: 1.6rem; font-weight: 800; color: var(--ink); }

.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-3); }
.field { margin-bottom: var(--space-2); }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3em; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.7em 0.9em; border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--olive); border-color: var(--olive); }
.field-error { color: #b3261e; font-size: 0.82rem; margin-top: 0.3em; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }
.field.invalid .field-error { display: block; }
.form-success {
  display: none; background: #e9f0e3; color: var(--olive-dark); border: 1px solid var(--olive-light);
  padding: var(--space-2); border-radius: var(--radius-sm); margin-top: var(--space-2);
}
.form-success.show { display: block; }
.form-error {
  display: none; background: #fbeceb; color: #8a291f; border: 1px solid #e3a9a2;
  padding: var(--space-2); border-radius: var(--radius-sm); margin-top: var(--space-2);
}
.form-error.show { display: block; }
.form-error p { margin: 0; }
.form-fallback-link {
  display: none; margin-top: var(--space-2); border-color: #8a291f; color: #8a291f;
  padding: 0.6em 1.4em; font-size: 0.9rem;
}
.form-fallback-link.show { display: inline-block; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); color: var(--gray-light); padding: var(--space-4) 0 var(--space-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-3); }
.footer-grid .logo-badge { margin-bottom: 0.8em; }
.footer-grid p { color: var(--gray-light); font-size: 0.92rem; }
.footer-grid h4 { color: var(--white); font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-2); }
.footer-grid a { color: var(--gray-light); font-size: 0.92rem; }
.footer-grid ul li { margin-bottom: 0.5em; }
.footer-grid a:hover { color: var(--olive-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--space-2);
  text-align: center;
  font-size: 0.82rem;
  color: #9A9D91;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-graphic { order: -1; }
  .card-grid, .why-grid, .testimonial-grid, .portfolio-grid, .value-strip, .process-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid, .service-pillar, .commitment-grid { grid-template-columns: 1fr; }
  .service-pillar:nth-child(even) .media { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-3); }
}

@media (max-width: 760px) {
  .card-grid, .why-grid, .testimonial-grid, .portfolio-grid, .value-strip, .process-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; top: 62px; left: 0; right: 0; bottom: 0; background: var(--cream);
    flex-direction: column; align-items: stretch; padding: var(--space-3); gap: var(--space-2);
    transform: translateX(-100%); transition: transform 0.2s ease; overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
}
