/*
Theme Name: Reliant Protection
Theme URI: https://reliantprotectiongroup.com
Author: Reliant Protection Group
Author URI: https://reliantprotectiongroup.com
Description: A clean, app-feel WordPress theme built for Reliant Protection Group, a Texas insurance agency. Form-up-front hero, editable coverage grid, named agent contacts, built-in English/Korean switcher, and Customizer-driven contact details.
Version: 2.4.0
Requires at least: 6.0
Tested up to: 6.6
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: reliant-protection
Tags: business, one-column, two-columns, custom-menu, custom-logo, featured-images, translation-ready, block-styles, wide-blocks
*/

/* ---------------------------------------------------------------
   1. Tokens
--------------------------------------------------------------- */
:root{
  /* Sampled from the Reliant logo: navy #183159, gray #747474. */
  --brand:#183159;
  --brand-dark:#0F2039;
  --brand-mid:#35578C;
  --brand-tint:#E7EDF5;
  --ink:#12233D;
  --ink-2:#1C3560;
  --steel:#5B6B7F;
  --steel-light:#93A0B0;
  --logo-gray:#747474;
  --paper:#F2F4F7;
  --card:#FFFFFF;
  --line:#D5DCE5;
  --line-soft:#E5EAF0;
  --radius:14px;
  --radius-sm:8px;
  --shadow:0 1px 2px rgba(18,35,61,.04), 0 12px 32px rgba(18,35,61,.07);
  --shadow-lift:0 2px 4px rgba(18,35,61,.05), 0 22px 48px rgba(18,35,61,.11);
  --ease:cubic-bezier(.22,.61,.36,1);
}

/* ---------------------------------------------------------------
   2. Base
--------------------------------------------------------------- */
*,*::before,*::after{ box-sizing:border-box; }
html{
  scroll-behavior:smooth;
  /* Anchor targets clear the sticky header instead of landing beneath it. */
  scroll-padding-top:96px;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--brand-dark); text-decoration:none; }
a:hover{ color:var(--brand); }
h1,h2,h3,h4{ margin:0 0 .5em; line-height:1.15; font-weight:600; }
p{ margin:0 0 1em; }
:focus-visible{ outline:2px solid var(--brand); outline-offset:3px; border-radius:4px; }

.serif{ font-family:'Fraunces', Georgia, 'Times New Roman', serif; font-weight:500; letter-spacing:-.01em; }
.mono{ font-family:'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

.wrap{ max-width:1180px; margin:0 auto; padding:0 40px; }
.section{ padding:96px 0; }
.section-tight{ padding:64px 0; }

.screen-reader-text{
  position:absolute !important; 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:-9999px; top:0; z-index:999;
  background:var(--ink); color:#fff; padding:12px 20px; border-radius:0 0 var(--radius-sm) 0;
}
.skip-link:focus{ left:0; color:#fff; }

.eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--brand);
  display:flex; align-items:center; gap:8px; margin-bottom:18px;
}
.eyebrow::before{
  content:""; width:7px; height:7px; border-radius:50%; background:var(--brand-mid); flex:none;
}

/* ---------------------------------------------------------------
   3. Buttons
--------------------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-size:15px; font-weight:500; line-height:1;
  padding:15px 26px; border-radius:var(--radius-sm);
  border:1px solid transparent; cursor:pointer;
  transition:transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary{ background:var(--brand); color:#F7F9FC; }
.btn-primary:hover{ background:var(--brand-dark); color:#fff; transform:translateY(-1px); box-shadow:0 10px 22px rgba(24,49,89,.24); }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover{ background:#fff; color:var(--ink); border-color:var(--steel-light); }
.btn-arrow{ transition:transform .25s var(--ease); }
.btn:hover .btn-arrow{ transform:translateX(3px); }

/* ---------------------------------------------------------------
   4. Header / nav
--------------------------------------------------------------- */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(242,244,247,.86);
  backdrop-filter:saturate(160%) blur(12px);
  border-bottom:1px solid transparent;
  transition:border-color .3s var(--ease), padding .3s var(--ease);
}
.site-header.is-stuck{ border-bottom-color:var(--line-soft); }
.nav{ display:flex; align-items:center; justify-content:space-between; gap:24px; padding:20px 0; transition:padding .3s var(--ease); }
.site-header.is-stuck .nav{ padding:13px 0; }

