/* I&N Accounting LLC — site stylesheet
   Brand colors sourced from official logo: navy #375a7f, teal #39b9bf */

:root {
  --navy-900: #1f3347;
  --navy-800: #274158;
  --navy-700: #2e4d69;
  --navy: #375a7f;
  --navy-100: #e8edf2;
  --teal: #39b9bf;
  --teal-dark: #2b8f94;
  --teal-100: #e5f7f8;
  --white: #ffffff;
  --ink: #1f2d3a;
  --ink-muted: #55636f;
  --border: #dde5eb;
  --bg-alt: #f5f8fa;
  --danger: #b3261e;
  --danger-bg: #fdeceb;
  --success: #1e7d46;
  --success-bg: #e9f7ef;

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

  --max-width: 1120px;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(31, 51, 71, 0.08);
  --shadow-sm: 0 1px 3px rgba(31, 51, 71, 0.08);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}

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

a {
  color: var(--navy);
  text-decoration-color: rgba(55, 90, 127, 0.4);
}

a:hover {
  color: var(--teal-dark);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 2.85rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.25rem; }

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(--navy-900);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}

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

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

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy-900);
}

.brand img {
  height: 48px;
  width: auto;
}

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

.brand__name {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-900);
}

.brand__tagline {
  display: block;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--teal-dark);
}

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

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

.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(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

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

.site-nav__list .btn {
  margin-top: 6px;
}

.header-call {
  display: none;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  line-height: 1.2;
}

.btn-primary {
  background: var(--teal);
  color: var(--navy-900);
}

.btn-primary:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

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

.btn-block {
  width: 100%;
}

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

.hero {
  background: linear-gradient(135deg, var(--navy-900), var(--navy));
  color: var(--white);
  padding: 56px 0 64px;
}

.hero h1 {
  color: var(--white);
}

.hero__lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 58ch;
}

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

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

/* ---------- Trust bar ---------- */

.trust-bar {
  background: var(--navy-100);
  border-bottom: 1px solid var(--border);
}

.trust-bar__list {
  list-style: none;
  margin: 0;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  text-align: center;
}

.trust-bar__list li {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.95rem;
}

@media (min-width: 700px) {
  .trust-bar__list {
    grid-template-columns: repeat(4, 1fr);
    text-align: left;
  }
}

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

.section {
  padding: 56px 0;
}

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

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

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 10px;
}

/* ---------- 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(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.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-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--teal-100);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

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

.cta-band {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
}

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

.cta-band p {
  color: rgba(255, 255, 255, 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;
}

/* ---------- 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(--border);
  background: var(--navy-100);
}

.bio__portrait-fallback {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy-100), var(--white));
}

.bio__portrait-fallback span {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--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(--teal-100);
  color: var(--navy-900);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.92rem;
}

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

/* ---------- Contact ---------- */

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

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.contact-info dt {
  font-weight: 700;
  color: var(--navy-900);
  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(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 22px;
}

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

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

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

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

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

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--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(--navy-900);
  color: rgba(255, 255, 255, 0.82);
  padding: 44px 0 26px;
  margin-top: 40px;
}

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

.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(--white);
  font-size: 1rem;
  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(255, 255, 255, 0.14);
  padding-top: 18px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 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"] .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;
}
