/* ===========================================================
   אסתר בינר - שירותי הנהלת חשבונות
   Palette (from source logo):
     Primary teal:  #14505A
     Secondary ink: #3C4650
     Neutral bg:    #FAFAFA / #FFFFFF
     Warm accent:   #C9A15A (used sparingly for CTA emphasis)
   Font: Assistant (Google Fonts) - 700 headings, 600 subheadings, 400 body
   =========================================================== */

:root {
  --teal: #14505A;
  --teal-dark: #0e3a42;
  --teal-darker: #0a2b31;
  --slate: #3C4650;
  --bg: #FAFAFA;
  --bg-tint: #F1F6F6;
  --white: #FFFFFF;
  --gold: #C9A15A;
  --gold-light: #E4C88B;
  --border-light: #E2E6E7;
  --text-body: #2A3238;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Assistant', 'Segoe UI', Tahoma, sans-serif;
  font-weight: 400;
  background-color: var(--bg);
  color: var(--text-body);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
}

h1, h2, h3 {
  color: var(--slate);
  font-weight: 700;
  margin: 0 0 0.6em 0;
  letter-spacing: -0.01em;
}

.center {
  text-align: center;
}

.section-eyebrow {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.7em;
}

.section-eyebrow.on-dark {
  color: var(--gold-light);
}

p {
  margin: 0 0 1em 0;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 14px rgba(20, 80, 90, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 2px;
  padding-bottom: 2px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 60px;
  width: auto;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.main-nav a {
  color: var(--slate);
  font-weight: 600;
  font-size: 1rem;
}

.main-nav a:hover {
  color: var(--teal);
  text-decoration: none;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(10,43,49,0.86) 0%, rgba(20,80,90,0.72) 48%, rgba(60,70,80,0.82) 100%),
    url("images/hero-office-dusk.jpg") center/cover no-repeat;
  background-color: var(--teal-darker); /* fallback while loading */
  color: var(--white);
  padding: 32px 0 84px;
  isolation: isolate;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.07) 0, rgba(255,255,255,0.07) 2px, transparent 3px),
    radial-gradient(circle at 85% 75%, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 2px, transparent 3px),
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 90px 90px, 130px 130px, 46px 46px, 46px 46px;
  background-position: 0 0, 0 0, 0 0, 0 0;
}

.hero-glow {
  position: absolute;
  z-index: 0;
  top: -140px;
  left: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 161, 90, 0.35) 0%, rgba(201, 161, 90, 0) 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: -180px;
  right: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.hero-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 60px;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  text-transform: uppercase;
  padding: 6px 16px;
  border: 1px solid rgba(228, 200, 139, 0.5);
  border-radius: 999px;
  margin-bottom: 1.4em;
  background: rgba(255, 255, 255, 0.05);
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
}

.hero h1 .accent-text {
  color: var(--gold-light);
}

.hero-tagline {
  font-size: 1.2rem;
  color: #E7EAEC;
  max-width: 620px;
  margin-bottom: 2em;
}

.btn {
  display: inline-block;
  padding: 16px 38px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.08rem;
  border: 2px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--teal-darker);
  box-shadow: 0 8px 24px rgba(201, 161, 90, 0.35);
}

.btn-primary:hover {
  background-color: var(--gold-light);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(201, 161, 90, 0.45);
}

/* ---------- About ---------- */

.about {
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  padding: 8px 0 52px;
}

.about-shape {
  position: absolute;
  top: -60px;
  left: -90px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 80, 90, 0.06) 0%, rgba(20, 80, 90, 0) 70%);
  z-index: 0;
}

.about-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-right: 4px solid var(--teal);
  border-radius: 12px;
  padding: 44px 48px;
  box-shadow: 0 12px 32px rgba(20, 80, 90, 0.07);
}

.about h2 {
  color: var(--teal);
  font-size: 2rem;
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 0.9em;
}

.about h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 4px;
  background-color: var(--gold);
  border-radius: 2px;
}

.about p {
  font-size: 1.05rem;
}

/* ---------- Services ---------- */

.services {
  position: relative;
  background-color: var(--bg-tint);
  padding: 60px 0 64px;
}

.services h2 {
  color: var(--teal);
  font-size: 2.2rem;
  margin-bottom: 1.1em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  position: relative;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--teal);
  border-radius: 12px;
  padding: 34px 28px;
  box-shadow: 0 6px 18px rgba(20, 80, 90, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-top-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(20, 80, 90, 0.16);
  border-top-color: var(--gold);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  box-shadow: 0 6px 14px rgba(20, 80, 90, 0.25);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  color: var(--teal);
  font-size: 1.2rem;
  margin-bottom: 0.5em;
}

.service-card p {
  font-size: 0.98rem;
  color: var(--text-body);
  margin: 0;
}

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

.contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-darker) 0%, var(--teal-dark) 55%, var(--slate) 100%);
  padding: 64px 0 56px;
  text-align: center;
}

.contact-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.45;
  background-image:
    radial-gradient(circle at 10% 85%, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 2px, transparent 3px),
    radial-gradient(circle at 90% 15%, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 2px, transparent 3px),
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 110px 110px, 150px 150px, 48px 48px, 48px 48px;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
}

.contact h2 {
  color: var(--white);
  font-size: 2.3rem;
}

.contact-lead {
  font-size: 1.15rem;
  color: #E7EAEC;
  margin-bottom: 1.4em;
}

.contact-placeholder-box {
  border: 1px solid rgba(228, 200, 139, 0.55);
  background-color: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(4px);
  border-radius: 14px;
  padding: 34px 40px;
  margin-top: 1.2em;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 48px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 1.05rem;
  color: var(--gold-light);
  font-weight: 600;
  flex: 1 1 240px;
  text-align: center;
  border-bottom: none;
}