.brand{ display:flex; align-items:center; gap:11px; color:var(--ink); }
.brand:hover{ color:var(--ink); }
.brand-name{
  font-family:'Fraunces', Georgia, serif; font-weight:600;
  font-size:16px; letter-spacing:.02em; line-height:1.1; text-transform:uppercase;
}
.brand-name span{
  display:block; font-family:'IBM Plex Mono', monospace; font-weight:400;
  font-size:10px; letter-spacing:.18em; color:var(--logo-gray);
}
/*
 * Logo height is a variable so it can be tuned in the Customizer without a CSS
 * edit — the wordmark inside the supplied file is small against its canvas and
 * needs more room than a typical mark. It shrinks a little once the header is
 * stuck so the sticky bar stays shallow while scrolling.
 */
.custom-logo-link{ display:inline-flex; align-items:center; }
.custom-logo{
  max-height:var(--logo-h, 64px); width:auto; height:auto;
  transition:max-height .3s var(--ease);
}
.site-header.is-stuck .custom-logo{ max-height:calc(var(--logo-h, 64px) * .78); }

.nav-menu{ list-style:none; display:flex; align-items:center; gap:30px; margin:0; padding:0; }
.nav-menu a{ color:var(--steel); font-size:15px; position:relative; }
.nav-menu a:hover, .nav-menu .current-menu-item > a{ color:var(--ink); }
.nav-menu a::after{
  content:""; position:absolute; left:0; bottom:-6px; height:1px; width:0; background:var(--brand);
  transition:width .28s var(--ease);
}
.nav-menu a:hover::after, .nav-menu .current-menu-item > a::after{ width:100%; }
.nav-menu .sub-menu{
  list-style:none; margin:0; padding:8px; position:absolute; top:150%; left:-14px; min-width:200px;
  background:var(--card); border:1px solid var(--line-soft); border-radius:var(--radius-sm);
  box-shadow:var(--shadow); opacity:0; visibility:hidden; transition:.22s var(--ease);
}
.nav-menu li{ position:relative; }
.nav-menu li:hover > .sub-menu{ opacity:1; visibility:visible; top:130%; }
.nav-menu .sub-menu a{ display:block; padding:8px 12px; }
.nav-menu .sub-menu a::after{ display:none; }

.nav-actions{ display:flex; align-items:center; gap:18px; }

/*
 * Two published lines — the agency's English number and the Korean-speaking
 * agent's — stacked so the header stays one bar tall. Each row is a tel: link
 * with its language tag, so it is obvious which number reaches whom.
 */
.nav-phones{ display:flex; flex-direction:column; gap:3px; }
.nav-phone{
  display:flex; align-items:center; gap:7px;
  font-family:'IBM Plex Mono', monospace; font-size:13px; color:var(--ink);
  line-height:1.3; white-space:nowrap;
}
.nav-phone:hover{ color:var(--brand); }
.nav-phone-tag{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:34px; padding:1px 6px; border-radius:999px;
  background:var(--brand-tint); color:var(--brand);
  font-size:9.5px; letter-spacing:.08em; text-transform:uppercase; font-weight:500;
}
.nav-phone-tag[lang="ko"]{
  font-family:'Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',sans-serif;
  font-size:10px; letter-spacing:0; text-transform:none;
}
.nav-toggle{
  display:none; background:none; border:1px solid var(--line); border-radius:var(--radius-sm);
  padding:9px 11px; cursor:pointer;
}
.nav-toggle span{ display:block; width:18px; height:1.5px; background:var(--ink); margin:4px 0; transition:.25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-5.5px) rotate(-45deg); }

/* ---------------------------------------------------------------
   5. Hero
--------------------------------------------------------------- */
.hero{ padding:56px 0 60px; position:relative; overflow:hidden; }
.hero::after{
  content:""; position:absolute; right:-180px; top:-140px; width:520px; height:520px; border-radius:50%;
  background:radial-gradient(circle at 30% 30%, var(--brand-tint), transparent 68%); pointer-events:none;
}
.hero-grid{ display:grid; grid-template-columns:1fr .92fr; gap:56px; align-items:start; position:relative; z-index:1; }
.hero h1{
  font-family:'Fraunces', Georgia, serif; font-size:clamp(34px,3.6vw,44px);
  font-weight:500; letter-spacing:-.01em; line-height:1.1; margin:18px 0;
}
/* The emphasised tail of the headline — upright, not italic. */
.hero h1 em{ font-style:normal; color:var(--brand); }
.hero .lead{ font-size:16px; line-height:1.6; color:var(--steel); max-width:440px; margin-bottom:28px; }
.trust-row{ display:flex; flex-direction:column; gap:12px; margin-top:8px; }
.trust-row div{ display:flex; align-items:center; gap:9px; font-size:13.5px; color:var(--steel); }
.trust-row svg{ flex:none; }

