/*
Theme Name: SJCR
Theme URI: https://sjcrllc.com
Author: Twin Shores Marketing
Description: Corporate theme for SJCR LLC — parent company of Twin Shores Marketing, Jacko AI, FieldPress, and TextAPage.
Version: 1.1.0
License: GPL-2.0-or-later
Text Domain: sjcr
*/

:root {
  --ink: #0B1F33;
  --sea: #12354F;
  --sand: #F4EFE6;
  --shell: #FBF9F4;
  --tide: #1E7F78;
  --tide-dark: #16615B;
  --amber: #C8923A;
  --amber-bright: #E8B45C;
  --line: #E2D9C8;
  --muted: #5B6B7B;
  --radius: 10px;
  --maxw: 1120px;
  --maxw-narrow: 760px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 560;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 5.4vw, 3.9rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1.1em; }

a { color: var(--tide); text-decoration: none; }
a:hover { color: var(--tide-dark); text-decoration: underline; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 24px; }

.accent-i { font-style: italic; color: var(--amber-bright); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--tide) 45%, #4F46E5 100%);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  white-space: nowrap;
}
.brand-lockup:hover { text-decoration: none; color: var(--ink); }
.brand-lockup svg { flex: none; filter: drop-shadow(0 2px 6px rgba(11,31,51,0.25)); }
.lockup-text { display: flex; flex-direction: column; line-height: 1.12; }
.lockup-text .name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.lockup-text .name .llc { color: var(--amber); font-weight: 500; }
.lockup-text .tag {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.site-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.97rem;
}
.site-nav a:hover { color: var(--tide); text-decoration: none; }
.site-nav .nav-cta a,
.site-nav ul > li:last-child a {
  background: var(--tide);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
}
.site-nav .nav-cta a:hover,
.site-nav ul > li:last-child a:hover { background: var(--tide-dark); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 79px; left: 0; right: 0;
    background: var(--shell);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(700px 360px at 88% 12%, rgba(200,146,58,0.22), transparent 62%),
    radial-gradient(800px 460px at 4% 95%, rgba(30,127,120,0.30), transparent 62%),
    linear-gradient(160deg, var(--sea) 0%, var(--ink) 100%);
  color: #EDF2F7;
  padding: 104px 0 190px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 860px; margin-bottom: 22px; }
.hero p.lead { font-size: 1.22rem; line-height: 1.6; color: #C6D4E2; max-width: 680px; margin-bottom: 34px; }
.hero .eyebrow { color: var(--amber-bright); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero brand logo strip */
.hero-logos { margin-top: 58px; }
.hero-logos .label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7E93A8;
  margin-bottom: 16px;
}
.logo-chips { display: flex; gap: 14px; flex-wrap: wrap; }
.logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 68px;
  padding: 14px 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  transition: transform 0.18s, background 0.18s;
}
.logo-chip img { max-height: 42px; width: auto; }
.logo-chip:hover { background: rgba(255,255,255,0.13); transform: translateY(-3px); text-decoration: none; }
.logo-chip.on-light { background: var(--shell); border-color: rgba(255,255,255,0.3); }
.logo-chip.on-light:hover { background: #fff; }

/* Animated sea (hero bottom) */
.sea {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 96px;
  z-index: 1;
  pointer-events: none;
}
.sea .wave {
  position: absolute;
  bottom: 0; left: 0;
  width: 200%;
  height: 100%;
  background-repeat: repeat-x;
  background-size: 50% 100%;
  background-position: bottom;
}
.sea .w1 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 96' preserveAspectRatio='none'%3E%3Cpath d='M0,56 C150,24 300,24 450,48 C600,72 750,78 900,58 C1050,38 1125,40 1200,56 L1200,96 L0,96 Z' fill='%231E7F78' fill-opacity='0.35'/%3E%3C/svg%3E");
  animation: sjcr-drift 19s linear infinite;
}
.sea .w2 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 96' preserveAspectRatio='none'%3E%3Cpath d='M0,62 C180,30 340,32 520,56 C700,80 880,84 1040,62 C1120,51 1160,52 1200,60 L1200,96 L0,96 Z' fill='%23F4EFE6'/%3E%3C/svg%3E");
  animation: sjcr-drift 12s linear infinite reverse;
}
@keyframes sjcr-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .sea .wave { animation: none; }
}

