/* I&N Accounting LLC — site stylesheet
   Palette: Ink Navy / Deep Teal / Light Turquoise / Brass / Paper / Line-gray.
   Headings: Fraunces (self-hosted, variable). Body: Public Sans (self-hosted, variable). */

/* ---------- Self-hosted fonts ---------- */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-variable-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/publicsans-variable.woff2") format("woff2");
}

:root {
  /* Brand tokens */
  --ink-navy: #16324F;
  --ink-navy-soft: #24476b;
  --deep-teal: #146B65;
  --turquoise: #6FCFC6;
  --turquoise-dark: #55b8af;
  --brass: #B8925A;
  --paper: #FBFAF9;
  --paper-dim: #F3F0EC;
  --line-gray: #C9D3D6;

  --ink: var(--ink-navy);
  --ink-muted: #4d6072;
  --danger: #b3261e;
  --danger-bg: #fdeceb;
  --success: #1e7d46;
  --success-bg: #e9f7ef;

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1160px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(22, 50, 79, 0.07);
  --header-h: 96px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--deep-teal);
  text-decoration-color: rgba(20, 107, 101, 0.35);
}

a:hover {
  color: var(--ink-navy);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink-navy);
  line-height: 1.15;
  margin: 0 0 0.55em;
  letter-spacing: -0.01em;
}

h1 {
  font-weight: 700;
  font-size: clamp(2.15rem, 1.3rem + 3.6vw, 3.35rem);
  line-height: 1.06;
}

h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.15rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

.lede {
  font-size: 1.15rem;
  color: var(--ink-muted);
}

ul.plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink-navy);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Section label (replaces generic all-caps eyebrow) ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--deep-teal);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brass);
  display: inline-block;
  flex: none;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line-gray);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 8px 12px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 8px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink-navy);
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .brand {
    gap: 12px;
  }
}

.brand img {
  height: 64px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .brand img {
    height: 72px;
  }
}

.brand__text {
  font-family: var(--font-heading);
  line-height: 1.15;
  flex-shrink: 0;
}

.brand__name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-navy);
  white-space: nowrap;
}

@media (min-width: 480px) {
  .brand__name {
    font-size: 1.2rem;
  }
}

.brand__tagline {
  display: none;
  font-size: 0.8rem;
  font-style: italic;
  white-space: nowrap;
  font-weight: 400;
  color: var(--deep-teal);
}

@media (min-width: 480px) {
  .brand__tagline {
    display: block;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--line-gray);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-navy);
  cursor: pointer;
}

.nav-toggle svg { width: 20px; height: 20px; flex-shrink: 0; }

.nav-toggle__label {
  display: none;
}

@media (min-width: 420px) {
  .nav-toggle__label {
    display: inline;
  }
}

.site-nav {
  display: none;
  width: 100%;
}

.site-nav.is-open {
  display: block;
}

.site-nav__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line-gray);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-nav__list a:not(.btn) {
  display: block;
  padding: 10px 4px;
  text-decoration: none;
  color: var(--ink-navy);
  font-weight: 600;
}

.site-nav__list a[aria-current="page"] {
  color: var(--deep-teal);
}

.site-nav__list .btn {
  margin-top: 8px;
  align-self: flex-start;
}

a.header-call {
  display: none;
}

@media (min-width: 860px) {
  .site-header__bar {
    flex-wrap: nowrap;
    padding: 0 20px;
  }
  .nav-toggle {
    display: none;
  }
  .site-nav {
    display: flex !important;
    width: auto;
    align-items: center;
  }
  .site-nav__list {
    flex-direction: row;
    align-items: center;
    border-top: none;
    margin: 0;
    padding: 0;
    gap: 26px;
  }
  .site-nav__list a:not(.btn) {
    padding: 6px 2px;
  }
  .site-nav__list .btn {
    margin-top: 0;
  }
  a.header-call {
    display: inline-flex;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--turquoise);
  color: var(--ink-navy);
}

.btn-primary:hover {
  background: var(--turquoise-dark);
  color: var(--ink-navy);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(251, 250, 249, 0.7);
  color: var(--paper);
}

.btn-secondary:hover {
  background: rgba(251, 250, 249, 0.14);
  color: var(--paper);
}

.btn-outline {
  background: transparent;
  border-color: var(--ink-navy);
  color: var(--ink-navy);
}

.btn-outline:hover {
  background: var(--ink-navy);
  color: var(--paper);
}

.btn-block {
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--paper);
  padding: 28px 0 32px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: 52px 0 60px;
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
}

@media (min-width: 768px) {
  .hero__grid {
    gap: 40px;
  }
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.22fr 1fr;
    gap: 32px;
  }
}

.hero__rule {
  width: 60px;
  height: 3px;
  background: var(--brass);
  border: 0;
  margin: 0 0 14px;
}

/* Tightened sizing on narrow phones so both CTAs clear the fold */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.95rem;
  }
}

@media (min-width: 768px) {
  .hero__rule {
    margin: 0 0 20px;
  }
}

.hero__lede {
  font-size: 1.18rem;
  color: var(--ink-muted);
  max-width: 52ch;
}