/* ---------------------------------------------------------------
   6. Quote card / forms
--------------------------------------------------------------- */
.quote-card{
  background:var(--card); border:1px solid var(--line-soft); border-radius:20px;
  padding:30px; box-shadow:0 30px 70px -30px rgba(24,49,89,.26);
  animation:cardIn .9s var(--ease) .1s both;
}
@keyframes cardIn{
  from{ opacity:0; transform:translateY(20px); }
  to{ opacity:1; transform:translateY(0); }
}
@media (prefers-reduced-motion:reduce){ .quote-card{ animation:none; } }

.quote-card-head{ margin-bottom:20px; }
.quote-card-head .label{
  font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:var(--steel-light);
  letter-spacing:.08em; text-transform:uppercase;
}
.quote-card-head h3{ font-size:19px; font-weight:600; margin:6px 0 0; font-family:'Inter', sans-serif; }
.quote-card-head p{ font-size:13px; color:var(--steel); margin:5px 0 0; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
.field{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.field.full{ grid-column:1 / -1; }
.field label{ font-size:12.5px; font-weight:500; color:var(--steel); letter-spacing:.01em; }
/*
 * 16px is deliberate: iOS Safari zooms the whole page when a focused input has
 * text under 16px, which throws the layout off and cannot be dismissed.
 */
.field input, .field select, .field textarea{
  font-family:inherit; font-size:16px; color:var(--ink);
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-sm);
  padding:12px 14px; width:100%; max-width:100%;
  transition:border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea{ min-height:110px; resize:vertical; }
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-tint); }
.field input::placeholder, .field textarea::placeholder{ color:#B4BAC0; }
/*
 * Radio and checkbox groups rendered as tappable pills. The native control is
 * kept in the DOM and focusable — only visually replaced — so keyboard and
 * screen-reader behaviour is unchanged and the label text stays selectable.
 */
.choice-set{ border:0; margin:0; padding:0; min-width:0; display:block; }
.choice-set legend{
  font-size:12.5px; font-weight:500; color:var(--steel); letter-spacing:.01em;
  padding:0; margin-bottom:8px;
}
.choices{ display:flex; flex-wrap:wrap; gap:8px; }
.choice{ position:relative; display:inline-flex; }
.choice input{
  position:absolute; inset:0; width:100%; height:100%;
  opacity:0; margin:0; cursor:pointer;
}
.choice span{
  display:inline-flex; align-items:center; justify-content:center;
  padding:9px 14px; border-radius:999px;
  border:1px solid var(--line); background:var(--paper);
  font-size:13.5px; color:var(--steel); line-height:1.3;
  transition:border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.choice:hover span{ border-color:var(--steel-light); color:var(--ink); }
.choice input:checked + span{
  background:var(--brand-tint); border-color:var(--brand); color:var(--brand);
  font-weight:500;
}
.choice input:focus-visible + span{ outline:2px solid var(--brand); outline-offset:2px; }

/*
 * Reassurance under the submit button. Kept as two short lines directly above
 * the consent notice so the last thing read before sending is what the agency
 * promises, not the legal wording.
 */
.quote-assure{
  margin-top:16px; padding-top:14px; border-top:1px solid var(--line-soft);
  text-align:center;
}
.quote-secure{
  display:flex; align-items:center; justify-content:center; gap:6px;
  margin:0; font-size:12.5px; font-weight:500; color:var(--brand);
}
.quote-secure svg{ flex:none; }
.quote-promise{
  margin:5px 0 0; font-size:12px; color:var(--steel);
  line-height:1.5;
}

.rpg-hp{ position:absolute; left:-9999px; opacity:0; }
.rpg-turnstile{ margin:4px 0 18px; min-height:65px; }
.rpg-turnstile:empty{ min-height:0; margin:0; }
.quote-submit{ width:100%; justify-content:center; margin-top:6px; }
.quote-fine{ font-size:11.5px; color:var(--steel-light); margin:14px 0 0; line-height:1.5; text-align:center; }

.form-notice{
  border-radius:var(--radius-sm); padding:14px 16px; font-size:14.5px; margin-bottom:18px;
  border:1px solid var(--brand); background:var(--brand-tint); color:var(--brand-dark);
}
.form-notice.is-error{ border-color:#C4573F; background:#FBEDE9; color:#8E3423; }

/* ---------------------------------------------------------------
   7. Coverage grid
--------------------------------------------------------------- */
.section-head{ max-width:560px; margin-bottom:56px; }
.section-head h2{ font-family:'Fraunces', Georgia, serif; font-size:clamp(27px,3vw,36px); font-weight:500; letter-spacing:-.01em; margin-top:16px; }
.section-head p{ color:var(--steel); font-size:15.5px; line-height:1.6; margin:14px 0 0; }

/* Cards are separate boxes with their own border and shadow. The previous
   1px-gap panel put white cards behind near-white hairlines on a near-white
   page, so the individual boxes were effectively invisible. */
.cov-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:16px;
}
.cov-card{
  position:relative;
  background:var(--card); padding:32px 28px;
  border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow);
  transition:border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
/* Brand hairline along the top edge, so each card has a clear starting line. */
.cov-card::before{
  content:''; position:absolute; top:-1px; left:-1px; right:-1px; height:3px;
  background:var(--brand); border-radius:var(--radius) var(--radius) 0 0;
  opacity:.85;
}
.cov-card:hover{
  border-color:var(--brand-mid);
  box-shadow:var(--shadow-lift);
  transform:translateY(-3px);
}
.cov-icon{ width:38px; height:38px; margin-bottom:20px; }
.cov-card h3{ font-size:17px; font-weight:600; margin-bottom:10px; }
.cov-card p{ color:var(--steel); font-size:14px; line-height:1.55; margin:0; }
.cov-link{ display:inline-flex; align-items:center; gap:7px; margin-top:16px; font-size:14px; font-weight:500; }


/* ---------------------------------------------------------------
   7b. Feature strip
--------------------------------------------------------------- */
.strip{ border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); padding:40px 0; }
.strip-grid{ display:grid; grid-template-columns:repeat(var(--strip-cols,4),1fr); }
.strip-item{ text-align:center; border-left:1px solid var(--line-soft); padding:0 22px; }
.strip-item:first-child{ border-left:none; }
.strip-icon{ width:28px; height:28px; margin:0 auto 12px; display:block; }
.strip-title{ font-size:15px; font-weight:600; color:var(--ink); line-height:1.3; }
.strip-label{ font-size:12.5px; color:var(--steel); margin-top:6px; line-height:1.5; }

/* ---------------------------------------------------------------
   10. CTA
--------------------------------------------------------------- */
.cta-section{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start; }
.cta-copy h2{ font-family:'Fraunces', Georgia, serif; font-size:clamp(28px,3.2vw,40px); font-weight:500; }
.cta-copy p{ color:var(--steel); font-size:17px; }
.cta-mini-trust{ display:flex; flex-direction:column; gap:10px; margin-top:26px; font-size:14.5px; color:var(--ink-2); }
.cta-mini-trust div{ display:flex; align-items:center; gap:10px; }
.cta-mini-trust i{ width:6px; height:6px; border-radius:50%; background:var(--brand); flex:none; }

/* ---------------------------------------------------------------
   11. Page + post content
--------------------------------------------------------------- */
.page-hero{ padding:64px 0 8px; }
.page-hero h1{ font-family:'Fraunces', Georgia, serif; font-size:clamp(32px,4vw,50px); font-weight:500; letter-spacing:-.02em; }
.page-hero p{ color:var(--steel); font-size:17px; max-width:40em; margin:0; }

.entry{ background:var(--card); border:1px solid var(--line-soft); border-radius:var(--radius); padding:48px; margin-bottom:28px; }
.entry-content{ font-size:16.5px; }
.entry-content h2{ font-family:'Fraunces', Georgia, serif; font-size:28px; font-weight:500; margin-top:1.6em; }
.entry-content h3{ font-family:'Fraunces', Georgia, serif; font-size:22px; font-weight:500; margin-top:1.5em; }
.entry-content a{ text-decoration:underline; text-underline-offset:3px; }
.entry-content ul, .entry-content ol{ padding-left:1.2em; }
.entry-content li{ margin-bottom:.5em; }
.entry-content blockquote{
  border-left:2px solid var(--brand); margin:1.6em 0; padding:4px 0 4px 22px;
  font-family:'Fraunces', Georgia, serif; font-size:19px; color:var(--ink-2);
}
.entry-content img, .entry-content .wp-caption{ border-radius:var(--radius-sm); }
.entry-content table{ width:100%; border-collapse:collapse; }
.entry-content th, .entry-content td{ border:1px solid var(--line-soft); padding:10px 12px; text-align:left; }
.entry-meta{ font-family:'IBM Plex Mono', monospace; font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--steel); margin-bottom:14px; }
.entry-thumb{ border-radius:var(--radius-sm); margin-bottom:26px; overflow:hidden; }