/* Page hero (interior) */
.page-hero {
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(200,146,58,0.18), transparent 60%),
    linear-gradient(160deg, var(--sea) 0%, var(--ink) 100%);
  color: #EDF2F7;
  padding: 72px 0 118px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 52px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 52' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C240,4 480,4 720,26 C960,48 1200,50 1440,24 L1440,52 L0,52 Z' fill='%23F4EFE6'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p.lead { font-size: 1.15rem; color: #C6D4E2; max-width: 640px; margin: 0; }
.page-hero .eyebrow { color: var(--amber-bright); }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: 0.15s;
}
.btn-primary { background: var(--tide); color: #fff !important; box-shadow: 0 8px 20px rgba(30,127,120,0.35); }
.btn-primary:hover { background: var(--tide-dark); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.4); color: #fff !important; }
.btn-ghost:hover { border-color: #fff; text-decoration: none; }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink) !important; }
.btn-outline:hover { background: var(--ink); color: #fff !important; text-decoration: none; }

section.block { padding: 84px 0; }
section.block-tight { padding: 56px 0; }
section.alt { background: var(--shell); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Brand grid ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .brand-grid { grid-template-columns: 1fr; } }

.brand-card {
  background: var(--shell);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent, var(--tide));
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}
.brand-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 160px; height: 160px;
  background: radial-gradient(closest-side, var(--accent, var(--tide)), transparent);
  opacity: 0.07;
  pointer-events: none;
  transition: opacity 0.2s;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(11,31,51,0.10); }
.brand-card:hover::after { opacity: 0.14; }
.brand-card h3 { margin-bottom: 4px; }
.brand-card .brand-role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent, var(--tide));
  margin-bottom: 12px;
}
.brand-card p { color: var(--muted); font-size: 0.99rem; flex: 1; }
.brand-card .brand-link { font-weight: 600; font-size: 0.95rem; color: var(--accent, var(--tide)); }
.brand-card .brand-link:hover { text-decoration: none; }
.brand-card .brand-link::after { content: " \2192"; display: inline-block; transition: transform 0.18s; }
.brand-card:hover .brand-link::after { transform: translateX(4px); }

.brand-logo { height: 58px; display: flex; align-items: center; margin-bottom: 18px; }
.brand-logo img { max-height: 100%; max-width: 200px; width: auto; object-fit: contain; }
.brand-logo.chip-dark {
  background: linear-gradient(145deg, var(--sea), var(--ink));
  border-radius: 10px;
  padding: 11px 18px;
  max-width: max-content;
}
.brand-logo.chip-dark img { max-height: 32px; }

