/* Alma Lyt LLC — site styles
   Palette and type carried over from the original WordPress theme. */

:root {
  --ink: #22272a;          /* dark sections, headings */
  --ink-deep: #11161a;
  --steel: #506793;        /* hero gradient end */
  --text: #4f5559;         /* body copy */
  --muted: #6b7175;
  --accent: #ff6d29;       /* primary buttons */
  --accent-dark: #e0561a;
  --accent-text: #c2410c;  /* orange for small text on light backgrounds (AA) */
  --surface: #ffffff;
  --surface-alt: #f5f7fa;
  --line: #e3e6ea;

  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--surface);
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3, .h3 { font-size: clamp(1.2rem, 2.2vw, 1.4rem); }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand img { height: 46px; width: auto; }
.brand-text {
  font-family: "Yellowtail", "Brush Script MT", cursive;
  font-size: 2rem; line-height: 1; color: var(--ink);
}
.brand img + .brand-text, .footer-brand img + .brand-text { display: none; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 4vw, 2.5rem); }
.site-nav a {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding: .5rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-text); border-bottom-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  padding: .95rem 1.6rem; border-radius: 3px; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  text-align: center;
}
.btn-primary { background: var(--accent); color: var(--ink-deep); }
.btn-primary:hover { background: #ff8a52; color: var(--ink-deep); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-deep); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background:
    linear-gradient(140deg, rgba(0,0,0,.92) 0%, rgba(80,103,147,.85) 100%),
    var(--ink);
  padding: clamp(5rem, 14vw, 9rem) 0 clamp(4.5rem, 12vw, 8rem);
}
.hero::before {           /* diagonal line motif from the original header */
  content: ""; position: absolute; inset: 0 auto auto 0;
  width: min(45vw, 420px); height: min(45vw, 420px);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.28) 0 1px, transparent 1px 11px);
  -webkit-mask-image: linear-gradient(135deg, #000 0%, #000 35%, transparent 70%);
          mask-image: linear-gradient(135deg, #000 0%, #000 35%, transparent 70%);
  pointer-events: none;
}
.hero::after {            /* soft triangle, bottom-left */
  content: ""; position: absolute; left: 0; bottom: 0;
  width: min(30vw, 260px); height: min(30vw, 260px);
  background: linear-gradient(45deg, rgba(255,255,255,.08) 50%, transparent 50%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-weight: 400; margin-bottom: .5em; }
.hero .lede { max-width: 38rem; margin: 0 auto 2rem; color: rgba(255,255,255,.85); font-size: 1.125rem; }
.hero .btn-row { justify-content: center; }
.hero--page { padding: clamp(3.5rem, 9vw, 5.5rem) 0; }
.hero--page h1 { margin-bottom: .25em; }
.hero--page .lede { margin-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--surface-alt); }
.section--dark { background: var(--ink); color: rgba(255,255,255,.82); }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow {
  display: block; font-family: var(--sans); font-size: .75rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .75rem;
}
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 880px) { .split { grid-template-columns: 1.1fr .9fr; } }

.pillar {
  border-top: 3px solid var(--accent);
  padding-top: 1.25rem;
}
.pillar h3 { margin-bottom: .5em; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.section--alt .card { border-color: transparent; box-shadow: 0 1px 2px rgba(17,22,26,.06), 0 8px 24px rgba(17,22,26,.05); }

.note { font-size: .95rem; font-style: italic; color: var(--muted); }
.section--dark .note { color: rgba(255,255,255,.65); }

/* Category tags */
.tags { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li {
  font-size: .85rem; padding: .35rem .8rem; border-radius: 999px;
  background: var(--surface-alt); border: 1px solid var(--line); color: var(--ink);
}
.section--alt .tags li { background: #fff; }

/* Advantages panel */
.panel {
  background: var(--ink); color: rgba(255,255,255,.85); border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.5rem);
}
.panel h3 { color: #fff; }
.checklist { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .8rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}

/* CTA band */
.cta-band { background: var(--accent); color: var(--ink-deep); padding: clamp(2.5rem, 6vw, 3.5rem) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.cta-band h2 { color: var(--ink-deep); margin: 0; font-size: clamp(1.35rem, 3vw, 1.85rem); }
.cta-band p { margin: .35rem 0 0; color: var(--ink-deep); }

/* Testimonials */
.quote { margin: 0; display: flex; flex-direction: column; height: 100%; }
.quote blockquote { margin: 0 0 1.25rem; font-family: var(--serif); font-size: 1.02rem; line-height: 1.75; color: var(--ink); flex: 1; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 3rem; line-height: .8; color: var(--accent); margin-bottom: .25rem; }
.quote figcaption { font-size: .92rem; color: var(--muted); }
.quote figcaption strong { color: var(--ink); }

/* Pull quote (Company page) */
.pullquote {
  margin: 0 0 1.75rem; padding: .25rem 0 .25rem 1.25rem; border-left: 4px solid var(--accent);
  font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.55; color: var(--ink);
}

/* Contact */
.contact-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,109,41,.12); color: var(--accent-text);
}
.contact-item .icon svg { width: 20px; height: 20px; }
.contact-item h2 {
  font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 .3rem;
}
.contact-item p { margin: 0; color: var(--ink); font-weight: 600; font-size: 1.05rem; line-height: 1.5; }
.contact-item a { color: var(--ink); text-decoration-color: rgba(255,109,41,.5); overflow-wrap: anywhere; }
.contact-item a:hover { color: var(--accent-text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: rgba(255,255,255,.72); padding: clamp(3rem, 7vw, 4.5rem) 0 2rem; font-size: .95rem; }
.site-footer h2 {
  font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: #fff; margin: 0 0 .9rem;
}
.site-footer a { color: rgba(255,255,255,.9); text-decoration-color: rgba(255,255,255,.3); }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-grid address { font-style: normal; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: .85rem; color: rgba(255,255,255,.55);
}
.footer-brand img { height: 38px; width: auto; filter: invert(1); }
.footer-brand .brand-text { color: #fff; font-size: 1.6rem; }

/* ---------- 404 ---------- */
.notfound { min-height: 55vh; display: grid; place-items: center; text-align: center; }

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .site-header .wrap { min-height: 64px; }
  .brand img { height: 38px; }
  .brand-text { font-size: 1.6rem; }
  .site-nav a { font-size: .72rem; letter-spacing: .1em; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .cta-band .btn { width: 100%; }
}

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

@media print {
  .site-header, .cta-band, .skip-link { display: none; }
  .hero, .section--dark, .site-footer, .panel { background: none !important; color: #000 !important; }
  .hero h1, .section--dark h2, .panel h3 { color: #000 !important; }
}
