/* Tair Al-Samman General Contracting Co. Ltd. — stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wdth,wght@0,62..125,300..700;1,62..125,300..700&display=swap');

:root {
  --paper: #F5F7F6;        /* drafting paper */
  --paper-2: #EBEFEE;      /* limestone panel */
  --line: #D5DCDB;         /* grid / hairlines */
  --line-strong: #B9C3C2;
  --ink: #26313A;          /* text */
  --ink-soft: #5B6772;     /* secondary text */
  --water: #4A6274;        /* Shatt al-Arab slate blue — accent */
  --water-deep: #364A59;
  --sand: #B9A888;         /* quail plumage — small details */
  --white: #FFFFFF;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: 'wdth' 100;
}

img { max-width: 100%; display: block; }
a { color: var(--water); text-underline-offset: 3px; }
a:hover { color: var(--water-deep); }
:focus-visible { outline: 2px solid var(--water); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--font); color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1.02; font-weight: 600; font-variation-settings: 'wdth' 118; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.1; font-weight: 600; font-variation-settings: 'wdth' 112; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 600; font-variation-settings: 'wdth' 105; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 58ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 247, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-name { font-weight: 600; font-size: 1rem; line-height: 1.15; font-variation-settings: 'wdth' 110; }
.brand-name small { display: block; font-weight: 400; font-size: 0.78rem; color: var(--ink-soft); font-variation-settings: 'wdth' 100; }

.nav-toggle { display: none; }
.nav-btn { display: none; cursor: pointer; padding: 10px; border: 1px solid var(--line-strong); border-radius: 4px; }
.nav-btn span, .nav-btn span::before, .nav-btn span::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.nav-btn span::before, .nav-btn span::after { content: ''; position: absolute; }
.nav-btn span::before { top: -6px; } .nav-btn span::after { top: 6px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center; }
.main-nav a { text-decoration: none; color: var(--ink); font-size: 0.95rem; }
.main-nav a:hover { color: var(--water); }
.main-nav .nav-cta { padding: 9px 18px; border: 1px solid var(--water); border-radius: 4px; color: var(--water); }
.main-nav .nav-cta:hover { background: var(--water); color: var(--white); }

/* ---------- Hero: drafting sheet ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 8vw, 96px);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(rgba(213,220,219,.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(213,220,219,.45) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--line-strong);
}
.hero::after { /* soft fade so text stays legible */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 25% 40%, rgba(245,247,246,.95) 0%, rgba(245,247,246,.6) 45%, rgba(245,247,246,0) 80%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero .wrap > div { max-width: 820px; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 4px; font-weight: 500; font-size: 1rem;
  text-decoration: none; border: 1px solid var(--water); transition: background .2s, color .2s;
  font-family: var(--font); cursor: pointer;
}
.btn-primary { background: var(--water); color: var(--white); }
.btn-primary:hover { background: var(--water-deep); border-color: var(--water-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--water); }
.btn-ghost:hover { background: var(--white); }

/* The title block — the signature element */
.title-block {
  background: var(--white);
  border: 2px solid var(--ink);
  font-size: 0.85rem;
  box-shadow: 8px 8px 0 var(--paper-2);
}
.tb-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ink); }
.tb-row:last-child { border-bottom: 0; }
.tb-cell { padding: 10px 14px; }
.tb-row .tb-cell + .tb-cell { border-left: 1px solid var(--ink); }
.tb-full { grid-template-columns: 1fr; }
.tb-label { display: block; font-size: 0.72rem; color: var(--ink-soft); font-variation-settings: 'wdth' 90; }
.tb-value { display: block; font-weight: 600; color: var(--ink); font-variation-settings: 'wdth' 108; }
.tb-head { display: flex; align-items: center; gap: 14px; padding: 14px; }
.tb-head img { width: 56px; height: 56px; object-fit: contain; }
.tb-head .tb-value { font-size: 1.05rem; line-height: 1.2; }
.tb-arabic { font-family: 'Segoe UI', Tahoma, sans-serif; direction: rtl; font-weight: 600; font-size: .95rem; }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head p { color: var(--ink-soft); margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); }
.about-text p:first-of-type { font-size: 1.15rem; }
.statement { border-top: 1px solid var(--line-strong); padding: 22px 0; }
.statement:last-child { border-bottom: 1px solid var(--line-strong); }
.statement h3 { margin-bottom: 8px; color: var(--water); }
.statement p { margin: 0; color: var(--ink-soft); }

