/* SamTech Solutions — editorial light theme */
:root {
  --ivory: #faf8f3;
  --ivory-deep: #f3efe6;
  --ink: #102a49;
  --ink-soft: #33465e;
  --muted: #5d6874;
  --teal: #0e6b63;
  --teal-dark: #0a514b;
  --line: #e3dccb;
  --line-strong: #c9c0a9;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--teal); color: #fff; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }

a { color: var(--teal-dark); }
a:hover { color: var(--teal); }

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

/* Eyebrow + section numbers */
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.1rem;
}
.sec-no {
  display: inline-block; color: var(--teal-dark); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: .05rem .55rem; margin-right: .6rem; font-size: .72rem;
  letter-spacing: .1em;
}

/* Top bar */
.topbar { background: var(--ink); color: #e8e2d4; font-size: .8rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding-top: .5rem; padding-bottom: .5rem; gap: 1rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--ivory); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-name em { font-style: italic; font-weight: 400; color: var(--teal-dark); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a { text-decoration: none; color: var(--ink-soft); font-size: .95rem; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.nav-cta {
  border: 1px solid var(--ink); border-radius: 999px; padding: .5rem 1.3rem !important; color: var(--ink) !important;
}
.nav-cta:hover { background: var(--ink); color: #fff !important; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* Hero */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 16ch; margin-bottom: 1.5rem; }
.hero h1::after { content: ""; display: block; width: 72px; height: 3px; background: var(--teal); margin-top: 1.4rem; }
.standfirst { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 62ch; margin-bottom: 2rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .85rem 1.9rem; border-radius: 999px; border: 1px solid var(--ink);
  transition: background .2s, color .2s;
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.75rem; list-style: none; }
.hero-facts div { display: block; }
.hero-facts dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.hero-facts dd { font-family: var(--serif); font-size: 1.15rem; }

/* Focus strip */
.focus-strip { border-bottom: 1px solid var(--line); background: var(--ivory-deep); }
.focus-strip ul { list-style: none; display: flex; flex-wrap: wrap; }
.focus-strip li {
  flex: 1 1 auto; text-align: center; padding: 1.1rem .5rem; font-size: .85rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
}
.focus-strip li + li { border-left: 1px solid var(--line); }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 20ch; margin-bottom: 1rem; }
.section-lede { color: var(--muted); max-width: 64ch; font-size: 1.08rem; margin-bottom: 3rem; }

/* Services — editorial numbered rows */
.service-list { list-style: none; }
.service-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem;
  padding: 2.4rem 0; border-top: 1px solid var(--line);
}
.service-list li:last-child { border-bottom: 1px solid var(--line); }
.service-head { display: flex; align-items: flex-start; gap: 1.1rem; }
.service-no { font-family: var(--serif); font-size: 1rem; color: var(--teal-dark); font-weight: 600; padding-top: .35rem; min-width: 2ch; }
.service-icon { width: 34px; height: 34px; flex: none; stroke: var(--teal-dark); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-top: .15rem; }
.service-head h3 { font-size: 1.5rem; }
.service-head h3 span { display: block; font-family: var(--sans); font-size: .92rem; font-weight: 500; color: var(--muted); margin-top: .35rem; letter-spacing: 0; }
.service-body p { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 60ch; }
.service-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.service-tags li {
  font-size: .8rem; font-weight: 500; color: var(--teal-dark);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: .25rem .85rem; background: #fff;
}

/* Principles */
.principles { background: var(--ivory-deep); }
.principles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.principles-grid article { padding: 2.2rem 2rem 2.2rem 0; border-bottom: 1px solid var(--line-strong); }
.principles-grid article:nth-child(odd) { padding-right: 2.5rem; }
.principles-grid article:nth-child(even) { padding-left: 2.5rem; border-left: 1px solid var(--line-strong); }
.principle-no { font-family: var(--serif); font-style: italic; color: var(--teal-dark); font-size: 1.1rem; }
.principles-grid h3 { font-size: 1.35rem; margin: .5rem 0 .7rem; }
.principles-grid p { color: var(--ink-soft); font-size: .98rem; }

