/* ELVARO COMMERCE LTD — corporate website
   Minimal, professional, premium. Dark navy primary on warm off-white. */

:root {
  --navy: #0f1b2d;
  --navy-soft: #1c2b40;
  --ink: #1a1a1a;
  --text: #2b2f36;
  --muted: #5b6472;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --border: #e4e2dc;
  --border-strong: #d3d0c8;
  --accent: #2f5d8a;
  --focus: #2f5d8a;
  --maxw: 1120px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.35rem); }

p { margin: 0 0 1rem; max-width: 68ch; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--navy); }

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 0.5rem 0.7rem;
  font-size: 0.95rem;
  color: var(--navy);
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    width: 100%;
  }
  .site-nav.open { display: block; }
  .site-header .container { flex-wrap: wrap; align-items: center; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding-bottom: 0.75rem;
  }
  .site-nav li { border-top: 1px solid var(--border); }
  .site-nav a { display: block; padding: 0.85rem 0; }
}

/* ---------- Sections ---------- */
main { display: block; }

.section {
  padding-top: clamp(3rem, 8vw, 5.5rem);
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
}
.section + .section { border-top: 1px solid var(--border); }
.hero + .section { padding-top: clamp(2rem, 5vw, 3rem); }

.hero {
  padding-top: clamp(3.5rem, 10vw, 7rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.hero.hero-tall {
  padding-bottom: clamp(3.5rem, 10vw, 7rem);
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 1rem;
}
.hero h1 { margin-bottom: 0.35em; }
.hero .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text);
  max-width: 60ch;
}

.btn {
  display: inline-block;
  margin-top: 1.25rem;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.98rem;
  border: 1px solid var(--navy);
  transition: background 0.15s ease;
}
.btn:hover { background: var(--navy-soft); color: #fff; }
.btn.secondary {
  background: transparent;
  color: var(--navy);
  margin-left: 0.75rem;
}
.btn.secondary:hover { background: rgba(15, 27, 45, 0.06); color: var(--navy); }

@media (max-width: 480px) {
  .btn.secondary { margin-left: 0; margin-top: 0.75rem; display: block; text-align: center; }
  .btn { display: block; text-align: center; }
}

.eyebrow-h {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

/* ---------- Company information block ---------- */
.company-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.company-info dl {
  margin: 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
}
.company-info div {
  display: contents;
}
.company-info dt {
  font-weight: 600;
  color: var(--navy);
  padding: 0.9rem 1rem 0.9rem 0;
  border-top: 1px solid var(--border);
}
.company-info dd {
  margin: 0;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.company-info div:first-child dt,
.company-info div:first-child dd { border-top: none; }
.company-info dd address {
  font-style: normal;
  white-space: pre-line;
}

@media (max-width: 620px) {
  .company-info dl { grid-template-columns: 1fr; }
  .company-info dt {
    padding-bottom: 0.15rem;
    border-top: 1px solid var(--border);
  }
  .company-info dd {
    padding-top: 0.15rem;
    padding-bottom: 1rem;
    border-top: none;
  }
  .company-info div:first-child dd { border-top: none; }
}

/* ---------- Generic content ---------- */
/* .prose is often placed on the same element as .container; keep the text
   block left-aligned instead of inheriting .container's horizontal centering. */
.container.prose { max-width: var(--maxw); }
.container.prose > * { max-width: 72ch; }
.prose:not(.container) { max-width: 72ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.contact-card address { font-style: normal; white-space: pre-line; color: var(--text); }
.contact-card a { word-break: break-word; }

.note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
}
.note p { margin: 0; max-width: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cdd4de;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: 2rem;
  margin-top: 0;
}
.site-footer h2 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}
.site-footer address {
  font-style: normal;
  white-space: pre-line;
  color: #cdd4de;
  line-height: 1.7;
}
.site-footer .company-line { color: #fff; font-weight: 600; }
.site-footer a { color: #e6ebf2; }
.site-footer a:hover { color: #fff; }
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 2;
}
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: #aab3c0;
}
@media (max-width: 620px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}