.brand-card.tsm { --accent: #1E7F78; }
.brand-card.jacko { --accent: #4F46E5; }
.brand-card.fieldpress { --accent: #B45309; }
.brand-card.textapage { --accent: #0E7490; }

/* ---------- Numbers band ---------- */
.numbers-band {
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(30,127,120,0.25), transparent 60%),
    var(--ink);
  padding: 70px 0;
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
@media (max-width: 760px) { .numbers-grid { grid-template-columns: repeat(2, 1fr); } }
.num-item .n {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  line-height: 1;
  color: var(--amber-bright);
}
.num-item .l { display: block; color: #9FB2C4; font-size: 0.93rem; margin-top: 10px; }

/* ---------- How it fits ---------- */
.fit-list { list-style: none; max-width: 820px; }
.fit-list li {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.fit-list li:last-child { border-bottom: none; }
.fit-num {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--amber-bright);
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.fit-list h3 { margin-bottom: 4px; font-size: 1.15rem; }
.fit-list p { margin: 0; color: var(--muted); font-size: 0.99rem; }

/* ---------- Facts / contact ---------- */
.facts-table { width: 100%; border-collapse: collapse; background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts-table th, .facts-table td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 0.99rem; vertical-align: top; }
.facts-table tr:last-child th, .facts-table tr:last-child td { border-bottom: none; }
.facts-table th { width: 220px; font-weight: 600; color: var(--ink); background: rgba(226,217,200,0.25); }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--shell);
  border: 1px solid var(--line);
  border-top: 4px solid var(--tide);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(11,31,51,0.08); }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.contact-card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.contact-card a { font-weight: 600; }

.placeholder-note {
  display: inline-block;
  background: #FFF3DC;
  border: 1px dashed var(--amber);
  color: #7A5A1E;
  font-size: 0.88rem;
  padding: 3px 10px;
  border-radius: 6px;
}

/* ---------- Legal pages ---------- */
.legal-body { padding: 64px 0 90px; }
.legal-body h2 { margin: 42px 0 14px; font-size: 1.45rem; }
.legal-body h3 { margin: 28px 0 10px; font-size: 1.12rem; }
.legal-body ul, .legal-body ol { margin: 0 0 1.1em 1.4em; }
.legal-body li { margin-bottom: 0.5em; }
.legal-meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 8px; }
.legal-callout {
  background: var(--shell);
  border: 1px solid var(--line);
  border-left: 4px solid var(--tide);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.legal-callout p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 320px at 85% 100%, rgba(200,146,58,0.20), transparent 62%),
    radial-gradient(600px 300px at 8% 0%, rgba(30,127,120,0.28), transparent 60%),
    linear-gradient(160deg, var(--sea) 0%, var(--ink) 100%);
  color: #EDF2F7;
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #C6D4E2; max-width: 560px; margin: 0 auto 28px; }
.cta-phone {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--amber-bright) !important;
  margin-top: 22px;
}
.cta-phone:hover { color: #fff !important; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #9FB2C4;
  padding: 56px 0 36px;
  font-size: 0.94rem;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--amber), var(--tide) 45%, #4F46E5 100%) 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #C6D4E2; }
.site-footer a:hover { color: #fff; }
.footer-brandline { font-family: 'Fraunces', serif; font-size: 1.2rem; color: #fff; margin-bottom: 12px; }
.footer-sms-note { font-size: 0.86rem; line-height: 1.6; color: #7E93A8; max-width: 420px; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: #7E93A8;
}
.footer-legal a { color: #9FB2C4; }

/* ---------- Opt-in form ---------- */
.optin-form {
  background: var(--shell);
  border: 1px solid var(--line);
  border-top: 4px solid var(--tide);
  border-radius: var(--radius);
  padding: 34px;
  max-width: 560px;
}
.optin-form .hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.optin-row { margin-bottom: 18px; }
.optin-row label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.optin-row .opt { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.req { color: #B4441B; }
.optin-row input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 8px;
}
.optin-row input:focus { outline: none; border-color: var(--tide); box-shadow: 0 0 0 3px rgba(30,127,120,0.15); }
.optin-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(30,127,120,0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 22px;
}
.optin-consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--tide); }
.optin-consent label { font-size: 0.88rem; line-height: 1.55; color: var(--ink); }
.optin-submit { width: 100%; border: none; cursor: pointer; font-family: inherit; }
.optin-notice { border-radius: var(--radius); padding: 16px 20px; margin-bottom: 22px; max-width: 560px; font-size: 0.97rem; }
.optin-notice.ok { background: #E8F3EC; border: 1px solid #BBDCC8; color: #1E5B38; }
.optin-notice.err { background: #FBEFE7; border: 1px solid #ECCBB3; color: #8A4218; }

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Content fallback ---------- */
.entry-content > *:not(section):not(div) { max-width: var(--maxw-narrow); margin-left: auto; margin-right: auto; }
