/* ============================================================
   Emarat Construction — sample landing page
   ============================================================ */

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #1d2939;
  background: #fff;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

:root {
  --bg:          #ffffff;
  --bg-alt:      #f5f7fa;
  --bg-dark:     #1d2939;
  --fg:          #1d2939;
  --fg-muted:    #5a6b7e;
  --fg-light:    #c8d2dd;
  --accent:      #c79a3a;        /* warm gold */
  --accent-hi:   #d8ae4e;
  --primary:     #1d4f7a;        /* deep steel blue */
  --primary-hi:  #25689e;
  --border:      #e3e8ee;
  --shadow-sm:   0 1px 2px rgba(15, 23, 42, 0.04),
                 0 4px 10px rgba(15, 23, 42, 0.05);
  --shadow-md:   0 4px 12px rgba(15, 23, 42, 0.08),
                 0 16px 32px rgba(15, 23, 42, 0.08);
  --radius:      8px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
  background: var(--bg-dark);
  color: var(--fg-light);
  font-size: 0.85rem;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0.5rem 1.5rem;
  align-items: center;
}
.topbar__item { display: inline-flex; gap: 0.4rem; align-items: center; }
.topbar__item--right { margin-left: auto; }
.topbar__icon { opacity: 0.7; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 700; font-size: 1.05rem; color: var(--fg); }
.brand__tag  { font-size: 0.75rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.nav { display: flex; gap: 1.75rem; align-items: center; }
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fg);
  position: relative;
  padding: 0.25rem 0;
}
.nav a:hover { color: var(--primary); }
.nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}
.nav a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  background: var(--accent);
  color: var(--bg-dark) !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background 0.15s ease;
}
.nav__cta:hover { background: var(--accent-hi); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  color: white;
  background:
    linear-gradient(135deg, rgba(29, 79, 122, 0.92), rgba(29, 41, 57, 0.85)),
    repeating-linear-gradient(45deg, #1d4f7a 0 2px, #25689e 2px 4px);
  overflow: hidden;
  padding: 6rem 0 5rem;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(199, 154, 58, 0.18), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(255,255,255,0.05), transparent 50%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}
.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  max-width: 14ch;
}
.hero__lead {
  font-size: 1.15rem;
  max-width: 42rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 3rem; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.1s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--bg-dark); }
.btn--primary:hover { background: var(--accent-hi); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--bg-alt); }
.btn--ghost-light { color: white; border-color: rgba(255,255,255,0.4); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.btn--block { width: 100%; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--bg-dark);
  color: white;
}

.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.eyebrow--center { display: block; text-align: center; }
.eyebrow--light { color: var(--accent); }

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.section__title--light { color: white; }
.section__lead {
  font-size: 1.05rem;
  color: var(--fg-muted);
}
.section__lead--light { color: rgba(255,255,255,0.75); }

/* ============================================================
   About
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about__image {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(29,79,122,0.4), rgba(29,41,57,0.7)),
    repeating-linear-gradient(45deg, #2c4356 0 6px, #1d4f7a 6px 12px);
}
.about__image::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(transparent 60%, rgba(0,0,0,0.5)),
    linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.06) 50%, transparent 52%);
  background-size: 100% 100%, 24px 24px;
}
.about__image::after {
  content: "🏗️";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 4rem;
  filter: grayscale(0.4);
}
.about__badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1rem;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.about__badge-num {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}
.about__badge-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin-top: 0.25rem;
  font-weight: 600;
}
.about__copy h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.01em;
}
.about__copy p { color: var(--fg-muted); margin-bottom: 1rem; }
.checklist {
  list-style: none;
  margin-top: 1.5rem;
}
.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--fg);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* ============================================================
   Services
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.service-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.service-card p { color: var(--fg-muted); font-size: 0.95rem; }

/* ============================================================
   Projects
   ============================================================ */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.project {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  display: block;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.project--tall { grid-row: span 2; }
.project--wide { grid-column: span 2; }
.project::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--bg, linear-gradient(135deg, #4a6b8a, #2c4356));
}
.project__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.0) 60%);
}
.project__copy {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.project__cat {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
}
.project__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}
.project__meta {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* ============================================================
   Team
   ============================================================ */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.member {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.member:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.member__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.member__avatar::before {
  content: "";
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.3);
}
.member__avatar--1::before { background: linear-gradient(135deg, #4a6b8a, #2c4356); }
.member__avatar--2::before { background: linear-gradient(135deg, #c79a3a, #8a6b2a); }
.member__avatar--3::before { background: linear-gradient(135deg, #5a7a5a, #2f4530); }
.member__avatar::after {
  content: "👤";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3.5rem;
  opacity: 0.35;
}
.member__name { font-size: 1.1rem; font-weight: 700; }
.member__role {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0.25rem 0 1rem;
}
.member__bio { color: var(--fg-muted); font-size: 0.95rem; }

/* ============================================================
   Blog
   ============================================================ */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.post {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.post__image {
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  position: relative;
}
.post__image--1 { background: linear-gradient(135deg, #4a6b8a, #2c4356); }
.post__image--2 { background: linear-gradient(135deg, #c79a3a, #8a6b2a); }
.post__image--3 { background: linear-gradient(135deg, #5a7a5a, #2f4530); }
.post__image::after {
  content: "📰";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  opacity: 0.6;
}
.post__body { padding: 1.5rem; }
.post__meta {
  color: var(--fg-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.post__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.post__link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}
.post__link:hover { color: var(--accent); }

/* ============================================================
   Contact
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.contact__list {
  list-style: none;
  margin-top: 1.5rem;
}
.contact__list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
}
.contact__list strong { color: white; margin-right: 0.5rem; }

.contact-form {
  background: white;
  color: var(--fg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--fg);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(199, 154, 58, 0.15);
}
.field textarea { resize: vertical; font-family: inherit; }

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: center;
}
.form-status--ok { background: #ecfdf5; color: #065f46; }
.form-status--err { background: #fef2f2; color: #991b1b; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #14202e;
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.site-footer__col h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.site-footer__col ul { list-style: none; }
.site-footer__col li {
  padding: 0.3rem 0;
  font-size: 0.9rem;
}
.site-footer__col a:hover { color: var(--accent); }
.site-footer__about {
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 28rem;
}
.brand--footer .brand__name { color: white; }
.brand--footer .brand__tag  { color: rgba(255,255,255,0.5); }
.brand--footer .brand__mark { background: var(--accent); color: var(--bg-dark); }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
}
.site-footer__bottom code {
  background: rgba(255,255,255,0.08);
  color: var(--accent);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.8em;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: white; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); align-items: stretch; gap: 1rem; }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.5rem 0; }
  .nav__cta { text-align: center; }
  .nav-toggle { display: flex; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; gap: 3rem; }
  .services, .team, .posts { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .project--wide { grid-column: span 2; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 4rem 0 3rem; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .services, .team, .posts { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .project--wide, .project--tall { grid-column: auto; grid-row: auto; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .topbar__item--right { display: none; }
  .section { padding: 3rem 0; }
}