/*
Theme Name: Texas Rising Sun
Theme URI: https://texasrisingsun.com
Author: Texas Rising Sun LLC
Description: Sunrise — warm, inviting bilingual relocation & services theme. Texas warmth × Japanese calm. WCAG 2.2-minded, dark mode, no page builder required.
Version: 3.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: texas-rising-sun
*/

/* ============================================================
   TEXAS RISING SUN LLC — theme v3.0 "Sunrise"
   Warm, welcoming, human. Texas warmth × Japanese calm.
   Cream paper / warm terracotta / sunrise gold / calm indigo
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand core — warmer, friendlier */
  --trs-ink: #2C2620;          /* warm text */
  --trs-ink-deep: #211C17;
  --trs-cream: #FBF7F0;        /* warm paper background */
  --trs-cream-2: #F4ECDE;      /* alternating sections */
  --trs-clay: #C15F3C;         /* warm terracotta — primary */
  --trs-clay-deep: #A24A2C;    /* hover */
  --trs-gold: #E0A94F;         /* sunrise gold */
  --trs-gold-soft: #F2C572;
  --trs-indigo: #3B5B7A;       /* calm indigo — trust / secondary */
  --trs-indigo-deep: #2E4860;
  --trs-ochre: #8A6A2A;        /* gold-family for TEXT (AA-safe) */
  --trs-sage: #6E7A5E;
  --trs-mesquite: #5E5648;     /* secondary text */

  /* Semantic — light */
  --bg: var(--trs-cream);
  --bg-alt: var(--trs-cream-2);
  --surface: #FFFFFF;
  --text: var(--trs-ink);
  --muted: var(--trs-mesquite);
  --line: #E7DDCB;
  --link: #A24A2C;
  --accent: var(--trs-clay);
  --accent-contrast: #ffffff;
  --header-bg: #FFFFFFF2;
  --header-text: #2C2620;
  --focus: #C15F3C;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 74rem;
  --shadow: 0 1px 2px rgba(44,38,32,.04), 0 10px 30px rgba(44,38,32,.07);
  --shadow-lift: 0 4px 10px rgba(44,38,32,.06), 0 20px 48px rgba(44,38,32,.12);
  --font-head: "Poppins", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
[data-theme="dark"] {
  --bg: #191510;
  --bg-alt: #201A13;
  --surface: #241E17;
  --text: #F0E7D6;
  --muted: #BEB29B;
  --line: #3A3125;
  --link: #F2C572;
  --accent: #D8814F;
  --accent-contrast: #1a1510;
  --header-bg: #1E1811F0;
  --header-text: #F0E7D6;
  --focus: #E0A94F;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --shadow-lift: 0 20px 48px rgba(0,0,0,.5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #191510; --bg-alt: #201A13; --surface: #241E17;
    --text: #F0E7D6; --muted: #BEB29B; --line: #3A3125;
    --link: #F2C572; --accent: #D8814F; --accent-contrast: #1a1510;
    --header-bg: #1E1811F0; --header-text: #F0E7D6;
    --focus: #E0A94F; --shadow: 0 10px 30px rgba(0,0,0,.35);
    --shadow-lift: 0 20px 48px rgba(0,0,0,.5);
  }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.075rem; line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; transition: color .15s ease; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--trs-clay);
  color: #fff; padding: .75rem 1.25rem; z-index: 100; border-radius: 0 0 10px 0;
  font-family: var(--font-head); font-weight: 600;
}
.skip-link:focus { left: 0; }
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 1.4rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head); line-height: 1.15; margin: 0 0 .55em;
  letter-spacing: -.02em; font-weight: 700; color: var(--text);
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.4rem); font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.9vw, 2.25rem); }
h3 { font-size: 1.24rem; font-weight: 600; }
p, ul, ol { margin: 0 0 1.2em; }
.lede { font-size: 1.28rem; color: var(--muted); max-width: 62ch; line-height: 1.6; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: .8rem;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--trs-clay); margin-bottom: .9rem;
  padding: .3rem .8rem; background: rgba(193,95,60,.09); border-radius: 100px;
}
[data-theme="dark"] .eyebrow { color: var(--trs-gold-soft); background: rgba(224,169,79,.12); }
.mono { font-family: var(--font-mono); font-size: .9em; }

