@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500&display=swap');

:root {
  --white: #FFFFFF;
  --black: #000000;
  --gray-light: #E0E0E0;
  --gray-mid: #999999;
  --blue: #4169E1;
  --grid-unit: 8px;
  --col: calc(100% / 12);
}

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

html {
  direction: rtl;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  text-align: right;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    linear-gradient(var(--gray-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-light) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: 0 0;
}

/* ─── COORDINATE TOOLTIP ─── */
#coord-tip {
  position: fixed;
  pointer-events: none;
  font-family: 'Courier New', monospace;
  font-size: 9px;
  color: var(--gray-mid);
  letter-spacing: 0.05em;
  background: var(--white);
  border: 1px solid var(--gray-light);
  padding: 2px 5px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.1s;
  white-space: nowrap;
}
#coord-tip.visible { opacity: 1; }

/* ─── NAVIGATION ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--black);
  display: flex;
  align-items: stretch;
  height: 64px;
}

.nav-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border-right: 1px solid var(--gray-light);
  border-left: 1px solid var(--gray-light);
}

.nav-logo {
  display: flex;
  align-items: center;
  padding: 0 32px;
  border-left: 1px solid var(--gray-light);
  height: 100%;
}

.nav-logo img {
  height: 36px;
  width: auto;
  filter: grayscale(1) contrast(1.5);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  height: 100%;
  margin: 0;
  direction: rtl;
}

.nav-links li {
  height: 100%;
  border-right: 1px solid var(--gray-light);
}

.nav-links li:last-child {
  border-left: 1px solid var(--gray-light);
}

.nav-links a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 24px;
  text-decoration: none;
  color: var(--black);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--black);
  color: var(--white);
}

/* ─── CONTAINER ─── */
.container {
  max-width: 1440px;
  margin: 0 auto;
  border-right: 1px solid var(--gray-light);
  border-left: 1px solid var(--gray-light);
}

/* ─── SECTION BASE ─── */
section {
  border-bottom: 1px solid var(--black);
}

/* ─── HERO ─── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
  border-bottom: 1px solid var(--black);
}

.hero-image-cell {
  border-left: 1px solid var(--black);
  overflow: hidden;
  position: relative;
}

.hero-image-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.1);
  transition: filter 0.5s ease;
}

.hero-image-cell:hover img {
  filter: grayscale(0) contrast(1);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
  border-right: 1px solid var(--gray-light);
  background: var(--white);
}

.hero-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 32px;
  font-weight: 400;
}

.hero h1 {
  font-size: clamp(32px, 3.8vw, 58px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 32px;
  color: var(--black);
}

.hero h2 {
  font-size: clamp(15px, 1.3vw, 20px);
  font-weight: 400;
  letter-spacing: 0em;
  line-height: 1.75;
  color: #222;
  margin-bottom: 48px;
  border-top: 1px solid var(--gray-light);
  padding-top: 24px;
}

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
  align-self: flex-start;
}

.btn-primary:hover {
  background: #2a4fc7;
}

/* ─── SOCIAL PROOF ─── */
.social-proof {
  border-bottom: 1px solid var(--black);
}

.section-label {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #555;
  font-weight: 500;
  padding: 20px 32px;
  border-bottom: 1px solid var(--gray-light);
  background: var(--white);
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.logo-cell {
  padding: 32px 24px;
  border-left: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-mid);
  font-weight: 400;
  transition: background 0.15s;
}

.logo-cell:last-child { border-left: none; }

.logo-cell:hover {
  background: var(--gray-light);
  color: var(--black);
}

/* ─── ABOUT TEASER ─── */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.about-image {
  border-left: 1px solid var(--black);
  overflow: hidden;
  min-height: 560px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(1);
  transition: filter 0.5s;
}

.about-image:hover img { filter: grayscale(0); }

.about-text {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

.about-text h2 {
  font-size: clamp(28px, 2.8vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.about-text p {
  font-size: 17px;
  line-height: 1.9;
  color: #222;
  margin-bottom: 32px;
}

.link-arrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.15s, border-color 0.15s;
}

.link-arrow:hover {
  color: var(--blue);
  border-color: var(--blue);
}

/* ─── SERVICES GRID ─── */
.services-section {
  border-bottom: 1px solid var(--black);
}

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

.service-cell {
  padding: 56px 48px;
  border-left: 1px solid var(--black);
  position: relative;
  background: var(--white);
}

.service-cell:last-child { border-left: none; }

.service-num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gray-mid);
  margin-bottom: 24px;
  display: block;
}

.service-cell h3 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--black);
}

.service-cell p {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}

/* ─── TESTIMONIALS ─── */
.testimonials-section {
  border-bottom: 1px solid var(--black);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.testimonial-cell {
  padding: 56px 48px;
  border-left: 1px solid var(--gray-light);
  background: var(--white);
}

.testimonial-cell:last-child { border-left: none; }

.testimonial-text {
  font-size: 17px;
  line-height: 1.85;
  color: #222;
  margin-bottom: 28px;
}

.testimonial-author {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

/* ─── PAGE HEADER ─── */
.page-header {
  padding: 80px 64px;
  border-bottom: 1px solid var(--black);
  background: var(--white);
}

.page-header h1 {
  font-size: clamp(32px, 4vw, 64px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 900px;
  margin-right: auto;
}

.page-number {
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--gray-mid);
  text-transform: uppercase;
  display: block;
  margin-bottom: 24px;
}

/* ─── ABOUT PAGE ─── */
.about-journal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--black);
}

.journal-col {
  padding: 80px 64px;
  border-left: 1px solid var(--black);
  background: var(--white);
}

.journal-col:last-child { border-left: none; }

