/*
Theme Name: Liam Engineering
Theme URI: https://ilanmikner.net/
Author: Liam Engineering
Description: תבנית עמוד בית בעברית עבור ליאם הנדסה ואילן מיקנר.
Version: 1.2.0
Text Domain: liam-engineering
*/

:root {
  --ink: #07111d;
  --ink-soft: #0e1b29;
  --paper: #f8f7f3;
  --gold: #c99a45;
  --gold-light: #e4bd72;
  --muted: #64707c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  direction: rtl;
  background: var(--paper);
  color: #141a20;
  font-family: Arial, "Noto Sans Hebrew", sans-serif;
}

.admin-bar .site-header { top: 32px; }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 78px;
  padding: 0 6vw;
  color: #fff;
  background: rgba(5, 14, 24, 0.96);
  border-bottom: 1px solid rgba(201, 154, 69, 0.45);
  backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 10px; direction: ltr; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 42px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  clip-path: polygon(50% 0, 100% 25%, 100% 100%, 0 100%, 0 25%);
}

.brand strong, .brand small { display: block; letter-spacing: 0.2em; }
.brand strong { font-size: 18px; }
.brand small { margin-top: 2px; color: var(--gold-light); font-size: 7px; }

nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  font-size: 14px;
}

nav a { position: relative; padding: 28px 0 25px; color: #dbe0e5; }
nav a:hover, nav a.active { color: var(--gold-light); }

nav a.active::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--gold);
}

.contact-link, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 4px;
  font-weight: 700;
}

.contact-link { color: #111820; background: var(--gold-light); }

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 13, 23, 0.98) 0%, rgba(5, 13, 23, 0.88) 52%, rgba(5, 13, 23, 0.48) 100%),
    radial-gradient(circle at 75% 15%, #294158 0, #0c1724 40%, #050d17 75%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to left, black, transparent 78%);
}

.hero-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(90px);
}

.hero-glow-one { top: -190px; right: 15%; background: rgba(212, 164, 78, 0.22); }
.hero-glow-two { bottom: -260px; left: 32%; background: rgba(70, 110, 150, 0.22); }

.hero-content {
  position: relative;
  z-index: 4;
  width: min(660px, 86vw);
  padding: 118px 7vw 90px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5.6vw, 74px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 34px;
  color: #d1d8df;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button-gold { color: #101820; background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
.button-ghost { border: 1px solid rgba(228, 189, 114, 0.7); }

.building-composition {
  position: absolute;
  right: 57%;
  bottom: 0;
  left: 0;
  height: 86%;
  opacity: 0.82;
  transform: skewY(-1deg);
}

.tower {
  position: absolute;
  bottom: -20px;
  border: 1px solid rgba(228, 189, 114, 0.25);
  background:
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(211, 226, 238, 0.28) 35px 38px),
    repeating-linear-gradient(90deg, rgba(10, 19, 29, 0.95) 0 22px, rgba(164, 192, 214, 0.26) 23px 35px),
    linear-gradient(145deg, #0d1a27, #21384b);
  box-shadow: -30px 25px 60px rgba(0,0,0,.42);
}

.tower-back { left: 6%; width: 24%; height: 64%; opacity: .5; }
.tower-left { left: 20%; width: 25%; height: 80%; }
.tower-center { left: 43%; width: 28%; height: 94%; }
.tower-right { left: 69%; width: 25%; height: 73%; }

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading { margin-bottom: 34px; text-align: center; }
.section-heading h2 { margin-bottom: 12px; font-size: clamp(30px, 4vw, 46px); }
.section-heading > span { display: block; width: 64px; height: 3px; margin: 0 auto; background: var(--gold); }

.focus-grid, .article-grid { display: grid; gap: 18px; }
.focus-grid { grid-template-columns: repeat(4, 1fr); }

.focus-card {
  min-height: 218px;
  padding: 28px 24px;
  border: 1px solid #e3dfd6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(13, 25, 37, 0.05);
}

.focus-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: #8c6529;
  font-size: 27px;
  border: 1px solid #e5c88f;
  border-radius: 50%;
}

