/* ============================================================
   Premier Mediation Group — Shared Styles
   Palette: Navy (brand) + Mauve/Blush (resolution motif)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --navy: #0F2440;
  --navy-deep: #0A1B31;
  --navy-soft: #24405F;
  --blue: #4FA3D1;
  --blue-light: #6FBEE8;
  --blue-deep: #1F5C82;
  --mauve: #6FBEE8;
  --mauve-deep: #1F5C82;
  --blush: #BFE4F6;
  --blush-light: #EAF6FC;
  --cream: #FBF8F6;
  --ink: #201F26;
  --ink-soft: #5B5A63;
  --white: #FFFFFF;
  --border: rgba(15,36,64,0.10);

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family: var(--serif); font-weight:600; margin:0 0 .5em; color: var(--navy); letter-spacing: -0.01em; }
p{ margin:0 0 1em; }
.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 32px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Header / Nav ---------- */
.site-header{
  background: var(--navy-deep);
  position: sticky; top:0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding-top: 14px; padding-bottom: 14px;
  gap: 24px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height: 46px; width:auto; }
.brand-text{ font-family: var(--serif); color:var(--white); font-size: 1.05rem; line-height:1.15; }
.brand-text small{ display:block; font-family: var(--sans); font-size:.62rem; letter-spacing:.14em; color: var(--blue); font-weight:600; text-transform:uppercase; margin-top:3px; }

nav.main-nav{ display:flex; align-items:center; gap: 28px; }
nav.main-nav a{
  color: rgba(255,255,255,0.82); font-size:.88rem; font-weight:500;
  letter-spacing:.02em; padding: 6px 0; position:relative;
}
nav.main-nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px;
  background: var(--blue); transform: scaleX(0); transform-origin:left;
  transition: transform .25s ease;
}
nav.main-nav a:hover::after, nav.main-nav a.active::after{ transform: scaleX(1); }
nav.main-nav a.active{ color:var(--white); }
.nav-cta{
  background: var(--mauve); color:var(--navy) !important; padding:10px 20px !important;
  border-radius: 3px; font-weight:600 !important;
}
.nav-cta::after{ display:none; }
.nav-cta:hover{ background: var(--mauve-deep); color:var(--white) !important; }
.nav-toggle{ display:none; }

@media (max-width: 860px){
  nav.main-nav{ display:none; }
  .nav-toggle{ display:block; background:none; border:none; color:var(--white); font-size:1rem; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding: 14px 28px; border-radius: 3px; font-weight:600; font-size:.92rem;
  letter-spacing:.01em; border: 1px solid transparent; cursor:pointer;
  transition: all .2s ease;
}
.btn-primary{ background: var(--mauve); color: var(--navy); }
.btn-primary:hover{ background: var(--mauve-deep); color: var(--white); }
.btn-outline{ border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover{ background: rgba(255,255,255,0.1); }
.btn-navy{ background: var(--blue-deep); color:var(--white); }
.btn-navy:hover{ background: var(--navy-deep); }
.btn:focus-visible{ outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow{
  font-size:.72rem; letter-spacing:.18em; text-transform:uppercase;
  color: var(--mauve-deep); font-weight:700; margin-bottom:14px; display:block;
}
.eyebrow.on-dark{ color: var(--blue); }

/* ---------- Hero ---------- */
.hero{
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 62%, var(--navy-soft) 100%);
  color: var(--white); position:relative; overflow:hidden;
}
.hero .wrap{
  display:grid; grid-template-columns: 1.1fr .9fr; gap:56px; align-items:center;
  padding-top: 96px; padding-bottom: 96px;
}
.hero h1{ color:var(--white); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height:1.08; margin-bottom:22px; }
.hero p.lead{ color: rgba(255,255,255,0.82); font-size:1.1rem; max-width:46ch; margin-bottom: 30px; }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }
.hero-photo{ position:relative; text-align:center; }
.hero-photo .frame{
  display:inline-block; max-width:100%;
  border-radius:4px; overflow:hidden; box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}
.hero-photo .frame img{ display:block; max-width:100%; height:auto; width:auto; }
.hero-tri{
  position:absolute; width:0; height:0;
}
.tri-deco{
  position:absolute; opacity:.85;
}

/* Triangle tessellation background accent (used sparingly) */
.tri-strip{ display:flex; height:14px; }
.tri-strip span{ flex:1; height:100%; background: var(--blush); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tri-strip span:nth-child(even){ background: var(--mauve); clip-path: polygon(0 0, 100% 0, 50% 100%); align-self:flex-start; }

/* ---------- Sections ---------- */
section{ padding: 88px 0; }
.section-tight{ padding: 64px 0; }
.section-navy{ background: var(--navy); color: var(--white); }
.section-navy h2{ color: var(--white); }
.section-blush{ background: var(--blush-light); }
.center{ text-align:center; }
.section-head{ max-width: 640px; margin: 0 auto 48px; }
.section-head.left{ margin: 0 0 48px; }
h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); }
.text-mauve{ color: var(--mauve-deep); }