/* Engagement */
.engagement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.engagement-grid article { border-top: 3px solid var(--ink); padding-top: 1.5rem; }
.engagement-grid article:nth-child(2) { border-top-color: var(--teal); }
.engagement-grid h3 { font-size: 1.4rem; margin-bottom: .7rem; }
.engagement-grid p { color: var(--ink-soft); margin-bottom: 1.1rem; font-size: .98rem; }
.engagement-grid ul { list-style: none; }
.engagement-grid li { font-size: .9rem; color: var(--muted); padding: .45rem 0 .45rem 1.2rem; position: relative; border-top: 1px solid var(--line); }
.engagement-grid li::before { content: "—"; position: absolute; left: 0; color: var(--teal-dark); }

/* About */
.about-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 3rem; }
.about-copy p { margin-bottom: 1.4rem; color: var(--ink-soft); }
.about-copy p:first-child { font-size: 1.12rem; color: var(--ink); }
.about-copy p:first-child::first-letter {
  font-family: var(--serif); font-size: 3.2em; float: left; line-height: .85;
  padding-right: .12em; color: var(--teal-dark); font-weight: 600;
}

/* Contact */
.contact { background: var(--ink); color: #eef0f4; border-bottom: 0; }
.contact .eyebrow { color: #a9b4c4; }
.contact .sec-no { color: #7fd1c7; border-color: #3a4f68; }
.contact h2 { color: #fff; }
.contact-intro p { color: #c3ccd8; margin-bottom: 1.2rem; max-width: 44ch; }
.contact-direct a { color: #7fd1c7; }
.contact-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3.5rem; }

.contact-form { background: var(--ivory); border-radius: 6px; padding: 2.2rem; color: var(--ink); }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .45rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; padding: .75rem .9rem;
  border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field-error { color: #a33327; font-size: .85rem; margin-top: .35rem; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #a33327; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; }
.contact-form .btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }

.form-success { background: var(--ivory); border-radius: 6px; padding: 3rem 2.2rem; color: var(--ink); text-align: center; }
.form-success svg { width: 54px; height: 54px; stroke: var(--teal-dark); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.form-success h3 { font-size: 1.6rem; margin-bottom: .8rem; }
.form-success p { color: var(--ink-soft); margin-bottom: 1.6rem; }

/* Footer */
.site-footer { background: #0b1f38; color: #c3ccd8; }
.footer-inner { padding-top: 3rem; padding-bottom: 2.5rem; display: grid; gap: 1.4rem; justify-items: start; }
.site-footer .brand-name { color: #fff; }
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-nav a { color: #c3ccd8; text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: #fff; }
.footer-contact a { color: #7fd1c7; text-decoration: none; font-weight: 600; }
.footer-fine { font-size: .82rem; color: #8b96a8; border-top: 1px solid #22344f; padding-top: 1.4rem; width: 100%; }

/* Responsive */
@media (max-width: 900px) {
  .service-row { grid-template-columns: 1fr; gap: 1.2rem; }
  .principles-grid { grid-template-columns: 1fr; }
  .principles-grid article:nth-child(even) { border-left: 0; padding-left: 0; }
  .principles-grid article:nth-child(odd) { padding-right: 0; }
  .engagement-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr; gap: 1rem; }
  .focus-strip li + li { border-left: 0; }
  .focus-strip li { border-top: 1px solid var(--line); flex: 1 1 50%; }
  .focus-strip li:nth-child(-n+2) { border-top: 0; }
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ivory); flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem 0; border-top: 1px solid var(--line); }
  .site-nav a:first-child { border-top: 0; }
  .site-header { position: sticky; }
  .topbar-inner span { display: none; }
  .topbar-inner { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

section { scroll-margin-top: 84px; }