.card-list{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.post-card{
  background:var(--card); border:1px solid var(--line-soft); border-radius:var(--radius); overflow:hidden;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-lift); }
.post-card .pc-body{ padding:24px; }
.post-card h2{ font-family:'Fraunces', Georgia, serif; font-size:20px; font-weight:500; margin-bottom:8px; }
.post-card h2 a{ color:var(--ink); }
.post-card p{ color:var(--steel); font-size:15px; margin:0; }

.pagination{ display:flex; gap:8px; margin-top:36px; flex-wrap:wrap; }
.pagination .page-numbers{
  display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:40px; padding:0 12px;
  border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--card); color:var(--ink); font-size:14px;
}
.pagination .page-numbers.current{ background:var(--ink); color:#fff; border-color:var(--ink); }

.alignwide{ max-width:1180px; }
.alignfull{ max-width:100%; }
.aligncenter{ margin-left:auto; margin-right:auto; }
.alignleft{ float:left; margin:0 24px 18px 0; }
.alignright{ float:right; margin:0 0 18px 24px; }
.wp-caption-text, .wp-block-image figcaption{ font-size:13px; color:var(--steel); }

/* ---------------------------------------------------------------
   12. Footer
--------------------------------------------------------------- */
.site-footer{ background:var(--card); border-top:1px solid var(--line-soft); padding:64px 0 34px; }
.foot-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:44px; }
.foot-brand p{ color:var(--steel); font-size:14.5px; max-width:30em; margin-top:16px; }
.foot-col h4{
  font-family:'IBM Plex Mono', monospace; font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--steel); margin-bottom:16px; font-weight:500;
}
.foot-col a, .foot-col li, .foot-col span{ display:block; color:var(--ink-2); font-size:14.5px; margin-bottom:10px; }
.foot-col ul{ list-style:none; margin:0; padding:0; }
/* Licence and NPN sit under the agent they belong to, quieter than the links. */
.foot-col .foot-lic{
  font-family:'IBM Plex Mono', monospace; font-size:11.5px;
  color:var(--steel-light); margin-top:-4px; margin-bottom:16px;
}
.foot-bottom{
  display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap;
  border-top:1px solid var(--line-soft); margin-top:44px; padding-top:22px;
  font-size:12.5px; color:var(--steel-light);
}