/* ---------- Cards / grid ---------- */
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items:center; }
.grid-2 img{ display:block; max-width:100%; width:auto; height:auto; margin:0 auto; border-radius:6px; }
@media (max-width: 860px){ .grid-3{ grid-template-columns:1fr; } .grid-2{ grid-template-columns:1fr; } }

.card{
  background: var(--white); border:1px solid var(--border); border-radius: 4px;
  padding: 30px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,36,64,0.10); }
.card .icon-tri{
  width:0; height:0; border-left:14px solid transparent; border-right:14px solid transparent;
  border-bottom: 24px solid var(--blue-light); margin-bottom:18px;
}
.grid-3 .card:nth-child(even) .icon-tri{ border-bottom-color: var(--blue-deep); }
.card h3{ font-size:1.15rem; margin-bottom:10px; }
.card p{ color: var(--ink-soft); font-size:.95rem; margin-bottom:0; }

/* ---------- Callout bar ---------- */
.callout{
  border-radius:6px; padding: 26px 32px; display:flex; align-items:center; justify-content:space-between;
  gap:20px; flex-wrap:wrap;
}
.callout-blue{ background: var(--blue-light); color: var(--blue-deep); }
.callout-mauve{ background: var(--blush); color: var(--blue-deep); }
.callout strong{ font-family: var(--serif); font-size:1.05rem; }

/* ---------- Photo grid ---------- */
.photo-strip{ display:grid; grid-template-columns: repeat(4, 1fr); gap:18px; }
.photo-strip img{ border-radius:4px; aspect-ratio: 4/5; object-fit:cover; width:100%; height:100%; }
@media (max-width:760px){ .photo-strip{ grid-template-columns: repeat(2,1fr); } }

/* ---------- Triangle service grid (signature element) ---------- */
.tri-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  max-width: 980px; margin: 0 auto;
}
.tri-cell{
  position:relative; aspect-ratio: 1 / 0.62;
  display:flex; align-items:center; justify-content:center;
  padding: 18px 16px; text-align:center;
}
.tri-cell.up{ clip-path: polygon(50% 4%, 96% 96%, 4% 96%); }
.tri-cell.down{ clip-path: polygon(4% 4%, 96% 4%, 50% 96%); }
.tri-cell.fill-mauve{ background: var(--mauve); color: var(--white); }
.tri-cell.fill-blush{ background: var(--blush); color: var(--navy); }
.tri-cell.fill-navy{ background: var(--navy); color: var(--white); }
.tri-cell.fill-blue{ background: var(--blue); color: var(--navy-deep); }
.tri-cell .tri-num{ font-family: var(--serif); font-size:1.6rem; opacity:.5; position:absolute; top:14px; }
.tri-cell.up .tri-num{ top:22%; }
.tri-cell.down .tri-num{ top:8%; }
.tri-cell h4{ font-size:.86rem; color:inherit; margin:0; line-height:1.3; max-width:15ch; font-family: var(--sans); font-weight:700; letter-spacing:.01em; }

@media (max-width: 760px){
  .tri-grid{ grid-template-columns: repeat(2,1fr); }
}

