/*
Theme Name: REBA Group
Theme URI: https://rebagroup.az
Author: REBA GROUP MMC
Description: Çoxdilli (AZ / EN / RU) korporativ sayt mövzusu. Ağ fon, #45698D rəngli mətn və ikonlar. / Multilingual corporate theme (AZ / EN / RU): white background, #45698D text and icons.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: reba-group
*/

:root {
  --c: #45698D;
  --line: rgba(69, 105, 141, .30);
  --line-soft: rgba(69, 105, 141, .16);
  --wrap: 1200px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'IBM Plex Sans Condensed', 'IBM Plex Sans', 'Arial Narrow', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--c);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; margin: 0; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2 * clamp(20px, 4vw, 48px), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; border: 1px solid var(--c); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line-soft); }
.admin-bar .site-header { top: 32px; }
.bar { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 30px; margin-left: auto; font-weight: 500; font-size: .98rem; }
.nav a { padding: 6px 0; }
.langs { display: flex; gap: 6px; align-items: center; }
.lang { display: flex; align-items: center; gap: 6px; padding: 5px 6px 4px; border-bottom: 2px solid transparent; font-size: .8rem; font-weight: 600; opacity: .72; }
.lang:hover { opacity: 1; text-decoration: none; }
.lang[aria-current="true"] { opacity: 1; border-bottom-color: var(--c); }
.lang svg { width: 26px; height: 18px; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 9px 10px; color: var(--c); cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--c); }
.burger span + span { margin-top: 5px; }

@media (max-width: 960px) {
  .bar { gap: 14px; min-height: 66px; }
  .brand img { height: 38px; }
  .burger { display: block; }
  .langs { order: 2; }
  .burger { order: 3; margin-left: 0; }
  .brand { margin-right: auto; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px clamp(20px, 4vw, 48px) 16px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-top: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav a:first-child { border-top: 0; }
  .lang-code { display: none; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 13px 26px; border: 1.5px solid var(--c); background: #fff; color: var(--c); font: 600 1rem/1.2 var(--font); border-radius: 3px; cursor: pointer; transition: background-color .15s, color .15s; }
.btn:hover { background: var(--c); color: #fff; text-decoration: none; }
.btn-link { display: inline-block; padding: 13px 4px; font-weight: 600; border-bottom: 1.5px solid var(--line); }
.btn-link:hover { border-bottom-color: var(--c); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 88px); }
.hero-top { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 72px); align-items: end; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 5rem); line-height: 1.02; font-weight: 600; max-width: 15ch; }
.hero-text { font-size: 1.125rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 8px; }
.lineup { margin-top: clamp(24px, 4vw, 56px); }
.lineup img { width: 100%; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { display: flex; align-items: center; gap: 14px; padding: 20px 18px; font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; line-height: 1.15; }
.facts li + li { border-left: 1px solid var(--line); }
.facts svg { flex: none; width: 38px; height: 38px; }
@media (max-width: 900px) {
  .hero-top { grid-template-columns: 1fr; align-items: start; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) { .facts li { padding: 16px 10px; font-size: 1.05rem; gap: 10px; } .facts svg { width: 30px; height: 30px; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; margin-bottom: .55em; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; margin-bottom: clamp(20px, 3vw, 36px); }
.section-head h2 { margin-bottom: 0; }
.section-head p { margin: 0; font-size: 1.05rem; }

/* About */
.about { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); }
.about p { max-width: 64ch; }
.mission { border-left: 1px solid var(--line); padding-left: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.mission img { width: 92px; height: auto; }
.mission h3 { font-size: 1.1rem; font-weight: 500; font-family: var(--font); }
.mission .big { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.12; margin: 0; }
.mission .tag { margin: 0; font-size: .98rem; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .mission { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; } }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 4vw, 52px) clamp(16px, 3vw, 40px); margin-top: clamp(24px, 4vw, 44px); }
.services-grid a { display: block; }
.services-grid img { width: clamp(84px, 9vw, 116px); height: clamp(84px, 9vw, 116px); object-fit: contain; object-position: left center; margin-bottom: 14px; transition: transform .2s; }
.services-grid a:hover img { transform: translateY(-3px); }
.services-grid a:hover { text-decoration: none; }
.services-grid a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.services-grid span { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; line-height: 1.15; display: block; max-width: 14ch; overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .services-grid span { font-size: 1.12rem; } }

/* Rent / Sale / Repair */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trio article { padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px); }
.trio article + article { border-left: 1px solid var(--line); }
.trio article:first-child { padding-left: 0; }
.trio article:last-child { padding-right: 0; }
.trio img { width: 84px; height: 84px; object-fit: contain; object-position: left center; margin-bottom: 18px; }
.trio h3 { font-size: 1.9rem; margin-bottom: .5em; line-height: 1.1; }
.trio p { font-size: 1rem; margin: 0; }
.trio-cta { margin-top: 28px; }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; } .trio article, .trio article:first-child, .trio article:last-child { padding-inline: 0; } .trio article + article { border-left: 0; border-top: 1px solid var(--line); } }

/* Products */
.product { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 72px); padding-block: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line); align-items: start; }
.product:last-child { border-bottom: 1px solid var(--line); }
.product h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; margin-bottom: .55em; }
.product p { max-width: 54ch; }
.media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px clamp(12px, 2vw, 28px); align-items: end; }
.media img { width: 100%; height: clamp(120px, 14vw, 180px); object-fit: contain; object-position: center bottom; }
.media.tall img { height: clamp(140px, 17vw, 220px); }
.media.big { grid-template-columns: repeat(2, 1fr); align-items: center; }
.media.big img { height: clamp(150px, 20vw, 260px); object-position: center; }
.media.wide { grid-template-columns: 1fr; }
.media.wide img { height: auto; max-height: 300px; object-position: center; }
.media.one { grid-template-columns: 1fr; }
.media.one img { height: clamp(150px, 20vw, 260px); object-position: center; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .media { grid-template-columns: repeat(2, 1fr); } }

.hexlist { margin: 1.1em 0 0; }
.hexlist li { position: relative; padding-left: 1.6rem; margin: .35em 0; }
.hexlist li::before { content: ''; position: absolute; left: 0; top: .5em; width: .78rem; height: .78rem; background: var(--c); clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.1em 0 0; }
.tags li { border: 1px solid var(--line); border-radius: 3px; padding: 3px 12px; font-size: .95rem; font-weight: 500; }

/* Contact */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.contact-lead { max-width: 44ch; }
.contact-list { margin-top: 28px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: center; font-size: 1.1rem; font-weight: 500; }
.contact-list svg { flex: none; width: 26px; height: 26px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--c); font: inherit; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--c); outline-offset: 1px; border-color: var(--c); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { grid-column: 1 / -1; margin: 0; padding: 14px 16px; border: 1.5px solid var(--c); border-radius: 3px; font-weight: 500; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px; font-size: .95rem; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; justify-content: space-between; }
.foot img { height: 40px; width: auto; }
.foot p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
