/* ============================================================
   North Renovations Co — shared styles
   Minimalist, responsive, RTL-aware (RU / HE)
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f5f2;
  --bg-dark: #1c1c1a;
  --text: #1c1c1a;
  --text-soft: #5f5c56;
  --border: #e5e2db;
  --accent: #c2703d;         /* warm terracotta */
  --accent-dark: #a85c2d;
  --accent-soft: #f5e9e0;
  --ok: #2f7d55;
  --no: #b23b3b;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --radius: 14px;
  --maxw: 1120px;
  --font: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* RTL handling ------------------------------------------------ */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .nav__links { flex-direction: row-reverse; }
html[dir="rtl"] .footer__grid { direction: rtl; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; color: var(--text-soft); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; scroll-margin-top: 80px; }
.section--soft { background: var(--bg-soft); }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; margin-bottom: .6rem; }
.lead { font-size: 1.1rem; max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 1px solid transparent; transition: .18s ease;
  font-family: inherit;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Header / nav ------------------------------------------------ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.1rem; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: .95rem;
}
.nav__links { display: flex; align-items: center; gap: 1.4rem; }
.nav__links a { color: var(--text-soft); font-weight: 500; font-size: .95rem; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__right { display: flex; align-items: center; gap: .8rem; }

/* Language switch */
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang button {
  border: 0; background: transparent; padding: .35rem .7rem; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: .82rem; color: var(--text-soft);
}
.lang button.is-active { background: var(--text); color: #fff; }

/* Mobile nav toggle */
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; transition: .2s; }

/* Hero -------------------------------------------------------- */
.hero { padding: clamp(56px, 9vw, 110px) 0; background: linear-gradient(180deg, var(--accent-soft), #fff); scroll-margin-top: 68px; }
.hero__inner { max-width: 760px; }
.hero h1 { margin-bottom: .3em; }
.hero .lead { margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Cards / grids ---------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card__icon {
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: 14px;
  background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center; font-size: 1.3rem;
}
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; font-size: .95rem; }

/* Steps ------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step__num {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--text); color: #fff; display: grid; place-items: center; font-weight: 600;
}

/* Comparison table ------------------------------------------- */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 720px; background: #fff; }
table.cmp th, table.cmp td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--border); font-size: .93rem; vertical-align: top; }
table.cmp thead th { position: sticky; top: 0; background: var(--bg-soft); font-weight: 600; }
table.cmp tbody th { font-weight: 500; color: var(--text-soft); background: #fff; }
table.cmp col.col-feature { width: 26%; }
.cmp .tier { display: flex; flex-direction: column; gap: 2px; }
.cmp .tier b { font-size: 1rem; }
.cmp .tier span { font-size: .78rem; color: var(--text-soft); font-weight: 400; }
.cmp .col-best { background: var(--accent-soft); }
.cmp thead .col-best { background: var(--accent); color: #fff; }
.cmp thead .col-best span { color: rgba(255,255,255,.85); }
.yes { color: var(--ok); font-weight: 600; }
.no  { color: var(--no); font-weight: 600; }
.cmp-cta { margin-top: 24px; text-align: center; }

/* Projects ---------------------------------------------------- */
.map-figure { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-soft); }
.map-figure svg { width: 100%; height: auto; display: block; }
.map-cap { font-size: .85rem; color: var(--text-soft); padding: 10px 16px; border-top: 1px solid var(--border); background:#fff; }
.project { overflow: hidden; padding: 0; }
.project__img { aspect-ratio: 16/10; background: linear-gradient(135deg, #d9cec2, #b8a894); display:grid; place-items:center; color:#fff; font-size:2rem; }
.project__body { padding: 20px 22px; }
.project__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .82rem; color: var(--text-soft); margin-bottom: .6rem; }
.project__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.badge { display:inline-block; background: var(--accent-soft); color: var(--accent-dark); font-size:.72rem; font-weight:600; padding:.2rem .6rem; border-radius:999px; }

/* Contact ----------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--text); transition: .15s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%235f5c56' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-inline-end: 2.4rem; }
html[dir="rtl"] .field select { background-position: left 1rem center; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.field .error { color: var(--no); font-size: .8rem; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--no); }
.field.invalid .error { display: block; }
.form-note { font-size: .8rem; color: var(--text-soft); margin-top: 10px; }
.form-success {
  display: none; background: #eef7f1; border: 1px solid #bfe0cd; color: var(--ok);
  padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 500;
}
.form-success.show { display: block; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list .ic { flex:none; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); display:grid; place-items:center; font-size:1.1rem; }
.info-list b { display:block; font-size:.95rem; }
.info-list span { color: var(--text-soft); font-size: .92rem; }

/* Footer ------------------------------------------------------ */
.footer { background: var(--bg-dark); color: #d7d4cd; padding: 48px 0 28px; margin-top: 20px; }
.footer a { color: #d7d4cd; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .9rem; }
.footer .brand { color: #fff; margin-bottom: 12px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: .82rem; color: #96938c; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; }

/* Utility ----------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.placeholder { outline: 1px dashed var(--accent); outline-offset: 2px; }
.mt-2 { margin-top: 2rem; }

/* Responsive -------------------------------------------------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .nav__links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: flex-start;
    background: #fff; border-bottom: 1px solid var(--border); padding: 18px 20px; gap: 1rem;
    transform: translateY(-120%); transition: transform .25s ease; box-shadow: var(--shadow);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__toggle { display: block; }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