/* ---------- Header ---------- */
.topbar {
  background: linear-gradient(90deg, var(--trs-indigo-deep), var(--trs-indigo));
  color: #E9EFF5; font-size: .82rem;
  font-family: var(--font-head); padding: .5rem 0; letter-spacing: .01em;
}
.topbar .container { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; justify-content: space-between; align-items: center; }
.topbar a { color: #fff; font-weight: 500; }
.site-header {
  background: var(--header-bg); color: var(--header-text);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(150%) blur(10px);
}
.navwrap { display: flex; align-items: center; gap: 1rem; min-height: 4.6rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; margin-right: auto; }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand-text { font-family: var(--font-head); font-size: 1rem; line-height: 1.15; }
.brand-text strong { display: block; font-weight: 700; letter-spacing: .04em; font-size: 1.05rem; color: var(--text); }
.brand-text span { color: var(--muted); font-weight: 500; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; }
.nav-toggle {
  display: none; background: transparent; color: inherit; border: 1.5px solid var(--line);
  border-radius: 10px; padding: .55rem .95rem; font: inherit; font-family: var(--font-head); font-weight: 600; cursor: pointer;
}
.site-nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a {
  display: block; padding: .55rem .85rem; border-radius: 100px; color: var(--header-text);
  text-decoration: none; font-family: var(--font-head); font-weight: 500; font-size: .94rem;
  transition: background .15s ease, color .15s ease;
}
.site-nav a:hover { background: rgba(193,95,60,.1); color: var(--trs-clay); }
.site-nav a[aria-current="page"] { color: var(--trs-clay); font-weight: 600; background: rgba(193,95,60,.1); }
.site-nav .nav-cta a, .site-nav a.nav-cta {
  background: var(--trs-clay); color: #fff; font-weight: 600; padding-inline: 1.1rem;
}
.site-nav .nav-cta a:hover, .site-nav a.nav-cta:hover { background: var(--trs-clay-deep); color: #fff; }
.theme-toggle {
  background: transparent; border: 1.5px solid var(--line); color: inherit; border-radius: 100px;
  padding: .45rem .7rem; cursor: pointer; font: inherit; line-height: 1;
}
@media (max-width: 60rem) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; padding-bottom: 1rem; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .site-nav a { padding: .7rem 1rem; }
  .navwrap { flex-wrap: wrap; }
}

/* ---------- Hero — warm sunrise, welcoming ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 82% -10%, rgba(242,197,114,.55), transparent 55%),
    radial-gradient(90% 70% at 8% 0%, rgba(193,95,60,.14), transparent 50%),
    linear-gradient(180deg, #FFF6E7 0%, var(--bg) 78%);
  color: var(--text); padding: clamp(3.4rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(120% 80% at 82% -10%, rgba(224,169,79,.22), transparent 55%),
    radial-gradient(90% 70% at 8% 0%, rgba(193,95,60,.16), transparent 50%),
    linear-gradient(180deg, #241C12 0%, var(--bg) 80%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--trs-gold), var(--trs-clay) 55%, transparent 92%);
  opacity: .9;
}
.hero > .container { position: relative; }
.hero .eyebrow { background: rgba(255,255,255,.55); color: var(--trs-clay-deep); }
[data-theme="dark"] .hero .eyebrow { background: rgba(0,0,0,.25); color: var(--trs-gold-soft); }
.hero .lede { color: var(--trs-mesquite); }
[data-theme="dark"] .hero .lede { color: #CFC2AC; }
.hero-grid { display: grid; gap: 2.6rem; align-items: center; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 1.3fr .7fr; } }
.hero-panel {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem;
  background: rgba(255,255,255,.72); font-size: .96rem; box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}
[data-theme="dark"] .hero-panel { background: rgba(36,30,23,.72); }
.hero-panel dt {
  font-family: var(--font-head); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--trs-clay); font-weight: 600;
}
.hero-panel dd { margin: 0 0 1rem; font-size: .98rem; color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.7rem; border-radius: 100px;
  font-family: var(--font-head); font-weight: 600; text-decoration: none;
  border: 2px solid transparent; font-size: 1rem; cursor: pointer;
  letter-spacing: .005em; transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--trs-clay); color: #fff; box-shadow: 0 6px 18px rgba(193,95,60,.32); }
.btn-primary:hover { background: var(--trs-clay-deep); box-shadow: 0 10px 26px rgba(193,95,60,.4); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--trs-clay); background: rgba(193,95,60,.06); }
.btn-navy, .btn-ink { background: var(--trs-indigo); color: #fff; }
.btn-navy:hover, .btn-ink:hover { background: var(--trs-indigo-deep); }

/* ---------- Sections / cards ---------- */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 46rem) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 66rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.85rem; box-shadow: var(--shadow); position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { margin-top: .55rem; }
.card .mono { color: var(--trs-clay); font-size: .82rem; font-weight: 600; }
.card ul { padding-left: 1.15rem; margin-bottom: 0; }
.card li { margin-bottom: .34rem; }
.kicker-num {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); color: #fff; font-weight: 700; font-size: .95rem;
  width: 2.5rem; height: 2.5rem; border-radius: 14px;
  background: linear-gradient(135deg, var(--trs-gold), var(--trs-clay));
  box-shadow: 0 6px 16px rgba(193,95,60,.28); letter-spacing: 0;
}
.card .kicker-num.mono, .kicker-num.mono {
  width: auto; height: auto; display: inline-block; background: none; color: var(--trs-clay);
  box-shadow: none; font-family: var(--font-mono); font-size: .82rem; font-weight: 600; letter-spacing: .04em;
}