/* ---------- Diamond mosaic (services) ---------- */
.diamond-mosaic{ display:flex; flex-direction:column; align-items:center; margin: 0 auto; }
.diamond-row{ display:flex; gap:58px; }
.diamond-row:not(:first-child){ margin-top:-41px; }
.diamond{
  width:140px; height:140px; flex:0 0 auto;
  transform: rotate(45deg);
  display:flex; align-items:center; justify-content:center;
  border-radius: 6px;
}
.diamond.tone-a{ background: var(--blue-light); }
.diamond.tone-b{ background: var(--blue-deep); }
.diamond span{
  transform: rotate(-45deg);
  text-align:center; font-size:.8rem; font-weight:700; line-height:1.28;
  max-width:92px; letter-spacing:.01em;
  color: var(--white);
}

@media (max-width: 980px){
  .diamond-mosaic{ display:grid; grid-template-columns: repeat(3,1fr); gap:16px; }
  .diamond-row{ display:contents; }
  .diamond-row:not(:first-child){ margin-top:0; }
  .diamond{ width:100%; height:auto; aspect-ratio:1/1; transform:none; border-radius:8px; }
  .diamond span{ transform:none; max-width:none; }
}
@media (max-width:560px){
  .diamond-mosaic{ grid-template-columns: repeat(2,1fr); }
}

/* ---------- Bio / About ---------- */
.bio-block{ margin-bottom: 28px; }
.bio-block .k{ font-family: var(--serif); font-size:1.2rem; color: var(--mauve-deep); margin-bottom:8px; }
.credential-line{
  display:inline-flex; align-items:center; gap:10px; margin-top: 6px;
  font-size:.85rem; color: var(--navy); background: var(--blush-light);
  padding: 8px 16px; border-radius: 30px; font-weight:600;
}

/* ---------- Forms ---------- */
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:20px; }
.form-grid .full{ grid-column: 1 / -1; }
label{ display:block; font-size:.82rem; font-weight:600; margin-bottom:6px; color: var(--navy); }
input, select, textarea{
  width:100%; padding: 12px 14px; border:1px solid var(--border); border-radius:3px;
  font-family: var(--sans); font-size:.95rem; background: var(--white); color:var(--ink);
}
input:focus, select:focus, textarea:focus{ outline: 2px solid var(--blue); outline-offset:1px; }
@media (max-width:700px){ .form-grid{ grid-template-columns: 1fr; } }

/* ---------- Contact info strip ---------- */
.info-tiles{ display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.info-tile{ background:var(--white); border:1px solid var(--border); border-radius:4px; padding:26px; }
.info-tile .eyebrow{ margin-bottom:8px; }
.info-tile a{ color: var(--navy); font-weight:600; }
.info-tile a:hover{ color: var(--mauve-deep); }
@media (max-width:760px){ .info-tiles{ grid-template-columns:1fr; } }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy-deep); color: rgba(255,255,255,0.75); padding: 44px 0 28px; }
.site-footer .wrap{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:24px; }
.site-footer .foot-brand{ display:flex; align-items:center; gap:12px; }
.site-footer .foot-brand img{ height:34px; }
.footer-links{ display:flex; gap:22px; flex-wrap:wrap; font-size:.85rem; }
.footer-links a:hover{ color: var(--blue); }
.footer-meta{ font-size:.8rem; margin-top: 22px; opacity:.65; border-top:1px solid rgba(255,255,255,0.1); padding-top:18px; }
.footer-meta .wrap{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; }

/* ---------- Booking ---------- */
.booking-box{
  background: var(--white); border:1px solid var(--border); border-radius:8px;
  padding: 48px; text-align:center; max-width: 640px; margin: 0 auto;
}
.booking-box .tri-mark{
  width:0; height:0; margin: 0 auto 22px;
  border-left:18px solid transparent; border-right:18px solid transparent; border-bottom: 30px solid var(--mauve);
}

/* ---------- Misc ---------- */
.badge-soon{
  display:inline-block; background: var(--blue); color: var(--navy-deep); font-weight:700;
  font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; padding:4px 10px; border-radius:20px;
  margin-left:10px; vertical-align:middle;
}
.divider-tri{ display:flex; justify-content:center; gap:6px; margin: 8px 0 0; }
.divider-tri span{ width:0; height:0; border-left:6px solid transparent; border-right:6px solid transparent; border-bottom:10px solid var(--mauve); }
.divider-tri span:nth-child(even){ border-bottom:none; border-top:10px solid var(--blush); transform: translateY(4px); }
