/* ===== Gulf Great Company — site styles ===== */
:root {
  --accent: #1ea805;          /* brand green rgb(30,168,5) */
  --accent-dark: #178003;
  --accent-soft: #eaf8e6;     /* pale green tint */
  --ink: #14181a;
  --ink-soft: #34363d;
  --gray: #6b6f76;
  --line: #e6e7ea;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(20, 21, 25, .08);
  --shadow-lg: 0 16px 48px rgba(20, 21, 25, .14);
  --maxw: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--gray); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 13px 24px; border-radius: 8px; font-weight: 700; font-size: .95rem;
  cursor: pointer; border: 2px solid transparent; transition: .18s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(30,168,5,.28); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30,168,5,.36); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); transform: translateY(-2px); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 104px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 76px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-weight: 600; font-size: .95rem; color: var(--ink-soft); transition: color .15s; }
.nav a:hover, .nav a.active { color: var(--accent-dark); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; order: 3; }
.nav { order: 2; }
.lang-toggle { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 700; font-size: .85rem; color: var(--ink-soft); cursor: pointer; transition: .15s; white-space: nowrap; }
.lang-toggle:hover { border-color: var(--accent); color: var(--accent-dark); }
.back-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 15px; font: inherit; font-weight: 600; font-size: .9rem; color: var(--ink-soft); cursor: pointer; transition: .15s; }
.back-btn::before { content: "←"; font-weight: 800; }
html[dir="rtl"] .back-btn::before { content: "→"; }
.back-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.back-btn-light { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.07); margin-bottom: 20px; }
.back-btn-light:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.16); }