.focus-card h3 { margin-bottom: 10px; }
.focus-card p, .article-card p { color: var(--muted); line-height: 1.7; }
.articles-preview { padding-top: 36px; }

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  text-align: right;
}

.section-heading-row h2 { margin-bottom: 0; }
.section-heading-row > a { color: #8c6529; font-weight: 700; }
.article-grid { grid-template-columns: repeat(3, 1fr); }

.article-card {
  overflow: hidden;
  border: 1px solid #ded9cf;
  border-radius: 14px;
  background: white;
}

.article-visual {
  position: relative;
  display: flex;
  align-items: end;
  height: 180px;
  padding: 18px;
  overflow: hidden;
  color: rgba(255,255,255,.5);
  font-size: 52px;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(5,14,24,.2), rgba(5,14,24,.88)),
    repeating-linear-gradient(90deg, #1a2c3c 0 28px, #324b5f 29px 42px);
}

.article-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(5,14,24,.04) 35%, rgba(5,14,24,.72) 100%);
}

.article-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.article-card:hover .article-visual img { transform: scale(1.045); }
.article-visual > span { position: relative; z-index: 2; }
.article-visual-2 img { filter: saturate(.82) brightness(1.04); }
.article-visual-3 img { filter: saturate(.74) contrast(1.08); }
.article-body { padding: 24px; }
.article-body small { color: #9a712f; font-weight: 700; }
.article-body h3 { margin: 8px 0 10px; font-size: 22px; }
.article-body > a { color: #8c6529; font-weight: 800; }

.keyword-strip {
  position: relative;
  z-index: 6;
  color: #fff;
  background: var(--ink-soft);
  border-top: 1px solid rgba(228, 189, 114, 0.42);
  border-bottom: 1px solid rgba(228, 189, 114, 0.24);
}

.keyword-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 34px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

.keyword-shell h2 {
  margin: 0;
  color: var(--gold-light);
  font-size: 16px;
  white-space: nowrap;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.keyword-list a {
  padding: 7px 12px;
  color: #dce3e9;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.35fr);
  gap: clamp(46px, 8vw, 110px);
  align-items: start;
}

.section-heading-side {
  position: sticky;
  top: 118px;
  text-align: right;
}

.section-heading-side > span {
  margin-right: 0;
}

.prose-block p,
.renewal-content p {
  color: #47535e;
  font-size: 17px;
  line-height: 1.95;
}

.section-intro {
  width: min(820px, 100%);
  margin: 0 auto 20px;
  color: #5c6873;
  font-size: 17px;
  line-height: 1.85;
}

.section-intro-right {
  margin-right: 0;
  text-align: right;
}

.activity-section,
.articles-section {
  background: #fff;
  border-top: 1px solid #ece8df;
  border-bottom: 1px solid #ece8df;
}

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

.focus-number {
  display: block;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 31px;
  font-weight: 900;
  letter-spacing: .04em;
}

.focus-card:hover,
.article-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(13, 25, 37, 0.1);
}

.focus-card,
.article-card,
.project-card {
  transition: transform .2s ease, box-shadow .2s ease;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.project-card {
  overflow: hidden;
  border: 1px solid #ded9cf;
  border-radius: 12px;
  background: #fff;
}

.project-image {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-evenly;
  height: 230px;
  padding: 0 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #b9cada 0%, #e6edf1 58%, #879a75 59%, #66765a 100%);
}

.project-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 50%, rgba(5,14,24,.22));
}

.project-image > span {
  position: absolute;
  top: 12px;
  right: 14px;
  color: rgba(6,17,29,.36);
  font-size: 34px;
  font-weight: 900;
}

.project-image i {
  width: 26%;
  height: 74%;
  border-top: 8px solid #f7f4ee;
  background:
    repeating-linear-gradient(0deg, #d8d9d5 0 15px, #738493 16px 20px),
    repeating-linear-gradient(90deg, #efede7 0 8px, #7790a1 9px 15px);
  box-shadow: 0 7px 12px rgba(0,0,0,.2);
}

.project-image i:nth-of-type(2) { height: 92%; }
.project-image i:nth-of-type(3) { height: 66%; }
.project-card-2 .project-image { filter: hue-rotate(-10deg) saturate(.85); }
.project-card-3 .project-image { filter: hue-rotate(8deg) brightness(.96); }
.project-card-4 .project-image { filter: saturate(.7) brightness(1.08); }
.project-card-5 .project-image { filter: hue-rotate(18deg) saturate(.8); }

.project-details { padding: 18px; }
.project-details small { color: #9a712f; font-weight: 700; }
.project-details h3 { margin: 6px 0 4px; font-size: 20px; }
.project-details p { margin: 0; color: #69747d; }
.center-action { display: flex; justify-content: center; margin-top: 32px; }

.renewal-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 690px;
  color: #fff;
  background: var(--ink);
}

.renewal-content {
  align-self: center;
  padding: 72px 8vw 72px 7vw;
}

.renewal-content h2 {
  margin-bottom: 24px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.15;
}

.renewal-content p { color: #cbd4dc; }
.inline-link { color: #ad7d31; font-weight: 800; }
.renewal-content .inline-link { color: var(--gold-light); }

.renewal-visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(7,17,29,.22), rgba(7,17,29,.92)),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(228,189,114,.12) 48px 49px),
    repeating-linear-gradient(90deg, #22384a 0 54px, #0e1d2b 55px 95px);
}

.renewal-visual > span {
  position: absolute;
  right: 10%;
  bottom: 4%;
  color: rgba(228,189,114,.15);
  font-size: min(32vw, 430px);
  font-weight: 900;
  line-height: .8;
}

.renewal-plan {
  position: absolute;
  top: 15%;
  right: 12%;
  width: 54%;
  height: 48%;
  border: 1px solid rgba(228,189,114,.38);
  transform: rotate(-7deg);
  box-shadow: 18px 18px 0 rgba(228,189,114,.06);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  position: relative;
  min-height: 250px;
  padding: 24px 28px;
  border-top: 1px solid #d9d4ca;
  border-left: 1px solid #d9d4ca;
}

.process-list li:last-child { border-left: 0; }
.process-list li > span { color: #a77932; font-size: 13px; font-weight: 800; }
.process-list h3 { margin: 18px 0 12px; font-size: 22px; }
.process-list p { color: #5d6872; line-height: 1.75; }
.article-grid-six { grid-template-columns: repeat(3, 1fr); }

.deep-section {
  padding-top: 104px;
  padding-bottom: 104px;
}

.why-section {
  color: #fff;
  background: var(--ink-soft);
  border-top: 1px solid rgba(228,189,114,.3);
}

.light-heading h2 { color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); }

.why-grid article {
  min-height: 220px;
  padding: 24px 30px;
  border-left: 1px solid rgba(255,255,255,.13);
}

.why-grid article:last-child { border-left: 0; }
.why-grid article > span { color: var(--gold); font-size: 30px; font-weight: 900; }
.why-grid h3 { margin: 22px 0 10px; }
.why-grid p { color: #bac4cd; line-height: 1.75; }

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 68px max(7vw, calc((100vw - 1180px) / 2));
  background: #efe9dd;
}

.contact-section > div { max-width: 720px; }
.contact-section h2 { margin-bottom: 12px; font-size: clamp(30px, 4vw, 46px); }
.contact-section p:last-child { margin-bottom: 0; color: #5c6873; font-size: 17px; line-height: 1.8; }

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  min-height: 150px;
  padding: 30px 6vw;
  color: #b8c1ca;
  background: #050d17;
  border-top: 1px solid rgba(228,189,114,.3);
}

footer p { margin: 0; font-size: 13px; }
footer p:last-child { text-align: left; }
.footer-brand { justify-self: right; color: #fff; }

.article-page {
  min-height: 100vh;
  background: var(--paper);
}

.article-detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  min-height: 530px;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.article-detail-copy {
  align-self: center;
  padding: 90px 7vw;
}

.article-breadcrumbs {
  margin-bottom: 28px;
  color: #b9c5cf;
  font-size: 14px;
}

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

.article-detail-copy h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 66px);
}

.article-lead {
  max-width: 720px;
  margin-bottom: 26px;
  color: #d2dae1;
  font-size: 19px;
  line-height: 1.8;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: #aeb9c3;
  font-size: 14px;
}

.article-detail-image {
  position: relative;
  min-height: 420px;
}

.article-detail-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(7,17,29,.88), rgba(7,17,29,.06) 60%);
}

.article-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(40px, 8vw, 110px);
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0 104px;
}

.article-copy h2 {
  margin: 48px 0 16px;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.25;
}

.article-copy h2:first-child { margin-top: 0; }

.article-copy p,
.article-copy li {
  color: #46535e;
  font-size: 18px;
  line-height: 1.95;
}

.article-copy ul {
  margin: 20px 0 30px;
  padding-right: 24px;
}

.article-aside {
  align-self: start;
  position: sticky;
  top: 118px;
  padding: 24px;
  border: 1px solid #ded9cf;
  border-radius: 12px;
  background: #fff;
}

.article-aside strong { display: block; margin-bottom: 12px; }
.article-aside p { color: #65717b; font-size: 14px; line-height: 1.7; }
.article-aside .button { width: 100%; margin-top: 8px; }

.related-articles {
  padding: 74px 0;
  background: #fff;
  border-top: 1px solid #e5e0d6;
}

.related-articles h2 { margin-bottom: 28px; font-size: 34px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { padding: 22px; border: 1px solid #ded9cf; border-radius: 10px; }
.related-card small { color: #9a712f; font-weight: 700; }
.related-card h3 { margin: 10px 0 0; line-height: 1.35; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .building-composition { right: 48%; opacity: .48; }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .five-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card:last-child { grid-column: 1 / -1; }
  .split-section { grid-template-columns: 1fr; gap: 22px; }
  .section-heading-side { position: static; }
  .renewal-section { grid-template-columns: 1fr; }
  .renewal-visual { min-height: 420px; order: 2; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .article-grid-six { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .article-detail-hero { grid-template-columns: 1fr; }
  .article-detail-image { min-height: 360px; order: -1; }
  .article-content-shell { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .related-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-self: center; }
  footer p:last-child { text-align: center; }
}

@media (max-width: 640px) {
  .site-header { padding: 0 20px; }
  .contact-link { min-height: 40px; padding: 0 15px; font-size: 13px; }
  .hero { min-height: 680px; }
  .hero-content { width: auto; padding: 88px 22px 210px; }
  .hero-copy { font-size: 16px; }
  .building-composition { right: 0; height: 36%; }
  .focus-grid, .article-grid { grid-template-columns: 1fr; }
  .section-heading-row { display: block; }
  .section-heading-row > a { display: inline-block; margin-top: 12px; }
  .keyword-shell { grid-template-columns: 1fr; gap: 14px; }
  .keyword-list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .keyword-list a { white-space: nowrap; }
  .project-grid,
  .process-list,
  .article-grid-six,
  .why-grid { grid-template-columns: 1fr; }
  .project-card:last-child { grid-column: auto; }
  .process-list li,
  .why-grid article { border-left: 0; border-bottom: 1px solid rgba(100,100,100,.2); }
  .renewal-content { padding: 64px 24px; }
  .renewal-visual { min-height: 300px; }
  .contact-section { display: block; padding: 54px 22px; }
  .contact-section .button { margin-top: 24px; }
  .article-detail-copy { padding: 58px 22px 68px; }
  .article-content-shell { padding: 62px 0 74px; }
}