/* ---------------------------------------------------------------
   13. Reveal animation
--------------------------------------------------------------- */
/*
 * Content is visible by default. The hidden-then-revealed state is applied only
 * once the .js class is set on <html>, so a blocked, failed, or still-loading
 * script leaves the page fully readable instead of blank.
 */
[data-reveal]{ opacity:1; transform:none; }
.js [data-reveal]{ opacity:0; transform:translateY(16px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-visible{ opacity:1; transform:none; }

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
  .js [data-reveal]{ opacity:1; transform:none; }
}

/* ---------------------------------------------------------------
   14. Responsive
--------------------------------------------------------------- */
@media (max-width:1024px){
  .wrap{ padding:0 28px; }
  /* The bar carries more now — a bigger logo and two lines — so close it up. */
  .nav{ gap:16px; }
  .nav-menu{ gap:20px; }
  .nav-actions{ gap:12px; }
  .nav-phone{ font-size:12px; }
  .custom-logo{ max-height:calc(var(--logo-h, 64px) * .85); }
  .hero-grid, .cta-section{ grid-template-columns:1fr; gap:44px; }
  .cov-grid, .card-list{ grid-template-columns:repeat(2,1fr); }
  .strip-grid{ grid-template-columns:repeat(2,1fr); row-gap:28px; }
  .strip-item:nth-child(3){ border-left:none; }
  .foot-grid{ grid-template-columns:1fr 1fr; gap:34px; }
  .entry{ padding:34px; }
  .contact-band, .contact-grid{ grid-template-columns:1fr; gap:36px; }
  .contact-band{ padding:36px 28px; }
}

@media (max-width:768px){
  html{ scroll-padding-top:84px; }
  .section{ padding:56px 0; }

  /* Header: hamburger sits at the right-hand end of the bar, after the
     language switcher and the quote button. */
  .nav{ gap:12px; padding:16px 0; }
  .nav-toggle{ display:block; order:4; padding:11px 12px; }
  /*
   * Two numbers will not fit beside the logo, switcher, and hamburger on a
   * phone. Only the first line is kept — which is the English number normally
   * and the Korean-speaking agent's on the Korean version, so a visitor always
   * sees the line meant for them. Both remain in the footer and closing band.
   */
  .nav-phone{ font-size:12px; }
  .nav-phones .nav-phone + .nav-phone{ display:none; }
  .nav-menu{
    position:absolute; top:100%; left:0; right:0; flex-direction:column; align-items:stretch; gap:0;
    background:var(--card); border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft);
    padding:8px 28px 18px; display:none;
    max-height:calc(100vh - 72px); overflow-y:auto;
  }
  .nav-menu.is-open{ display:flex; }
  .nav-menu a{ padding:14px 0; display:block; font-size:16px; }
  .nav-menu a::after{ display:none; }
  .nav-menu .sub-menu{ position:static; opacity:1; visibility:visible; box-shadow:none; border:0; padding:0 0 0 14px; }
  .nav-actions{ order:3; }

  .cov-grid, .card-list{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }

  /* Feature strip: vertical rules stop working once items wrap, so the
     items stack with their own spacing instead. */
  .strip-grid{ grid-template-columns:1fr; row-gap:0; }
  .strip-item{
    border-left:none; border-top:1px solid var(--line-soft);
    padding:22px 0 0; text-align:left;
    display:grid; grid-template-columns:28px 1fr; column-gap:16px; row-gap:2px;
  }
  .strip-item:first-child{ border-top:none; padding-top:0; }
  .strip-icon{ margin:2px 0 0; grid-row:1 / span 2; }
  .strip-title{ align-self:center; }
  .strip-label{ margin-top:0; grid-column:2; }

  /* Contact rows read better stacked than squeezed into two columns. */
  .cb-row{ flex-direction:column; align-items:flex-start; gap:4px; }
  .cb-v{ text-align:left; }

  .cov-grid-two{ grid-template-columns:1fr; }
  .agent-block-grid .agent-list{ grid-template-columns:1fr; }
  .agent-block-grid .agent{ padding:24px 22px; }
}

