/* ==========================================================================
   EYE SQUAD SP Z O O — Stylesheet
   Palette: paper background, ink text, steel-blue + brass accents
   ========================================================================== */

:root {
  --bg: #F1F2EE;
  --bg-alt: #E7E9E1;
  --panel: #FBFBF9;
  --ink: #15181B;
  --ink-soft: #4B5054;
  --ink-faint: #7B807F;
  --line: #CDD0C7;
  --accent: #2C5A73;
  --accent-dark: #1E3E4F;
  --brass: #B9843C;
  --brass-dark: #9C6E30;

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --max-w: 1180px;
  --radius: 3px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--ink); font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }
button { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75em 1.2em;
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brass);
  color: #fff;
}
.btn-primary:hover { background: var(--brass-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 242, 238, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  margin-right: auto;
}
.logo-mark { color: var(--accent); display: inline-flex; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.main-nav ul {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s 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); }

/* ---------- Hero ---------- */
.hero {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 88px 24px 72px;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 16ch;
}

.hero-lead {
  margin-top: 22px;
  font-size: 1.08rem;
  max-width: 46ch;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 30px 0 44px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin: 0;
  flex-wrap: wrap;
}
.hero-stats dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
}
.hero-stats dd {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 22ch;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.scope-svg { width: 100%; max-width: 420px; height: auto; color: var(--accent); }
.scope-svg .ring { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0.35; }
.scope-svg .ring-outer { opacity: 0.55; }
.scope-svg .axis { stroke: var(--line); stroke-width: 1; }
.scope-svg .dot { fill: var(--brass); }
.scope-svg .dot-alt { fill: var(--accent); opacity: 0.6; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.01em;
}
.section-sub {
  margin-top: 14px;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
}
.about-body p { font-size: 1.02rem; max-width: 62ch; }
.about-line {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--panel);
  padding: 34px 28px;
  transition: background-color 0.2s ease;
}
.service-card:hover { background: #ffffff; }
.service-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}
.service-card p { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Why / Benefits ---------- */
.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.benefit-item {
  background: var(--bg);
  padding: 30px 32px;
}
.benefit-item h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--accent-dark);
}
.benefit-item p { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.info-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.info-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}
.info-list a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); }
.info-list a:hover { text-decoration-color: var(--accent); }

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 36px;
}
.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.form-row label {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.optional { font-weight: 400; color: var(--ink-faint); }

.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(44, 90, 115, 0.14);
  outline: none;
}
.form-row.invalid input,
.form-row.invalid textarea { border-color: #B3402F; }

.field-error {
  min-height: 1.1em;
  font-size: 0.8rem;
  color: #B3402F;
  margin-top: 6px;
}

.form-submit { width: 100%; margin-top: 4px; }
.form-status {
  margin: 14px 0 0;
  font-size: 0.92rem;
  min-height: 1.2em;
}
.form-status.success { color: var(--accent-dark); }
.form-status.error { color: #B3402F; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #D8DAD5;
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .logo-text { color: #fff; }
.footer-brand p {
  margin-top: 12px;
  color: #9DA29C;
  max-width: 34ch;
  font-size: 0.92rem;
}
.footer-nav {
  display: flex;
  gap: 64px;
}
.footer-nav h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #9DA29C;
  margin-bottom: 14px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-nav li { color: #D8DAD5; font-size: 0.92rem; }
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  padding: 22px 24px;
}
.footer-bottom p { margin: 0; font-size: 0.82rem; color: #767B76; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-visual { order: -1; max-width: 280px; margin: 0 auto 12px; }
  .about-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: block;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
  }
  .main-nav.open ul { flex-direction: column; gap: 4px; }
  .main-nav.open a { display: block; padding: 12px 0; }
  .header-row .header-cta.open { display: inline-flex; }

  .service-grid { grid-template-columns: 1fr; }
  .footer-nav { gap: 40px; }
  .section { padding: 64px 0; }
}