/* ---------- Horizon divider (sun-on-line motif) ---------- */
.divider { border: 0; height: 16px; margin: 3.2rem 0; position: relative; }
.divider::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--line);
}
.divider::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 14px; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--trs-gold-soft), var(--trs-clay));
  box-shadow: 0 0 0 6px var(--bg);
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .98rem; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th, th[scope="col"] {
  font-family: var(--font-head); font-size: .74rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); font-weight: 600; background: var(--bg-alt);
}
th[scope="row"] { font-family: var(--font-head); font-weight: 600; color: var(--text); font-size: .92rem; }
td.mono { white-space: nowrap; }

/* ---------- Status badges ---------- */
.badge {
  display: inline-block; font-family: var(--font-head); font-size: .75rem;
  font-weight: 600; letter-spacing: .02em; padding: .22rem .7rem;
  border-radius: 100px; border: 1px solid var(--line);
}
.badge-pending { color: #8A6212; border-color: #E7C878; background: #FBF1D8; }
.badge-active { color: #2A6A44; border-color: #97C9A9; background: #E8F4EC; }
[data-theme="dark"] .badge-pending { background: #2E2410; color: var(--trs-gold-soft); border-color: #6B5620; }
[data-theme="dark"] .badge-active { background: #163021; color: #8FCB9F; border-color: #2E5C3D; }

/* ---------- Forms ---------- */
form { display: grid; gap: 1.2rem; max-width: 44rem; }
label { font-family: var(--font-head); font-weight: 600; font-size: .94rem; display: block; margin-bottom: .4rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; font-family: var(--font-body); }
input, select, textarea {
  width: 100%; padding: .85rem 1rem; font: inherit; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--trs-clay); box-shadow: 0 0 0 4px rgba(193,95,60,.12); outline: none; }
.form-status { font-weight: 600; font-family: var(--font-head); }
.form-status[data-state="error"] { color: #A2402C; }
.form-status[data-state="ok"] { color: #2A6A44; }
[data-theme="dark"] .form-status[data-state="error"] { color: #E8967F; }
[data-theme="dark"] .form-status[data-state="ok"] { color: #8FCB9F; }
.honeypot { position: absolute; left: -9999px; }

/* ---------- Footer — warm ink, gold horizon ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--trs-ink-deep), #17120D); color: #CFC2AC; margin-top: 4rem;
  font-size: .96rem; border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--trs-gold), var(--trs-clay) 60%, var(--trs-indigo) 95%) 1;
}
.footer-grid { display: grid; gap: 2.2rem; padding: 3.4rem 0 2rem; }
@media (min-width: 58rem) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.site-footer h2 {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--trs-gold-soft); font-family: var(--font-head); margin-bottom: .9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #EDE3D2; }
.site-footer a:hover { color: #fff; }
.footer-legal { border-top: 1px solid #362D22; padding: 1.4rem 0 2.4rem; font-size: .82rem; color: #9C9077; }
.footer-legal p { margin-bottom: .4rem; }

/* ---------- Utility ---------- */
.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 58rem) { .two-col { grid-template-columns: 1fr 1fr; } }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 2rem; position: relative; margin-bottom: .7rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .28em;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: rgba(193,95,60,.12);
}
.checklist li::after {
  content: ""; position: absolute; left: .42rem; top: .5em;
  width: .42rem; height: .72rem; border: solid var(--trs-clay);
  border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* ---------- Steps (How it works) ---------- */
.steps { display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 60rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: .5rem; }
.step .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 16px; font-family: var(--font-head);
  font-weight: 700; font-size: 1.2rem; color: #fff; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--trs-gold), var(--trs-clay));
  box-shadow: 0 8px 20px rgba(193,95,60,.28);
}
.step h3 { margin-bottom: .4rem; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-row, .theme-toggle, .topbar { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: none; }
  .card { box-shadow: none; border-color: #999; break-inside: avoid; }
}


/* ---------- Photographic hero ---------- */
.hero.hero-photo {
  background:
    linear-gradient(180deg, rgba(255,246,231,.62) 0%, rgba(251,247,240,.86) 72%, var(--bg) 100%),
    radial-gradient(120% 80% at 82% -10%, rgba(242,197,114,.35), transparent 55%),
    var(--hero-img) center/cover no-repeat;
}
[data-theme="dark"] .hero.hero-photo {
  background:
    linear-gradient(180deg, rgba(25,21,16,.66) 0%, rgba(25,21,16,.82) 72%, var(--bg) 100%),
    var(--hero-img) center/cover no-repeat;
}

/* ---------- Media band (photo + copy) ---------- */
.media-band { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .media-band { grid-template-columns: 1.05fr .95fr; } .media-band.reverse > .media-figure { order: 2; } }
.media-figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); aspect-ratio: 4/3; }
.media-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Photo strip on section tops ---------- */
.photo-topper { height: clamp(180px, 26vw, 320px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 2.5rem; position: relative; }
.photo-topper img { width: 100%; height: 100%; object-fit: cover; }
.photo-topper::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 55%, rgba(44,38,32,.28)); }


/* ---------- Language switch ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--trs-clay); color: #fff; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  padding: .5rem .95rem; border-radius: 100px; line-height: 1;
  transition: background .15s ease, transform .12s ease;
}
.lang-switch:hover { background: var(--trs-clay-deep); transform: translateY(-1px); }
.lang-switch .lang-globe { font-size: 1rem; }
[data-theme="dark"] .lang-switch { background: var(--trs-gold); color: #241E17; }
[data-theme="dark"] .lang-switch:hover { background: var(--trs-gold-soft); }

/* Hide Google Translate's injected banner/frame + restore top offset */
.goog-te-banner-frame, .skiptranslate iframe, iframe.goog-te-banner-frame { display: none !important; visibility: hidden !important; }
body { top: 0 !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