.journal-col h2 {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-light);
}

.journal-col p {
  font-size: 16px;
  line-height: 1.95;
  color: #222;
  margin-bottom: 20px;
}

.about-center-image {
  border-bottom: 1px solid var(--black);
  overflow: hidden;
  height: 640px;
}

.about-center-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(1);
  transition: filter 0.5s;
}

.about-center-image:hover img { filter: grayscale(0); }

/* ─── SERVICES TABLE ─── */
.services-table {
  width: 100%;
  border-collapse: collapse;
}

.services-table th {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-mid);
  text-align: right;
  padding: 16px 32px;
  border-bottom: 1px solid var(--black);
  border-left: 1px solid var(--gray-light);
  font-weight: 400;
  background: var(--white);
}

.services-table td {
  padding: 40px 32px;
  border-bottom: 1px solid var(--gray-light);
  border-left: 1px solid var(--gray-light);
  vertical-align: top;
  font-size: 15px;
  line-height: 1.75;
  background: var(--white);
}

.services-table tr:hover td {
  background: #fafafa;
}

.services-table .service-name {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.services-table .service-price {
  font-size: 28px;
  font-weight: 200;
  letter-spacing: -0.02em;
}

.services-table .service-price span {
  font-size: 13px;
  color: var(--gray-mid);
  font-weight: 400;
}

.service-img-cell {
  width: 160px;
}

.service-img-cell img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter 0.5s;
}

.services-table tr:hover .service-img-cell img { filter: grayscale(0); }

.services-note {
  padding: 32px;
  font-size: 12px;
  color: var(--gray-mid);
  letter-spacing: 0.05em;
  border-top: 1px solid var(--gray-light);
}

/* ─── BLOG ─── */
.blog-list {
  list-style: none;
}

.blog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 88px;
  border-bottom: 1px solid var(--gray-light);
  position: relative;
  cursor: pointer;
  transition: background 0.12s;
  text-decoration: none;
  color: var(--black);
  background: var(--white);
}

.blog-row:hover {
  background: var(--black);
  color: var(--white);
}

.blog-row-num {
  font-size: 10px;
  color: var(--gray-mid);
  letter-spacing: 0.15em;
  margin-left: 32px;
  flex-shrink: 0;
  transition: color 0.12s;
}

.blog-row:hover .blog-row-num { color: #888; }

.blog-row-title {
  font-size: 19px;
  font-weight: 300;
  letter-spacing: -0.01em;
  flex: 1;
}

.blog-row-date {
  font-size: 11px;
  color: var(--gray-mid);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  transition: color 0.12s;
}

.blog-row:hover .blog-row-date { color: #888; }

/* Blog image tooltip */
.blog-img-tooltip {
  position: fixed;
  pointer-events: none;
  z-index: 500;
  opacity: 0;
  transition: opacity 0.2s;
  border: 1px solid var(--black);
}

.blog-img-tooltip img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.1);
}

.blog-img-tooltip .tip-coords {
  font-family: 'Courier New', monospace;
  font-size: 9px;
  padding: 4px 8px;
  background: var(--white);
  color: var(--gray-mid);
  letter-spacing: 0.05em;
  border-top: 1px solid var(--gray-light);
}

.blog-row:hover + .blog-img-tooltip,
.blog-img-tooltip.visible { opacity: 1; }

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-form-col {
  padding: 80px 64px;
  border-left: 1px solid var(--black);
  background: var(--white);
}

.contact-info-col {
  padding: 80px 64px;
  background: var(--white);
}

.form-field {
  margin-bottom: 40px;
  position: relative;
}

.form-field label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 12px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--black);
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  color: var(--black);
  padding: 8px 0;
  text-align: right;
  direction: rtl;
  border-radius: 0;
  transition: border-color 0.15s;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--blue);
}

.form-field textarea {
  height: 100px;
  resize: none;
}

.contact-info-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-info-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

.contact-info-value {
  font-size: 14px;
  font-weight: 300;
  color: var(--black);
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--black);
  background: var(--white);
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 80px;
  border-right: 1px solid var(--gray-light);
  border-left: 1px solid var(--gray-light);
}

.footer-logo img {
  height: 28px;
  filter: grayscale(1) contrast(1.5);
}

.footer-text {
  font-size: 11px;
  color: var(--gray-mid);
  letter-spacing: 0.05em;
  direction: rtl;
}

.footer-text a {
  color: var(--gray-mid);
  text-decoration: none;
  margin-right: 16px;
  border-bottom: 1px solid var(--gray-light);
  transition: color 0.15s;
}

.footer-text a:hover { color: var(--black); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero,
  .about-teaser,
  .about-journal,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-cell {
    height: 50vw;
    min-height: 300px;
    border-left: none;
    border-bottom: 1px solid var(--black);
  }

  .hero-content,
  .about-text,
  .journal-col,
  .contact-form-col,
  .contact-info-col {
    padding: 48px 32px;
  }

  .journal-col { border-left: none; border-bottom: 1px solid var(--black); }
  .contact-form-col { border-left: none; border-bottom: 1px solid var(--black); }

  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .service-cell {
    border-left: none;
    border-bottom: 1px solid var(--gray-light);
  }

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

  .testimonial-cell {
    border-left: none;
    border-bottom: 1px solid var(--gray-light);
  }

  .nav-links a {
    padding: 0 14px;
    font-size: 11px;
  }

  .page-header {
    padding: 48px 32px;
  }

  .footer-inner {
    flex-direction: column;
    height: auto;
    padding: 24px 32px;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .logos-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links a { padding: 0 10px; font-size: 10px; letter-spacing: 0.04em; }
}
