@import url('fonts.css');

:root {
  --color-text: #393f44;
  --color-bg: #ffffff;
  --color-nav-bg: #e9f2f3;
  --color-nav-active-bg: #ebe7df;
  --color-box-bg: #e5f0f1;
  --color-section-blue: #e8f8fa;
  --color-button-bg: #000000;
  --color-button-text: #ffffff;
  --color-border: #c9d6d6;
  --font-heading: 'OpenSansHebrewCondensed', 'Heebo', 'Segoe UI', Tahoma, sans-serif;
  --font-body: 'Heebo', 'Segoe UI', Tahoma, sans-serif;
  --max-width: 1140px;
  --box-width: 940px;
}

* { box-sizing: border-box; }

html { direction: rtl; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin: 0 0 0.6em;
  line-height: 1.2;
}

h1 { font-size: 4.5rem; }
h2 { font-size: 3.5rem; }
h3 { font-size: 1.3rem; font-weight: 500; }

p { margin: 0 0 1.1em; }

.skip-link {
  position: absolute;
  right: -999px;
  top: 0;
  background: #fff;
  color: #116dff;
  padding: 0 24px;
  border-radius: 24px;
  line-height: 2.4;
  z-index: 100;
}
.skip-link:focus { right: 1rem; }

/* ---------- header ---------- */
.site-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 2rem 0.8rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-line {
  font-size: 0.85rem;
  display: flex;
  gap: 1.5rem;
  text-transform: uppercase;
}
.contact-line a { text-decoration: underline; }

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
}
.logo img { height: 100px; width: auto; }

/* ---------- nav ---------- */
.site-nav {
  background: var(--color-nav-bg);
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-nav li { flex: 1; }
.site-nav a {
  display: block;
  text-align: center;
  padding: 0 0.625rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 45px;
  white-space: nowrap;
}
.site-nav a:hover { background: rgba(0,0,0,0.04); }
.site-nav li.active a { background: var(--color-nav-active-bg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  aspect-ratio: 1140 / 605;
  min-height: 220px;
}
.hero-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero .portrait {
  position: absolute;
  top: 4.3%;
  left: 7%;
  width: 23.3%;
  aspect-ratio: 266 / 323;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid rgba(255,255,255,0.5);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.hero .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ---------- intro / content box ---------- */
.intro-box {
  max-width: var(--box-width);
  margin: -180px auto 0;
  background: var(--color-box-bg);
  padding: 2.4rem 3rem 0.6rem;
  text-align: center;
  position: relative;
}
.intro-box h1, .intro-box h2.subtitle {
  text-align: center;
}
.intro-box h1 { margin-bottom: 0.75rem; }
.intro-box h2.subtitle {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.intro-box .body-text {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.25rem;
  line-height: 1.5;
}
.intro-box .body-text p { margin: 0; }

.page-box {
  max-width: var(--box-width);
  margin: -180px auto 0;
  background: var(--color-box-bg);
  padding: 2.4rem 3rem 0.6rem;
  text-align: center;
  position: relative;
}
.page-box h1 { text-align: center; font-size: 2.9375rem; margin-bottom: 0.75rem; }
.page-box .body-text {
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.5;
}
.page-box .body-text p { text-align: center; margin: 0; }

/* ---------- quote section ---------- */
.quote-section {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.quote-section img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.quote-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 35, 0.35);
  z-index: 1;
}
.quote-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}
.quote-content blockquote {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.5;
  max-width: 480px;
}
.quote-content cite {
  color: #fff;
  font-style: normal;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ---------- recent posts ---------- */
.recent-posts {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 2rem;
  text-align: center;
}
.recent-posts h2 { margin-bottom: 2rem; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  text-align: right;
}
.post-card-sm {
  background: #fff;
}
.post-card-sm img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 1rem;
}
.post-card-sm h3 { margin-bottom: 0; font-size: 1.75rem; }

/* ---------- contact section ---------- */
.contact-section {
  background: var(--color-section-blue);
  padding: 3.5rem 2rem;
}
.contact-section .inner {
  max-width: 585px;
  margin: 0 auto;
  text-align: center;
}
.contact-section h2 { margin-bottom: 2rem; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-align: right;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  border-radius: 2px;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button {
  align-self: center;
  margin-top: 0.6rem;
  background: var(--color-button-bg);
  color: var(--color-button-text);
  border: none;
  padding: 0.9rem 2.8rem;
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
}
.contact-form button:hover { opacity: 0.88; }
.form-note {
  font-size: 0.85rem;
  margin-top: 1rem;
  opacity: 0.8;
}

/* ---------- footer ---------- */
.site-footer {
  background: #fff;
  padding: 4rem 2rem;
  text-align: center;
  font-size: 1.05rem;
}
.site-footer .social {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}
.site-footer .social a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #3b5998;
  color: #fff;
  align-items: center;
  justify-content: center;
}
.site-footer .social a.whatsapp { background: #25d366; }
.site-footer .footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  font-weight: 500;
  font-size: 1.15rem;
}
.site-footer .footer-logo img { height: 24px; width: auto; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- article (blog post) ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 2rem 1rem;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.125rem;
  opacity: 0.85;
  margin-bottom: 1.2rem;
}
.article-meta img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.article h1 { text-align: right; font-size: 2.5rem; margin-bottom: 1.2rem; }
.article .body-text { text-align: right; font-size: 1.125rem; line-height: 1.5; }
.article .body-text p { text-align: right; }
.share-row {
  display: flex;
  gap: 0.8rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--color-border);
  margin-top: 1.5rem;
}
.share-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* ---------- blog index ---------- */
.blog-index {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}
.blog-index-card {
  display: flex;
  flex-direction: row-reverse;
  gap: 1.5rem;
  margin-bottom: 2rem;
  background: #fff;
}
.blog-index-card img {
  width: 48%;
  object-fit: cover;
}
.blog-index-card .text {
  padding: 1.5rem 1.5rem 1.5rem 0;
  text-align: right;
  flex: 1;
}
.blog-index-card .meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 0.6rem;
}
.blog-index-card .meta img {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
}
.blog-index-card h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.blog-index-card p { font-size: 1.1rem; }

@media (max-width: 700px) {
  .site-header { justify-content: center; text-align: center; }
  .site-nav ul { flex-wrap: wrap; }
  .intro-box, .page-box { padding: 2.2rem 1.3rem; margin-top: -60px; }
  h1 { font-size: 2.1rem; }
  .hero .portrait { width: 34%; aspect-ratio: 266 / 323; top: 4%; left: 50%; transform: translateX(-50%); }
  .logo img { height: 64px; }
  .blog-index-card { flex-direction: column; }
  .blog-index-card img { width: 100%; aspect-ratio: 16/9; }
  .blog-index-card .text { padding: 1.2rem; }
}