.contact-list li:not(:last-child) {
  border-left: 1px dashed rgba(228, 200, 139, 0.3);
}

@media (max-width: 760px) {
  .contact-list li:not(:last-child) {
    border-left: none;
    border-bottom: 1px dashed rgba(228, 200, 139, 0.3);
    padding-bottom: 20px;
  }
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(228, 200, 139, 0.15);
  color: var(--gold-light);
}

.contact-icon svg {
  width: 16px;
  height: 16px;
}

.contact-label {
  color: var(--white);
  font-weight: 700;
  margin-left: 8px;
}

.contact-value-link {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: none;
  direction: ltr;
  unicode-bidi: isolate;
}

.contact-value-link:hover {
  color: var(--white);
  text-decoration: underline;
}

.contact-note {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 400;
  color: #C7D0D3;
  font-style: italic;
  text-align: center;
}

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

.site-footer {
  background-color: var(--slate);
  color: #D8DCDF;
  padding: 20px 0;
  border-top: 4px solid var(--gold);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 4px;
}

.footer-text {
  font-weight: 600;
  color: var(--white);
  margin: 0;
}

.footer-copy {
  font-size: 0.9rem;
  color: #B7BEC3;
  margin: 0;
}

.footer-contact-link {
  color: var(--gold);
  font-weight: 600;
  margin-top: 8px;
}

.footer-contact-link:hover {
  color: #ddbd82;
}

/* ---------- Responsive ---------- */

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

@media (max-width: 640px) {
  .hero {
    padding: 70px 0 90px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-tagline {
    font-size: 1.02rem;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .about {
    padding: 64px 0 56px;
  }

  .about-inner {
    padding: 28px 24px;
  }

  .services, .contact {
    padding: 64px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    justify-content: center;
    text-align: center;
  }

  .main-nav ul {
    justify-content: center;
    gap: 18px;
  }

  .brand-logo {
    height: 62px;
  }

  .contact-placeholder-box {
    padding: 22px 20px;
  }

  .contact-list li {
    font-size: 0.98rem;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 1.55rem;
  }

  .about-inner {
    padding: 24px 18px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* ---------- Theme awareness ----------
   The brand identity is a light, off-white professional look by design.
   We keep the palette stable across color-scheme preferences (this is a
   deliberate branded design, not an adaptive UI), but ensure links/focus
   states remain visible if a browser forces dark UI chrome. */

@media (prefers-color-scheme: dark) {
  body {
    background-color: var(--bg);
    color: var(--text-body);
  }
}

/* ---------- Blog ---------- */

.blog-title-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-darker) 0%, var(--teal) 48%, var(--slate) 100%);
  color: var(--white);
  padding: 64px 0 56px;
  text-align: center;
}

.blog-title-band .section-eyebrow {
  color: var(--gold-light);
}

.blog-title-band h1 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 0.4em;
}

.blog-title-band p {
  font-size: 1.1rem;
  color: #E7EAEC;
  max-width: 620px;
  margin: 0 auto;
}

.blog-listing {
  background-color: var(--bg);
  padding: 80px 0 100px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--teal);
  border-radius: 12px;
  padding: 30px 26px;
  box-shadow: 0 6px 18px rgba(20, 80, 90, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-top-color 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(20, 80, 90, 0.16);
  border-top-color: var(--gold);
}

.blog-card-date {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.6em;
}

.blog-card-title {
  color: var(--teal);
  font-size: 1.25rem;
  margin-bottom: 0.5em;
}

.blog-card-excerpt {
  font-size: 0.98rem;
  color: var(--text-body);
  margin-bottom: 1.2em;
  flex-grow: 1;
}

.blog-card-link {
  font-weight: 700;
  color: var(--teal);
}

.blog-card-link:hover {
  color: var(--gold);
  text-decoration: none;
}

/* ---------- Blog article ---------- */

.article-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-darker) 0%, var(--teal) 48%, var(--slate) 100%);
  color: var(--white);
  padding: 48px 0 44px;
}

.breadcrumb {
  font-size: 0.95rem;
  color: #C7D0D3;
  margin-bottom: 1.2em;
}

.breadcrumb a {
  color: var(--gold-light);
}

.article-header h1 {
  color: var(--white);
  font-size: 2.1rem;
  margin-bottom: 0.4em;
  max-width: 780px;
}

.article-byline {
  font-size: 0.98rem;
  color: #E7EAEC;
}

.article-section {
  background-color: var(--bg);
  padding: 70px 0 90px;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-right: 4px solid var(--teal);
  border-radius: 12px;
  padding: 44px 48px;
  box-shadow: 0 12px 32px rgba(20, 80, 90, 0.07);
}

.article-body p {
  font-size: 1.05rem;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-cta {
  max-width: 720px;
  margin: 36px auto 0;
  text-align: center;
  padding-top: 8px;
}

.article-cta .btn {
  margin-bottom: 14px;
}

.article-back-link {
  display: block;
  font-weight: 600;
  color: var(--teal);
}

.article-back-link:hover {
  color: var(--gold);
}

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

@media (max-width: 640px) {
  .blog-title-band {
    padding: 48px 0 40px;
  }

  .blog-title-band h1 {
    font-size: 1.8rem;
  }

  .blog-listing {
    padding: 56px 0 64px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .article-header {
    padding: 36px 0 32px;
  }

  .article-header h1 {
    font-size: 1.6rem;
  }

  .article-section {
    padding: 48px 0 56px;
  }

  .article-body {
    padding: 28px 24px;
  }
}
