/* Wys Engineering — Restaurant HVAC Engineering
   Plain CSS, no framework. Refined hospitality palette:
   deep charcoal + warm copper accent + clean off-white. */

:root {
  --ink: #1c1f24;
  --ink-soft: #3a4049;
  --muted: #6b727c;
  --line: #e4e2dd;
  --paper: #ffffff;
  --paper-warm: #f7f5f1;
  /* Accent palette pulled from the WYS logo: cold blue primary, hot orange secondary */
  --copper: #1d6fc2;        /* primary accent (logo blue) */
  --copper-dark: #14538f;   /* hover / darker blue */
  --hot: #ff6a3d;           /* secondary accent (logo flame) */
  --max: 1120px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(28, 31, 36, 0.04), 0 8px 24px rgba(28, 31, 36, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  -webkit-font-smoothing: auto;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 400; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 400; }
h3 { font-size: 1.2rem; font-weight: 400; }

p { margin: 0 0 1rem; }

a { color: var(--copper-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.eyebrow {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #000;
  border-bottom: 1px solid #20242b;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: #d4d8de;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a.btn { color: #fff; }
.nav-divider {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: #2c313a;
}
.nav-links a.nav-section,
.nav-links a.is-active { position: relative; }
.nav-links a.is-active { color: #fff; }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--copper);
  border-radius: 2px;
}

/* ---------- Hamburger button ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #d4d8de;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.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); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--copper);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--copper-dark); text-decoration: none; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--paper-warm); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding-top: 96px; padding-bottom: 88px; }
.hero h1 { margin-bottom: 0.4em; }
.hero .sub {
  font-size: 1.18rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-warm { background: var(--paper-warm); }

/* Dark banner with atmospheric gradient */
.section-ink {
  background:
    radial-gradient(ellipse 70% 60% at 80% 10%, rgba(29, 111, 194, 0.30) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 15% 90%, rgba(255, 106, 61, 0.20) 0%, transparent 55%),
    linear-gradient(rgba(10, 13, 18, 0.55), rgba(10, 13, 18, 0.60)),
    url('assets/banner-bg.jpg') center / cover no-repeat;
}
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink p { color: #c4c9d0; }
.section-ink .eyebrow { color: #6fb1e8; }

.lead { font-size: 1.12rem; color: var(--ink-soft); }
.section-head { margin-bottom: 48px; }

/* ---------- Services grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.3em; }
.card .card-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.card ul { margin: 0; padding-left: 0; list-style: none; }
.card li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 0.96rem;
}
.card li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--copper);
}

/* ---------- Experience ---------- */
.exp-prose p { font-size: 1.05rem; }
.exp-callout {
  margin-top: 32px;
  border-left: 3px solid var(--copper);
  background: var(--paper-warm);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.exp-callout p { margin: 0; font-size: 0.97rem; color: var(--ink-soft); }
.exp-callout strong { color: var(--ink); }

/* ---------- FAQ accordion (native <details>) ---------- */
.faq { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-family: "DM Serif Display", serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--copper);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  flex: 0 0 auto;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0 0 20px; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Advantages (icon feature cards) ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  margin-top: 44px;
}
.adv-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.adv-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(28,31,36,.05), 0 14px 34px rgba(28,31,36,.10); }
.adv-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: rgba(29, 111, 194, 0.10);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.adv-icon svg { width: 26px; height: 26px; stroke: var(--copper); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.adv-card h3 { margin-bottom: 0.45em; }
.adv-card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- Positioning banner ---------- */
.banner { text-align: center; padding: 96px 0; }
.banner-inner { max-width: 820px; margin: 0 auto; }
.banner-eyebrow { color: #6fb1e8; margin-bottom: 1.2rem; }
.banner-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.4rem;
}
.banner-body {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: #8d97a5;
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Contact / form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info p { margin-bottom: 0.4rem; }
.contact-info .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.1rem;
}
.contact-info .detail { font-size: 1.1rem; color: var(--ink); font-weight: 500; margin-bottom: 1.4rem; }

form .field { margin-bottom: 18px; }
form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
form input, form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(29, 111, 194, 0.12);
}
form textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }

/* ---------- About / story ---------- */
.prose { max-width: 720px; }
.prose p { font-size: 1.08rem; }
.prose .credit-card {
  margin-top: 36px;
  border-left: 3px solid var(--copper);
  background: var(--paper-warm);
  padding: 22px 26px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose .credit-card p { margin: 0; }
.prose .credit-card strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: #000;
  color: #aab0b8;
  padding: 48px 0 40px;
  font-size: 0.92rem;
  border-top: 1px solid #20242b;
}
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.footer-inner a { color: #6fb1e8; }
.footer-logo { display: block; height: 88px; width: auto; margin-bottom: 6px; }


/* ---------- Responsive — mobile (≤ 640px) ---------- */
@media (max-width: 640px) {
  /* Show hamburger, hide horizontal nav */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #0a0c10;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    border-bottom: 1px solid #20242b;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 14px 24px;
    border-bottom: 1px solid #1a1e26;
    font-size: 1rem;
  }
  .nav-links .nav-text { display: inline; }
  .nav-links a.is-active::after { display: none; }
  .nav-divider { display: none; }
  .nav-cta {
    margin: 12px 24px 0;
    text-align: center;
    border-radius: var(--radius);
    display: block;
    padding: 14px 24px;
  }

  section { padding: 56px 0; }
  .hero-inner { padding-top: 56px; padding-bottom: 48px; }
  .hero .sub { font-size: 1.05rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }

  .section-head { margin-bottom: 36px; }

  .cards { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  .banner { padding: 72px 0; }
  .banner .statement { font-size: 1.2rem; }
}