/* Services — drawing schedule */
.schedule { border-top: 2px solid var(--ink); }
.discipline { display: grid; grid-template-columns: 72px 1fr 1.5fr; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--line-strong); }
.disc-code {
  width: 52px; height: 52px; border: 1.5px solid var(--water); border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; color: var(--water); font-size: 1.05rem;
  font-variation-settings: 'wdth' 110;
}
.discipline h3 { font-size: 1.35rem; margin-bottom: 8px; }
.discipline > div > p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
.scope { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.scope li { position: relative; padding-left: 18px; font-size: 0.97rem; }
.scope li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1.5px; background: var(--sand); }

/* Sectors */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.sector { padding: 28px 26px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: var(--paper); }
.sector h3 { margin-bottom: 8px; }
.sector p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Process — a real sequence */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); counter-reset: stage; position: relative; }
.process::before { content: ''; position: absolute; top: 22px; left: 22px; right: calc(100% / 6); height: 1px; background: var(--line-strong); }
.process li { counter-increment: stage; position: relative; padding-right: 18px; }
.process li::before {
  content: counter(stage); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 50%; background: var(--paper-2); border: 1.5px solid var(--water); color: var(--water); font-weight: 600; position: relative;
}
.process h3 { font-size: 1.02rem; margin-bottom: 6px; }
.process p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* Commitments */
.commit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.commit { padding: 26px 0; border-top: 1px solid var(--line-strong); }
.commit h3 { margin-bottom: 8px; }
.commit p { margin: 0; color: var(--ink-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); }
.contact-details { margin-top: 32px; border-top: 2px solid var(--ink); }
.contact-details div { padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
.contact-details dt { font-size: 0.8rem; color: var(--ink-soft); }
.contact-details dd { margin: 2px 0 0; font-weight: 600; font-size: 1.08rem; font-variation-settings: 'wdth' 106; }
.contact-details dd a { color: var(--ink); text-decoration: none; }
.contact-details dd a:hover { color: var(--water); }

.form { background: var(--white); border: 1px solid var(--line-strong); padding: clamp(24px, 4vw, 40px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 3px; padding: 12px 14px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--water); background: var(--white); box-shadow: 0 0 0 3px rgba(74,98,116,.15); }
.hp { position: absolute !important; left: -9999px !important; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin: 14px 0 0; }

/* Footer */
.site-footer { background: var(--ink); color: #C9D1D6; padding: 56px 0 28px; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid #3B4852; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #C9D1D6; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.footer-brand img { width: 52px; height: 52px; object-fit: contain; background: var(--paper); border-radius: 50%; padding: 4px; }
.footer-brand strong { color: var(--white); font-variation-settings: 'wdth' 110; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: #8E9AA3; }

/* Thank-you page */
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.thanks p { margin-left: auto; margin-right: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .process { grid-template-columns: repeat(3, 1fr); gap: 36px 0; }
  .process::before { display: none; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-btn { display: block; }
  .main-nav { position: absolute; top: 76px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .main-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav .nav-cta { margin-top: 14px; text-align: center; border-bottom: 1px solid var(--water); }

  .hero .wrap, .about-grid, .contact-grid, .section-head { grid-template-columns: 1fr; }
  .section-head { gap: 16px; margin-bottom: 40px; }
  .discipline { grid-template-columns: 56px 1fr; gap: 16px 18px; }
  .discipline .scope { grid-column: 2; }
  .commit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-name small { display: none; }
  .scope, .form-row, .sectors { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .discipline { grid-template-columns: 1fr; }
  .discipline .scope { grid-column: 1; }
}