@media (max-width:520px){
  .wrap{ padding:0 20px; }
  .section{ padding:48px 0; }
  .hero{ padding:36px 0 44px; }
  .hero h1{ font-size:clamp(29px,8vw,36px); }
  .quote-card{ padding:22px; border-radius:16px; }
  .entry{ padding:24px; }
  .foot-grid{ grid-template-columns:1fr; }
  .cov-card{ padding:26px 22px; }
  .contact-band{ padding:30px 22px; }
  .agent-block-card{ padding:22px; }
  .agent-block-grid .agent{ padding:22px 20px; gap:14px; }
  .agent-avatar{ width:40px; height:40px; font-size:14px; }

  /* Full-width buttons are easier to hit than side-by-side ones at this size. */
  .cb-actions{ flex-direction:column; align-items:stretch; }
  .cb-actions .btn{ width:100%; justify-content:center; }
  .quote-submit{ width:100%; justify-content:center; }

  .foot-bottom{ flex-direction:column; align-items:flex-start; gap:10px; }
}

/* Wide content should scroll rather than force the whole page sideways. */
.entry-content table{ display:block; overflow-x:auto; max-width:100%; }
.entry-content pre{ overflow-x:auto; max-width:100%; }
.entry-content img{ height:auto; }

/* ---------------------------------------------------------------
   15. Language switcher + Korean typography
--------------------------------------------------------------- */
.lang-switch{
  display:inline-flex; align-items:center;
  border:1px solid var(--line); border-radius:999px; background:var(--card);
  padding:2px; gap:2px; flex:none;
}
.lang-switch a{
  display:inline-flex; align-items:center; justify-content:center;
  font-family:'IBM Plex Mono', monospace; font-size:11.5px; letter-spacing:.06em;
  color:var(--steel); padding:6px 12px; border-radius:999px; line-height:1;
  transition:background .22s var(--ease), color .22s var(--ease);
  white-space:nowrap;
}
.lang-switch a:hover{ color:var(--ink); background:var(--paper); }
.lang-switch a.is-active{ background:var(--ink); color:#fff; }
.lang-switch a[lang="ko"]{ font-family:'Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',sans-serif; font-size:12px; }

.lang-switch-footer{ margin-top:6px; }

/* The switcher is two small pills; on touch they need real hit area. */
@media (max-width:768px){
  .lang-switch a{ padding:11px 14px; font-size:12.5px; }
  .lang-switch a[lang="ko"]{ font-size:13px; }
}

/* Korean pages: Latin faces have no Hangul, so swap the stack. */
.lang-ko body, body.lang-ko{
  font-family:'Inter','Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',sans-serif;
  word-break:keep-all; /* wrap on word boundaries, not mid-syllable */
}
body.lang-ko .serif,
body.lang-ko h1, body.lang-ko h2, body.lang-ko h3, body.lang-ko h4,
body.lang-ko .brand-name,
body.lang-ko .entry-content blockquote{
  font-family:'Fraunces','Noto Serif KR',Georgia,serif;
  letter-spacing:0;
}
body.lang-ko .eyebrow, body.lang-ko .foot-col h4, body.lang-ko .entry-meta{
  font-family:'IBM Plex Mono','Noto Sans KR',monospace;
  letter-spacing:.06em;
}
/* Hangul has a taller optical body than Latin: more leading, no tight tracking. */
body.lang-ko{ line-height:1.75; }
body.lang-ko .hero h1{ line-height:1.35; letter-spacing:-.005em; }
body.lang-ko .section-head h2,
body.lang-ko .cb-copy h2,
body.lang-ko .page-hero h1{ line-height:1.35; }
body.lang-ko .hero .lead,
body.lang-ko .section-head p,
body.lang-ko .cov-card p,
body.lang-ko .step p{ line-height:1.75; }
body.lang-ko .cov-card h3,
body.lang-ko .step h3,
body.lang-ko .quote-card-head h3{ line-height:1.45; }
body.lang-ko .btn, body.lang-ko .field label, body.lang-ko .cb-k{ letter-spacing:0; }
/* Korean labels run longer than English — let the contact rows breathe. */
body.lang-ko .cb-row{ gap:20px; }
body.lang-ko .strip-label{ line-height:1.5; }

@media (max-width:768px){
  .lang-switch{ order:-1; }
  .nav-actions{ gap:10px; }
  .nav-actions .btn{ padding:12px 16px; font-size:14px; }
}

/* ---------------------------------------------------------------
   16. Placeholder flags, contact band, contact page
--------------------------------------------------------------- */
.sample-flag{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'IBM Plex Mono', monospace; font-size:10.5px; letter-spacing:.09em; text-transform:uppercase;
  color:#9A5B3D; background:#FBF3EC; border:1px dashed #D8B79C;
  border-radius:999px; padding:6px 12px; margin-top:14px;
}
.sample-flag i{ width:5px; height:5px; border-radius:50%; background:#C4753F; flex:none; }

/* Placeholder figures get a dashed underline so they read as unfinished. */

/* Empty coverage slots during review. */
.cov-card.is-tbd{
  background:#FAFAF8; border-style:dashed; border-color:var(--line);
  box-shadow:none;
}
.cov-card.is-tbd::before{ display:none; }
.cov-card.is-tbd:hover{
  transform:none; background:#FAFAF8;
  border-color:var(--line); box-shadow:none;
}
.cov-card.is-tbd h3{ color:var(--steel); font-weight:500; }
.cov-card.is-tbd p{ color:var(--steel); font-style:italic; }
.cov-card .ph-x{
  width:34px; height:34px; margin-bottom:20px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%; border:1px dashed var(--steel-light);
  color:var(--steel-light); font-size:13px;
}

/* Closing contact band — not a second form. */
.contact-band{
  display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:start;
  background:var(--card); border:1px solid var(--line-soft); border-radius:16px;
  padding:52px 48px;
}
.cb-copy h2{ font-family:'Fraunces', Georgia, serif; font-size:clamp(26px,3vw,34px); font-weight:500; }
.cb-copy p{ color:var(--steel); font-size:15.5px; max-width:38em; }
.cb-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:26px; }
.cb-row{
  display:flex; justify-content:space-between; align-items:baseline; gap:16px;
  padding:13px 0; border-top:1px solid var(--line-soft);
}
.cb-row:first-child{ border-top:none; padding-top:0; }
.cb-k{
  font-family:'IBM Plex Mono', monospace; font-size:11px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--steel-light); flex:none;
}
.cb-v{ font-size:14.5px; color:var(--ink); text-align:right; word-break:break-word; }
.cb-details .cta-mini-trust{ margin-top:22px; padding-top:20px; border-top:1px solid var(--line-soft); }

