/*
Theme Name: FMS Sharon Lakes
Theme URI: https://example.com/
Author: Woody's Etc LLC
Description: Bilingual FMS website with SMS consent and opt-out information for RingCentral TCR registration.
Version: 1.0.0
Text Domain: fms-sharon-lakes
*/
:root {
  --navy: #071b35;
  --navy-2: #0e2d52;
  --gold: #d8aa49;
  --cream: #faf8f2;
  --white: #ffffff;
  --ink: #172033;
  --muted: #5f6b7a;
  --line: #dfe4ea;
  --green: #166534;
  --red: #991b1b;
  --shadow: 0 18px 50px rgba(7, 27, 53, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 3px 18px rgba(0,0,0,.18);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 88px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.logo-link img { width: min(390px, 60vw); max-height: 68px; object-fit: contain; object-position: left center; }
.lang-toggle {
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  display: inline-flex;
  padding: 4px;
  background: rgba(255,255,255,.08);
  white-space: nowrap;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--white);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}
.lang-toggle button.active { background: var(--gold); color: var(--navy); }

.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(216,170,73,.22), transparent 28%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 74px 24px 82px;
}
.hero-inner, .container { max-width: 1120px; margin: 0 auto; }
.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; font-weight: 800; }
h1 { font-size: clamp(2.35rem, 5vw, 4.3rem); line-height: 1.06; margin: 12px 0 20px; letter-spacing: -.035em; }
.hero p { font-size: 1.12rem; color: #e7edf5; max-width: 720px; }
.hero-card {
  background: var(--white);
  color: var(--ink);
  padding: 28px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--gold);
}
.hero-card h2 { margin-top: 0; color: var(--navy); }
.contact-line { margin: 10px 0; }
.contact-line strong { display: block; font-size: .78rem; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 800;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-outline { border-color: rgba(255,255,255,.65); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); border-color: var(--line); color: var(--navy); }
.btn-green { background: var(--green); color: white; }
.btn-red { background: var(--red); color: white; }

section { padding: 66px 24px; }
.section-title { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.section-title h2 { color: var(--navy); font-size: clamp(1.9rem, 3.5vw, 2.8rem); margin: 0 0 12px; }
.section-title p { color: var(--muted); margin: 0; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--white);
  padding: 25px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(7,27,53,.06);
}
.card h3 { color: var(--navy); margin: 0 0 9px; }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(216,170,73,.2);
  color: var(--navy); display: grid; place-items: center; font-weight: 900; margin-bottom: 16px;
}

.sms-banner { background: var(--white); }
.sms-panel {
  background: linear-gradient(135deg, #fff 0%, #f5f7fa 100%);
  border: 1px solid var(--line);
  border-left: 7px solid var(--gold);
  border-radius: 16px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow);
}
.sms-panel h2 { color: var(--navy); margin: 0 0 10px; }
.sms-panel p { margin: 0; color: var(--muted); }

.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: white; padding: 54px 24px; }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); margin-bottom: 14px; }
.page-hero p { max-width: 800px; color: #e8eef7; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-box { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 28px; }
.info-box h2, .info-box h3 { color: var(--navy); margin-top: 0; }
.info-box ul { padding-left: 20px; }
.callout { border-left: 5px solid var(--gold); background: #fffaf0; padding: 18px 20px; border-radius: 8px; }
.action-box { text-align: center; }
.action-box .button-row { justify-content: center; }
.legal { font-size: .94rem; color: var(--muted); }

.site-footer { background: #06162b; color: #dbe4ef; padding: 38px 24px; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--white); }

[data-lang] { display: none; }
[data-lang].active { display: block; }
span[data-lang].active, a[data-lang].active { display: inline; }

@media (max-width: 900px) {
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .sms-panel { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .header-inner { min-height: 74px; padding: 8px 14px; }
  .logo-link img { width: 240px; max-width: 58vw; }
  .lang-toggle button { padding: 7px 9px; font-size: .8rem; }
  .hero { padding-top: 48px; }
  .cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .btn { width: 100%; }
}

/* WordPress integration */
.admin-bar .site-header { top: 32px; }
.site-main { min-height: 55vh; }
.entry-content { margin: 0; }
.lang-en, .lang-es { display: none; }
.lang-en.active, .lang-es.active { display: block; }
span.lang-en.active, span.lang-es.active, a.lang-en.active, a.lang-es.active, strong.lang-en.active, strong.lang-es.active { display: inline; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