/* ---- Hero ---- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, #0f1512 0%, #1b2520 55%, #103317 100%);
}
.hero::after {
  content: ""; position: absolute; top: 0; right: -10%; width: 55%; height: 100%;
  background: linear-gradient(135deg, transparent 35%, var(--accent) 36%, var(--accent) 42%, transparent 43%, transparent 55%, var(--accent) 56%, var(--accent) 60%, transparent 61%);
  opacity: .9;
}
.hero .wrap { position: relative; z-index: 2; padding: 88px 24px 96px; max-width: var(--maxw); }
.hero .eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .82rem; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); max-width: 16ch; }
.hero p { font-size: 1.12rem; max-width: 52ch; color: #d4d6db; margin: 18px 0 30px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Sections ---- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow { color: var(--accent-dark); font-weight: 700; letter-spacing: .15em; text-transform: uppercase; font-size: .8rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-top: 8px; }
.section-head p { color: var(--gray); font-size: 1.05rem; }
.bg-soft { background: var(--bg-soft); }

/* ---- Category / product grid ---- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: .2s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #dcdde0; }
.card .thumb { aspect-ratio: 4 / 3; background: #fff; display: flex; align-items: center; justify-content: center; padding: 18px; border-bottom: 1px solid var(--line); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center center; margin: 0 auto; }
.card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card .body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.card .body p { color: var(--gray); font-size: .92rem; flex: 1; margin: 0 0 16px; }
.card .more { color: var(--accent-dark); font-weight: 700; font-size: .9rem; }
.card .more::after { content: " →"; }

/* ---- Stats band ---- */
.stats-band {
  position: relative; overflow: hidden; padding: 0;
  background: linear-gradient(120deg, #0f1512 0%, #15241a 55%, #0c2c14 100%);
}
.stats-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 120% at 85% 0%, rgba(30,168,5,.22), transparent 60%),
    radial-gradient(50% 120% at 10% 100%, rgba(30,168,5,.16), transparent 60%);
  pointer-events: none;
}
.stats-band .wrap { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 56px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; text-align: center; }
.stat { padding: 14px 18px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: rgba(255,255,255,.12); }
.stat .num {
  font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; line-height: 1;
  color: #fff; letter-spacing: -.02em; display: inline-flex; align-items: baseline;
}
.stat .num .suffix { color: var(--accent); margin-left: 2px; }
.stat .bar { width: 34px; height: 3px; border-radius: 3px; background: var(--accent); margin: 14px auto 12px; box-shadow: 0 0 14px rgba(30,168,5,.7); }
.stat .lbl { color: #aeb4b0; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; min-height: 2.6em; display: flex; align-items: center; justify-content: center; }

/* ---- Category detail ---- */
.cat-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cat-hero .photo { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 24px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cat-hero .photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.cat-hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.cat-hero .intro { font-size: 1.08rem; color: var(--ink-soft); }
.features { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.features li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-weight: 500; }
.features li::before { content: "✓"; color: var(--accent-dark); font-weight: 800; }

/* ---- Spec table ---- */
.spec-block { margin-top: 28px; }
.spec-block .caption { font-weight: 700; font-size: 1.1rem; margin: 32px 0 12px; }
.spec-block .table-photo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; width: 260px; max-width: 100%; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.spec-block .table-photo img { width: 100%; height: 100%; object-fit: contain; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.spec { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .92rem; }
table.spec th, table.spec td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.spec thead th { background: var(--ink); color: #fff; font-weight: 700; position: sticky; top: 0; }
table.spec tbody tr:nth-child(even) { background: var(--bg-soft); }
table.spec td.label, table.spec th.label { font-weight: 700; color: var(--ink); background: #fff; position: sticky; left: 0; }
table.spec tbody tr:nth-child(even) td.label { background: var(--bg-soft); }
table.spec tbody tr:hover { background: var(--accent-soft); }

/* ---- Mobile spec picker (tap a model to see its specs) ---- */
.spec-mobile { display: none; }
.pick-group { font-size: 1.05rem; margin: 24px 0 10px; }
.pick-list { display: grid; gap: 10px; }
.pick-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 15px 16px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; box-shadow: var(--shadow); }
.pick-row:active { background: var(--bg-soft); }
.pick-row .pick-cta { font-size: .8rem; font-weight: 600; color: var(--accent-dark); white-space: nowrap; }
.spec-pick-hint { margin-bottom: 14px; }
@media (max-width: 640px) {
  .spec-desktop { display: none; }
  .spec-mobile { display: block; }
}

/* ---- Families (construction) ---- */
.family { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); margin-bottom: 22px; }
.family .photo { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.family .photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.family h3 { font-size: 1.25rem; }
.family-block { margin-bottom: 40px; }
.family-head { margin-bottom: 20px; }
.family-head h3 { font-size: 1.35rem; }
.family-head p { margin-top: 4px; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.model-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; padding: 0; font: inherit; text-align: center; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.model-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.12); border-color: var(--accent-dark); }
.model-card .photo { background: #fff; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 14px; overflow: hidden; }
.model-card .photo img { width: 100%; height: 100%; object-fit: contain; }
.model-card .model-name { text-align: center; font-weight: 700; color: var(--ink); padding: 12px 10px 4px; border-top: 1px solid var(--line); }
.model-card .model-cta { display: block; font-size: .8rem; font-weight: 600; color: var(--accent-dark); padding: 0 10px 12px; }

/* ---- Model spec modal ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(16,17,21,.62); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 1000; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { position: relative; background: #fff; border-radius: var(--radius); max-width: 760px; width: 100%; max-height: 90vh; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.modal-photo { background: #fff; display: flex; align-items: center; justify-content: center; padding: 24px; border-right: 1px solid var(--line); }
.modal-photo img { width: 100%; height: auto; object-fit: contain; }
.modal-body { padding: 26px; }
.modal-body h3 { font-size: 1.5rem; margin-bottom: 14px; }
.modal-body table.spec { min-width: 0; font-size: .9rem; }
.modal-body table.spec td { white-space: normal; }
.modal-close { position: absolute; top: 10px; right: 12px; background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: 999px; width: 36px; height: 36px; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); z-index: 1; }
.modal-close:hover { background: var(--bg-soft); }
@media (max-width: 640px) {
  .modal { grid-template-columns: 1fr; }
  .modal-photo { border-right: none; border-bottom: 1px solid var(--line); }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 600; color: var(--ink-soft); }

/* ---- Breadcrumb ---- */
.crumb { padding: 22px 0 0; font-size: .88rem; color: var(--gray); }
.crumb a:hover { color: var(--accent-dark); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.info-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-row .ic { font-size: 1.3rem; }
.info-row a:hover { color: var(--accent-dark); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.field textarea { min-height: 120px; resize: vertical; }
/* ---- Auto-scrolling photo marquee (production capacity) ---- */
.photo-marquee { overflow: hidden; position: relative; width: 100%; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.photo-track { display: flex; gap: 16px; width: max-content; animation: marquee 55s linear infinite; }
.photo-marquee:hover .photo-track { animation-play-state: paused; }
.photo-track img { height: 210px; width: 280px; flex: 0 0 auto; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) { .photo-track img { height: 150px; width: 205px; } .photo-track { animation-duration: 40s; } }
@media (prefers-reduced-motion: reduce) { .photo-track { animation: none; } }

.addr-note { display: block; font-size: .82rem; color: var(--gray); font-style: italic; margin-top: 4px; }
.site-footer .addr-note { opacity: .75; }
.addr-link { color: inherit; display: inline-block; }
.addr-link:hover .muted { color: var(--accent-dark); text-decoration: underline; }
.btn-sm { padding: 8px 14px; font-size: .85rem; margin-top: 10px; }
.map-embed { width: 100%; height: 430px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) { .map-embed { height: 320px; } }

/* ---- CTA band ---- */
.cta-band { background: var(--ink); color: #fff; text-align: center; }
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.cta-band p { color: #c9cbd1; max-width: 50ch; margin: 0 auto 26px; }

/* ---- Footer ---- */
.site-footer { background: #121317; color: #c2c4c9; padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer a { color: #c2c4c9; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .92rem; }
.foot-logo { background:#fff; border-radius: 8px; padding: 10px 12px; display:inline-block; margin-bottom: 14px; }
.foot-logo img { height: 58px; }
.foot-bottom { border-top: 1px solid #26282e; margin-top: 40px; padding-top: 20px; font-size: .85rem; color: #80838a; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---- Responsive ---- */
@media (max-width: 940px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cat-hero, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .stat + .stat::before { display: none; }
  .family { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* Compact sticky header on phones */
  .site-header .wrap { height: 64px; }
  .brand img { height: 44px; }
  /* Slide-down mobile nav, offset to the compact header height */
  .nav { position: fixed; inset: 64px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .25s ease; max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 15px 24px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 10px 24px; justify-content: center; }
  .nav-toggle { display: block; padding: 6px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  /* Tighter hero + section spacing */
  .hero .wrap { padding: 56px 20px 64px; }
  .hero p { font-size: 1.02rem; }
  .section-head { margin-bottom: 32px; }
  /* Model gallery: comfortable 2-up on phones */
  .model-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .model-card .model-name { font-size: .92rem; padding: 10px 8px 2px; }
  .model-card .model-cta { font-size: .74rem; padding: 0 8px 10px; }
  /* Bigger tap target for closing the modal */
  .modal-overlay { padding: 12px; }
  .modal-close { width: 40px; height: 40px; }
  .modal-body { padding: 20px; }
  /* Stack the footer credit line */
  .foot-bottom { flex-direction: column; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .model-grid { gap: 12px; }
}

/* ---- RTL / Arabic ---- */
html[dir="rtl"] body { font-family: "Tajawal", "Inter", system-ui, -apple-system, Arial, sans-serif; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { letter-spacing: 0; }
html[dir="rtl"] .card .more::after { content: " ←"; }
/* Keep numbers, model codes and contact details left-to-right inside RTL */
html[dir="rtl"] table.spec td:not(.label),
html[dir="rtl"] table.spec th:not(.label),
html[dir="rtl"] .model-name,
html[dir="rtl"] .pick-row > span:first-child { direction: ltr; }
html[dir="rtl"] .pick-row > span:first-child { text-align: right; }
/* Sticky first column sits on the right in RTL */
html[dir="rtl"] table.spec td.label,
html[dir="rtl"] table.spec th.label { left: auto; right: 0; }
html[dir="rtl"] [dir="ltr"] { unicode-bidi: embed; }