/* Page featured image */
.page-figure{
  border-radius:var(--radius); overflow:hidden;
  border:1px solid var(--line-soft); margin-bottom:36px;
}

/* Contact page */.contact-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:56px; align-items:start; }
.contact-list{
  background:var(--card); border:1px solid var(--line-soft); border-radius:var(--radius); padding:30px;
}

/* Named agents */
.agent-block-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:26px 30px; margin-top:20px;
}
.agent-block-inline{
  margin-top:22px; padding-top:20px; border-top:1px solid var(--line-soft);
}
.agent-block-head{
  font-family:'IBM Plex Mono', monospace; font-size:11px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--steel-light);
  margin:0 0 16px; font-weight:500;
}
.agent{ margin-bottom:18px; }
.agent:last-child{ margin-bottom:0; }
.agent-name{
  font-size:15.5px; font-weight:600; color:var(--ink); margin-bottom:4px;
}
.agent-title{
  display:block; font-size:13px; font-weight:400; color:var(--steel); margin-top:1px;
}
.agent-link{
  display:block; font-size:14px; color:var(--ink-2); line-height:1.5;
  word-break:break-word; overflow-wrap:anywhere;
}
.agent-link:hover{ color:var(--brand); text-decoration:underline; }
.agent-phone{ font-family:'IBM Plex Mono', monospace; font-size:13.5px; }

