/* free-ome.com website – shared styles (design tokens from handoff). */
:root {
  --ink: #1a1a1a;
  --sec: #666;
  --sec2: #555;
  --sec3: #444;
  --muted: #999;
  --red: #c62828;
  --red-hover: #b71c1c;
  --red-tint: #fff5f5;
  --bg-section: #fafafa;
  --fill: #f2f2f2;
  --border: #eee;
  --border2: #e6e6e6;
  --border3: #e0e0e0;
  --green: #22c55e;
  --female: #d2607a;
  --male: #4f7fb3;
}

* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: inherit; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .4em; font-weight: 700; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-hover); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  text-decoration: none; font: inherit; font-weight: 600; font-size: 14px; line-height: 1.2;
  border: 1px solid transparent; border-radius: 999px; padding: 10px 20px; min-height: 44px; transition: background .15s, border-color .15s, transform .05s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); color: #fff; }
.btn-primary:disabled { background: var(--border2); color: var(--muted); cursor: not-allowed; }
.btn-secondary { background: #fff; border-color: var(--border3); color: var(--ink); }
.btn-secondary:hover { background: var(--fill); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }

/* layout */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-grey { background: var(--bg-section); }

/* header */
.site-header { position: relative; z-index: 2; }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1100px; margin: 0 auto; padding: 20px 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand:hover { color: var(--ink); }
.brand .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--red); flex: none; }
.site-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--sec); text-decoration: none; font-size: 14px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--red); }

/* language switcher */
.lang { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border: 1px solid var(--border2); border-radius: 999px; background: #fff; font-size: 13px; color: var(--ink); cursor: pointer; }
.lang:hover { border-color: var(--red); }
.lang select { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 20px 24px; font-size: 13px; color: var(--muted); text-align: center; }

/* breadcrumbs */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }

/* cards */
.card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--border);
  border-radius: 20px; text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s; }
.card:hover { border-color: var(--red); color: var(--ink); }
.card .date { font-size: 12px; color: var(--muted); }
.card strong { font-size: 18px; line-height: 1.3; }
.card .excerpt { font-size: 14px; color: var(--sec); line-height: 1.5; }

/* CTA banner */
.cta { background: var(--red); border-radius: 28px; padding: 40px 32px; text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta h2 { color: #fff; font-size: 24px; margin: 0; }
.cta p { margin: 0; font-size: 15px; opacity: .95; }
.cta .btn { background: #fff; color: var(--red); }
.cta .btn:hover { background: #fff; color: var(--red); opacity: .92; }

/* article */
.article { font-size: 17px; line-height: 1.7; color: var(--sec3); }
.article h2 { font-size: 24px; color: var(--ink); margin: 32px 0 12px; }
.article h3 { font-size: 20px; color: var(--ink); margin: 24px 0 8px; }
.article p { margin: 0 0 16px; }
.article ul { padding-left: 22px; margin: 0 0 16px; }
.article li { margin-bottom: 6px; }
.article .meta { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 20px; }
.table th { text-align: left; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--sec); padding: 10px; border-bottom: 2px solid var(--border2); }
.table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }

details { border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }

/* FAQ accordion (home page) */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--border2); border-radius: 14px;
  padding: 0; margin-bottom: 12px; transition: border-color .15s, box-shadow .15s;
}
.faq details[open] { border-color: var(--border3); box-shadow: 0 6px 20px rgba(26,26,26,.06); }
.faq summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-size: 16px; font-weight: 600; color: var(--ink); margin: 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red); }
.faq .faq-ico {
  position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red-tint); transition: transform .2s ease;
}
.faq .faq-ico::before, .faq .faq-ico::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 2px;
  background: var(--red); border-radius: 2px; transform: translate(-50%, -50%);
}
.faq .faq-ico::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity .2s ease; }
.faq details[open] .faq-ico { transform: rotate(180deg); }
.faq details[open] .faq-ico::after { opacity: 0; }
.faq .faq-a { padding: 0 20px 18px; color: var(--sec2); line-height: 1.6; }

[dir="rtl"] .site-nav { justify-content: flex-start; }

@keyframes livePulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.6); opacity: 0; } }