@media (max-width: 480px) {
  .hero__lede {
    font-size: 1.02rem;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .hero__actions {
    margin-top: 28px;
  }
}

.hero__actions--center {
  justify-content: center;
}

/* Mobile: hero-illustration reads as a small supporting accent below the
   CTAs, not a full-width block that pushes content below the fold. */
.hero__art {
  width: auto;
  max-width: 100%;
  margin: 4px auto 0;
  text-align: center;
}

.hero__art img {
  max-height: 200px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero__art {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
  }
  .hero__art img {
    max-height: none;
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__content {
    animation: hero-rise 0.85s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  .hero__art {
    animation: hero-rise 0.9s 0.1s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  @keyframes hero-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ---------- Stats band (ledger row) ---------- */

.stats-band {
  background: var(--ink-navy);
  color: var(--paper);
}

.stats-band__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .stats-band__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stats-band__item {
  padding: 30px 26px;
  text-align: center;
  border-bottom: 1px solid rgba(251, 250, 249, 0.16);
}

.stats-band__item:last-child {
  border-bottom: none;
}

@media (min-width: 760px) {
  .stats-band__item {
    border-bottom: none;
    border-right: 1px solid rgba(251, 250, 249, 0.16);
  }
  .stats-band__item:last-child {
    border-right: none;
  }
}

.stats-band__num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  margin-bottom: 6px;
}

.stats-band__label {
  display: block;
  font-size: 0.92rem;
  color: rgba(251, 250, 249, 0.8);
  max-width: 22ch;
  margin: 0 auto;
}

/* ---------- Sections ---------- */

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--paper-dim);
}

.section-header {
  max-width: 68ch;
  margin-bottom: 32px;
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

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

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line-gray);
  border-radius: var(--radius);
  padding: 26px;
}

.card h3 {
  margin-bottom: 0.5em;
}

.card ul {
  margin: 14px 0 0;
  padding-left: 1.1em;
  color: var(--ink-muted);
}

.card ul li {
  margin-bottom: 6px;
}

/* Service items: quiet ledger-row treatment, not boxed cards */

.service-card {
  padding-top: 22px;
  border-top: 2px solid var(--line-gray);
}

.service-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  display: block;
}

.service-card p {
  color: var(--ink-muted);
  margin-bottom: 0;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink-navy);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 44px 28px;
  text-align: center;
}

.cta-band h2 {
  color: var(--paper);
}

.cta-band p {
  color: rgba(251, 250, 249, 0.85);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-band a:not(.btn) {
  color: inherit;
  font-weight: 700;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

/* ---------- Ledger form section (inline appointment form) ---------- */

.ledger-section {
  background-color: var(--paper);
  background-image: url("/assets/img/decorative-pattern.svg");
  background-repeat: repeat;
  background-size: 64px 64px;
}

.ledger-card {
  background: var(--paper);
  border: 1px solid var(--line-gray);
  border-radius: 14px;
  padding: 36px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.ledger-card__header {
  text-align: center;
  max-width: 52ch;
  margin: 0 auto 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 18px;
}

@media (min-width: 640px) {
  .form-grid--split {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Quote / bio blocks ---------- */

.bio {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

.bio__portrait {
  width: 100%;
  max-width: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-gray);
  background: var(--paper-dim);
}

.bio__portrait-fallback {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-dim);
}

.bio__portrait-fallback span {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--ink-navy);
  font-weight: 700;
}

@media (min-width: 760px) {
  .bio {
    flex-direction: row;
    gap: 40px;
  }
  .bio__portrait {
    flex: 0 0 240px;
  }
}

/* ---------- Language badge ---------- */

.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--paper-dim);
  border: 1px solid var(--line-gray);
  color: var(--ink-navy);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.92rem;
}

.arabic-inline {
  font-size: 1.05em;
  direction: rtl;
  unicode-bidi: isolate;
}

/* ---------- Map / location section ---------- */

.map-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .map-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.contact-info dt {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink-navy);
  margin-top: 18px;
}

.contact-info dt:first-child {
  margin-top: 0;
}

.contact-info dd {
  margin: 4px 0 0;
  color: var(--ink-muted);
}

.map-frame {
  border: 1px solid var(--line-gray);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  min-height: 260px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  display: block;
}

/* ---------- Forms ---------- */

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-weight: 600;
  color: var(--ink-navy);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-gray);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--turquoise);
  outline-offset: 1px;
  border-color: var(--deep-teal);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

.inline-hint {
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 0.85em;
}

.form-error {
  font-size: 0.85rem;
  color: var(--danger);
  margin-top: 6px;
  display: none;
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: var(--danger);
}

.form-field.has-error .form-error {
  display: block;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 20px;
  font-weight: 600;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(30, 125, 70, 0.25);
}

.form-status.is-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(179, 38, 30, 0.25);
}

.cf-turnstile {
  margin: 6px 0 18px;
}

button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink-navy);
  color: rgba(251, 250, 249, 0.82);
  padding: 44px 0 26px;
  margin-top: 40px;
}

.site-footer a {
  color: var(--paper);
}

.site-footer h4 {
  font-family: var(--font-heading);
}

.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  margin-bottom: 28px;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-grid h4 {
  color: var(--paper);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(251, 250, 249, 0.16);
  padding-top: 18px;
  font-size: 0.85rem;
  color: rgba(251, 250, 249, 0.6);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* ---------- Utilities ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: 28px; }
.grid-align-center { align-items: center; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- RTL (Arabic page) ---------- */

[dir="rtl"] body {
  font-family: "Segoe UI", Tahoma, Geneva, Arial, sans-serif;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 {
  font-family: "Segoe UI", Tahoma, Geneva, Arial, sans-serif;
  font-weight: 700;
}

[dir="rtl"] .eyebrow {
  font-family: "Segoe UI", Tahoma, Geneva, Arial, sans-serif;
  font-style: normal;
}

[dir="rtl"] .card ul,
[dir="rtl"] .footer-grid,
[dir="rtl"] .contact-info {
  padding-right: 0;
}

[dir="rtl"] .card ul {
  padding-left: 0;
  padding-right: 1.1em;
}

[dir="rtl"] .skip-link {
  left: auto;
  right: -999px;
  border-radius: 0 0 0 6px;
}

[dir="rtl"] .skip-link:focus {
  right: 0;
}