/* Phone and email are the primary action here — on touch they get real
   hit area and the number is sized to be tapped, not just read. */
@media (hover:none){
  .agent-link{ padding:7px 0; }
  .agent-phone{ font-size:15px; font-weight:500; color:var(--brand); }
}
.foot-agent{
  font-weight:600; color:var(--ink); margin-top:14px; margin-bottom:4px;
}
.foot-col .foot-agent:first-of-type{ margin-top:0; }

/* Homepage agent band */
.agent-block-grid .agent-list{
  display:grid; grid-template-columns:repeat(2,1fr); gap:16px;
}
.agent-block-grid .agent{
  display:flex; gap:18px; align-items:flex-start; margin:0;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:28px 26px;
  transition:border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.agent-block-grid .agent:hover{
  border-color:var(--brand-mid); box-shadow:var(--shadow-lift);
}
.agent-avatar{
  flex:none; width:46px; height:46px; border-radius:50%;
  background:var(--brand-tint); color:var(--brand);
  display:flex; align-items:center; justify-content:center;
  font-size:15px; font-weight:600; letter-spacing:.02em;
}
.agent-body{ min-width:0; }
.agent-block-grid .agent-name{ font-size:16.5px; margin-bottom:8px; }
.agent-block-grid .agent-link{ margin-bottom:2px; }
.agent-meta{
  margin-top:12px; padding-top:11px; border-top:1px solid var(--line-soft);
  display:flex; flex-wrap:wrap; gap:8px; align-items:center;
}
.agent-tag{
  font-size:12.5px; color:var(--brand); background:var(--brand-tint);
  border-radius:999px; padding:3px 11px;
}
.agent-lic{
  font-family:'IBM Plex Mono', monospace; font-size:11.5px;
  color:var(--steel); letter-spacing:.02em;
}
/* Coverage group headings (commercial / personal) */
.cov-group-head{ margin:0 0 20px; }
.cov-group-head-second{ margin-top:56px; }
.cov-group-head h3{
  font-family:'Fraunces', Georgia, serif; font-size:21px; font-weight:500; margin:0 0 6px;
}
.cov-group-head p{ color:var(--steel); font-size:14.5px; margin:0; }
.cov-grid-two{ grid-template-columns:repeat(2,1fr); }
