/* =========================================================
   SEFFY LLC — site styles
   Colors and fonts are set once here, in :root, so they are
   easy to change later.
   ========================================================= */

:root {
  --navy: #0f2238;
  --navy-2: #18324f;
  --ink: #1b2430;
  --muted: #566170;
  --line: #e2dccf;
  --paper: #f7f5f0;
  --paper-2: #efebe2;
  --white: #ffffff;
  --accent: #c0914a;       /* decorative gold */
  --accent-ink: #855c1c;   /* gold dark enough for text */
  --accent-soft: #f3e8d6;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(15, 34, 56, .06), 0 8px 24px rgba(15, 34, 56, .06);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::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.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

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

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--navy); color: var(--white); padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, .92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}

.logo {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--navy);
}
.logo svg { width: 32px; height: 32px; }
.logo-name {
  font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: .08em;
}
.logo-suffix {
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; color: var(--muted);
  padding-top: .25rem;
}

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: .25rem;
}
.site-nav a {
  display: block; padding: .5rem .8rem; border-radius: 8px;
  text-decoration: none; color: var(--ink); font-size: .97rem; font-weight: 500;
}
.site-nav a:hover { background: var(--paper-2); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.site-nav a.nav-cta {
  background: var(--navy); color: var(--white); margin-left: .5rem; border-radius: 999px; padding: .5rem 1.1rem;
}
.site-nav a.nav-cta:hover { background: var(--navy-2); color: var(--white); }
.site-nav a.nav-cta[aria-current="page"] { box-shadow: none; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); cursor: pointer; position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px;
  background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .js .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(15, 34, 56, .08);
  }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: .1rem; }
  .site-nav a { padding: .8rem .75rem; font-size: 1.05rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
  .site-nav a.nav-cta { margin: .5rem 0 0; text-align: center; }
  /* Without JavaScript, the menu simply shows as a list */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1.5px solid transparent; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-2); color: var(--white); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--accent-soft); color: var(--navy); }
.btn .icon { width: 18px; height: 18px; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Icons ---------- */
.icon {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-badge {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-ink);
  margin-bottom: 1rem;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: .9rem;
}
.lead { font-size: clamp(1.1rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 40em; }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
}
.hero h1 { max-width: 15ch; }
.hero-art { width: 100%; height: auto; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
}

/* Page header (inner pages) */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero h1 { max-width: 20ch; }

/* ---------- Fact strip ---------- */
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  overflow: hidden;
}
.fact { display: flex; gap: .9rem; align-items: center; padding: 1.25rem 1.4rem; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact .icon { color: var(--accent-ink); flex: none; }
.fact strong { display: block; color: var(--navy); font-size: 1rem; }
.fact span { font-size: .92rem; color: var(--muted); }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; }
.section-alt .card { background: var(--paper); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

.checklist { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .75rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23855c1c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- Steps (How we work) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 1.5rem;
  padding-bottom: 2.5rem;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  /* the connecting line */
  content: ""; position: absolute; left: 35px; top: 72px; bottom: 0;
  width: 2px; background: repeating-linear-gradient(to bottom, var(--accent) 0 6px, transparent 6px 12px);
}
.step:last-child::before { display: none; }
.step-marker {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); border: 1.5px solid var(--line); color: var(--navy);
  position: relative;
}
.step-marker .icon { width: 28px; height: 28px; }
.step-num {
  position: absolute; top: -4px; right: -4px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-size: .8rem; font-weight: 700; display: grid; place-items: center;
}
.step-body { padding-top: .6rem; max-width: 42rem; }
.step-body h3 { margin-bottom: .35rem; }
.step-body p { color: var(--muted); margin: 0; }
.step-tag {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: .25rem;
}
@media (max-width: 560px) {
  .step { grid-template-columns: 56px 1fr; gap: 1rem; }
  .step-marker { width: 56px; height: 56px; }
  .step::before { left: 27px; top: 56px; }
  .step-body { padding-top: .25rem; }
}

/* ---------- Photo placeholders ---------- */
/* Replace each .photo-slot with an <img> when real photos are ready. */
.photo-slot {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 34, 56, .04) 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(135deg, var(--paper-2), var(--accent-soft));
  border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center;
  color: var(--muted); overflow: hidden;
}
.photo-slot-inner { display: grid; justify-items: center; gap: .5rem; padding: 1.5rem; }
.photo-slot .icon { width: 40px; height: 40px; color: var(--accent-ink); opacity: .7; }
.photo-slot small { font-size: .85rem; letter-spacing: .02em; }

/* Real photos */
.photo {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow); background: var(--paper-2);
}

/* ---------- Services ---------- */
.service {
  display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem;
  padding: 2.5rem 0; border-top: 1px solid var(--line);
}
.service:first-child { border-top: 0; padding-top: 0; }
.service-title .icon-badge { margin-bottom: 1rem; }
.service-title h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.service-body p { color: var(--muted); }
.service-body .checklist { margin-top: .5rem; }
@media (max-width: 820px) { .service { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- Brands ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.25rem; }
@media (max-width: 560px) { .brand-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; } }
.brand-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.brand-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.brand-media { aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; }
.brand-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.brand-media-empty {
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 3rem; color: var(--accent-ink);
}
.brand-name {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--navy);
  line-height: 1.25; margin: 0; padding: .9rem 1rem 1rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 560px) { .brand-name { font-size: 1rem; padding: .7rem .75rem .8rem; } }
.brand-empty { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--navy); color: #dbe3ec; border-radius: calc(var(--radius) + 6px);
  padding: clamp(2rem, 5vw, 3.5rem);
  position: relative; overflow: hidden;
}
.contact-card::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px;
  border-radius: 50%; border: 40px solid rgba(192, 145, 74, .18);
}
.contact-card h2 { color: var(--white); }
.contact-label { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #e2c08d; margin: 0 0 .5rem; }
.contact-email {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--serif); font-size: clamp(1.5rem, 4.5vw, 2.4rem); font-weight: 600;
  color: var(--white); text-decoration: none; word-break: break-all;
  border-bottom: 2px solid var(--accent); padding-bottom: .15rem;
  position: relative; z-index: 1;
}
.contact-email:hover { color: #f1d9b3; }
.contact-card p { position: relative; z-index: 1; }
.contact-details {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem;
  margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .15);
}
.contact-details a { color: var(--white); font-weight: 600; text-decoration: none; font-size: 1.1rem; }
.contact-details a:hover { color: #f1d9b3; }
.contact-details address { font-style: normal; color: var(--white); line-height: 1.55; }
.footer-links address { font-style: normal; line-height: 1.55; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy); color: #dbe3ec;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; left: -60px; top: -60px; width: 200px; height: 200px;
  border-radius: 50%; border: 32px solid rgba(192, 145, 74, .16);
}
.cta-band h2 { color: var(--white); margin-bottom: .35rem; position: relative; }
.cta-band p { margin: 0; max-width: 38rem; position: relative; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2.25rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose p, .prose li { color: #333d4a; }
.notice {
  border: 1px dashed #d9915f; background: #fdf3ea; color: #6b3110;
  border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: 2rem; font-size: .97rem;
}
.notice strong { color: #6b3110; }
.updated { color: var(--muted); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy); color: #b9c5d3; padding: 3rem 0 2rem; margin-top: 0;
  font-size: .95rem;
}
.footer-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-footer .logo { color: var(--white); }
.site-footer .logo-suffix { color: #b9c5d3; }
.footer-tagline { margin: .75rem 0 0; max-width: 24rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: #f1d9b3; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-title { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #e2c08d; margin: 0 0 .75rem; font-weight: 700; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: .88rem; }

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