/* ==============================================================
   ROH Trading Co — styles
   Brand colors, fonts and the hero photo are all set in the
   :root block below. Change them there and the whole site follows.
   ============================================================== */

:root {
  /* Brand colors */
  --navy-900: #0a1a30;
  --navy-800: #0f2742;
  --navy-700: #1a3a5f;
  --ivory: #f8f4ec;
  --sand: #efe8da;
  --white: #fffdf9;
  --gold: #c6a567;        /* accents on navy */
  --gold-deep: #86662a;   /* gold text on light backgrounds */
  --ink: #142133;
  --muted: #535f6e;
  --line: rgba(20, 33, 51, 0.14);
  --line-light: rgba(255, 253, 249, 0.18);
  --error: #a3271f;

  /* Fonts */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Hero background photo */
  --hero-image: url("images/hero.jpg");

  /* Layout */
  --container: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 11vw, 144px);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.7rem; line-height: 1.2; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--navy-900);
  border-radius: 2px;
}
.skip-link:focus { top: 12px; }

/* ---------- Shared pieces ---------- */

.eyebrow {
  margin: 0 0 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 36px; height: 1px;
  margin-right: 14px;
  vertical-align: middle;
  background: currentColor;
}
.eyebrow-light { color: var(--gold); }

.lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: #d6b87e; }
.btn-ghost { border-color: rgba(255, 253, 249, 0.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 253, 249, 0.1); border-color: var(--white); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }

.text-link {
  display: inline-block;
  padding-block: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}
.text-link:hover { color: var(--navy-800); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--white);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-solid,
.site-header.is-open {
  background: var(--navy-900);
  box-shadow: 0 1px 0 var(--line-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
  padding-block: 8px;
  text-decoration: none;
  color: var(--white);
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.brand-name {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 38px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  transition: color 0.2s ease;
}
.primary-nav a:hover { color: var(--gold); }
.primary-nav .nav-cta {
  padding-inline: 20px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold);
}
.primary-nav .nav-cta:hover { background: var(--gold); color: var(--navy-900); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  display: block;
  width: 24px; height: 1.5px;
  margin-inline: auto;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; left: 0; top: -7px; }
.nav-toggle-bars::after { position: absolute; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(100deg, rgba(10, 26, 48, 0.94) 0%, rgba(10, 26, 48, 0.82) 45%, rgba(10, 26, 48, 0.35) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}
.hero-inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 64px;
}
.hero h1 {
  font-size: clamp(2.7rem, 7.4vw, 5.6rem);
  line-height: 1.02;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.hero-lead {
  max-width: 54ch;
  margin: 32px 0 40px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: rgba(255, 253, 249, 0.88);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-tagline {
  position: relative;
  border-top: 1px solid var(--line-light);
}
.hero-tagline p {
  margin: 0;
  padding-block: 22px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 253, 249, 0.85);
}
.hero-tagline span { margin-inline: 0.7em; color: var(--gold); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }
.section-ivory { background: var(--ivory); }
.section-white { background: var(--white); }
.section-sand { background: var(--sand); }
.section-navy { background: var(--navy-900); color: var(--white); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(44px, 6vw, 76px);
}
.section-intro {
  margin-top: 22px;
  font-size: 1.1rem;
  color: var(--muted);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
}
.about-copy h2 { margin-bottom: 28px; }
.about-copy > p:not(.eyebrow):not(.lead) { color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 44px 0 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.facts dt {
  margin-bottom: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
}

.about-figure {
  position: relative;
  margin: 0;
}
.about-figure::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold);
}
.about-figure img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- What We Do ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.service {
  padding: 44px clamp(20px, 3vw, 44px) 8px;
  border-left: 1px solid var(--line);
}
.service:first-child { padding-left: 0; border-left: 0; }
.service:last-child { padding-right: 0; }
.service-icon {
  width: 52px; height: 52px;
  margin-bottom: 28px;
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service h3 { margin-bottom: 14px; }
.service p { color: var(--muted); }

/* ---------- Product Categories ---------- */

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.category {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 230px;
  padding: 30px 28px;
  background: var(--white);
  border-top: 2px solid var(--gold);
}
.category-status {
  margin-bottom: auto;
  padding-bottom: 28px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.category h3 { margin-bottom: 8px; font-size: 1.55rem; }
.category p { font-size: 0.98rem; color: var(--muted); }
.category-open {
  background: var(--navy-800);
  color: var(--white);
}
.category-open .category-status,
.category-open .text-link { color: var(--gold); }
.category-open .text-link:hover { color: var(--white); }
.category-open p { margin-bottom: 14px; color: rgba(255, 253, 249, 0.82); }

/* ---------- Principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
}
.principle {
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
}
.principle-letter {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(5rem, 9vw, 7.5rem);
  font-weight: 400;
  line-height: 0.9;
  color: var(--gold);
}
.principle h3 { margin-bottom: 12px; }
.principle p { color: rgba(255, 253, 249, 0.8); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}
.contact-copy h2 { margin-bottom: 24px; }
.contact-email-label {
  margin: 40px 0 4px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.contact-email {
  display: inline-block;
  padding-block: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy-800);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--gold-deep); }
.contact-entity {
  margin: 14px 0 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
}
.contact-figure { margin: 40px 0 0; }
.contact-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.contact-form {
  padding: clamp(28px, 4vw, 52px);
  background: var(--white);
  border-top: 2px solid var(--gold);
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.optional { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 33, 51, 0.38);
  border-radius: 2px;
  background: var(--ivory);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--navy-800);
  background: var(--white);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--error);
}
.contact-form .btn { width: 100%; margin-top: 6px; }
.form-status {
  margin: 16px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.form-status:empty { display: none; }

/* ---------- Footer ---------- */

.site-footer {
  padding-top: 64px;
  background: var(--navy-900);
  color: rgba(255, 253, 249, 0.8);
  border-top: 1px solid var(--line-light);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 44px;
}
.footer-brand { margin: 0 0 10px; color: var(--white); }
.footer-brand .brand-name { margin-left: 6px; }
.footer-tagline {
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.footer-tagline span { margin-inline: 0.6em; color: var(--gold); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a,
.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9rem;
  text-decoration: none;
}
.footer-nav a:hover,
.footer-legal a:hover { color: var(--gold); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 18px;
  border-top: 1px solid var(--line-light);
  font-size: 0.86rem;
}
.footer-legal p { margin: 0; }

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .primary-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    display: none;
    padding: 8px var(--gutter) 28px;
    background: var(--navy-900);
    border-top: 1px solid var(--line-light);
  }
  .site-header.is-open .primary-nav { display: block; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .primary-nav a {
    width: 100%;
    min-height: 54px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--line-light);
  }
  .primary-nav .nav-cta {
    justify-content: center;
    margin-top: 22px;
    border: 1px solid var(--gold);
  }

  .hero-media {
    background-image:
      linear-gradient(100deg, rgba(10, 26, 48, 0.92) 0%, rgba(10, 26, 48, 0.72) 100%),
      var(--hero-image);
  }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 520px; margin-right: 18px; }

  .services,
  .principles { grid-template-columns: 1fr; }
  .service,
  .service:first-child,
  .service:last-child {
    padding: 36px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .services { border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  :root { --header-h: 68px; }
  body { font-size: 1rem; }
  .facts { grid-template-columns: 1fr; gap: 18px; }
  .hero-actions .btn { width: 100%; }
  .hero-tagline p { font-size: 0.68rem; letter-spacing: 0.16em; }
  .hero-tagline span { margin-inline: 0.4em; }
  .footer-tagline { font-size: 0.68rem; letter-spacing: 0.16em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
