/* ============================================
   Haimour Construction & Realty
   Matching darkgrey-shrew reference design
   ============================================ */

:root {
  --black: #121212;
  --black-soft: #1a1a1a;
  --cream: #faf9f6;
  --cream-dark: #f0ece4;
  --gold: #c5a059;
  --gold-dark: #a8863f;
  --white: #ffffff;
  --text: #1c1c1c;
  --text-muted: #5c5c5c;
  --text-light: #b0b0b0;
  --border: #2a2a2a;
  --border-light: #d9d0c0;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --container: 1200px;
  --header-h: 88px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- Typography ---- */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-label--light {
  color: var(--gold);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-title--light {
  color: var(--white);
}

.section-title--light em {
  color: var(--gold);
}

.section-text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 520px;
}

.text-link {
  display: inline-block;
  margin-top: 32px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.2s;
}

.text-link:hover {
  color: var(--gold-dark);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.btn--gold {
  color: var(--black);
  background: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-dark);
}

.btn--dark {
  color: var(--white);
  background: var(--black);
  border: none;
  width: 100%;
  max-width: 320px;
}

.btn--dark:hover {
  background: var(--black-soft);
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  transition: background 0.3s;
}

.site-header--solid {
  background: var(--black);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.site-logo__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.site-logo__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-logo__text strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: capitalize;
}

.site-logo__text span {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav__link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.2s;
}

.site-nav__link:hover {
  color: var(--gold);
}

.site-nav__cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle--open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle--open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(18, 18, 18, 0.78) 0%,
    rgba(18, 18, 18, 0.55) 45%,
    rgba(18, 18, 18, 0.25) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: var(--header-h);
  padding-bottom: 80px;
  max-width: 680px;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero__title em {
  font-style: italic;
  color: var(--gold);
}

.hero__desc {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.hero__link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.2s;
}

.hero__link:hover {
  color: var(--gold);
}

.hero__side {
  position: absolute;
  right: 40px;
  bottom: 120px;
  z-index: 2;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.hero__side:hover {
  color: var(--gold);
}

/* ---- Approach ---- */
.approach {
  padding: 120px 0;
  background: var(--cream);
}

.approach__inner {
  max-width: 720px;
}

/* ---- Trust Bar ---- */
.trust-bar {
  background: var(--black);
  border-bottom: 1px solid var(--gold);
}

.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 24px;
  border-right: 1px solid var(--border);
}

.trust-bar__item:last-child {
  border-right: none;
}

.trust-bar__num {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold);
  flex-shrink: 0;
}

.trust-bar__text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.4;
}

/* ---- Services ---- */
.services {
  padding: 120px 0;
  background: var(--cream);
}

.services > .container > .section-title {
  margin-bottom: 80px;
}

.service-block {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 100px;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-block--reverse .service-block__media {
  order: 2;
}

.service-block--reverse .service-block__content {
  order: 1;
}

.service-block__media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.service-block__num {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 16px;
}

.service-block__title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 20px;
}

.service-block__text {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 440px;
}

/* ---- Projects ---- */
.projects {
  padding: 120px 0;
  background: var(--black);
}

.projects__header {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}

.projects__desc {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 320px;
  justify-self: end;
  padding-bottom: 8px;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.75) 0%, transparent 55%);
}

.project-card__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 6px;
}

.project-card__loc {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---- Contact ---- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}

.contact__media {
  overflow: hidden;
}

.contact__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 500px;
}

.contact__panel {
  background: var(--cream);
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form {
  margin-top: 40px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.field label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-light);
  outline: none;
  transition: border-color 0.2s;
}

.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231c1c1c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 20px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--gold);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.field--full {
  margin-bottom: 40px;
}

.form-success {
  margin-top: 20px;
  font-size: 14px;
  color: var(--gold-dark);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--black);
  color: var(--text-light);
  padding-top: 72px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.site-logo--footer .site-logo__text strong {
  font-size: 1.2rem;
}

.site-footer__tagline {
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 260px;
}

.site-footer__heading {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.site-footer__links li {
  margin-bottom: 10px;
}

.site-footer__links a {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-light);
  transition: color 0.2s;
}

.site-footer__links a:hover {
  color: var(--white);
}

.site-footer__phone {
  color: var(--gold) !important;
  font-weight: 400 !important;
}

.site-footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  border-top: 1px solid var(--border);
}

.site-footer__bar p {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #666;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .container {
    padding: 0 28px;
  }

  .site-nav {
    gap: 20px;
  }

  .service-block {
    gap: 40px;
  }

  .service-block__media img {
    height: 340px;
  }

  .contact__panel {
    padding: 60px 40px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 72px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 40px 28px;
    background: var(--black);
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  .site-nav--open {
    transform: translateX(0);
  }

  .site-nav__cta {
    margin-left: 0;
    margin-top: 16px;
  }

  .hero__side {
    display: none;
  }

  .trust-bar__inner {
    grid-template-columns: 1fr;
  }

  .trust-bar__item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .trust-bar__item:last-child {
    border-bottom: none;
  }

  .service-block,
  .service-block--reverse {
    grid-template-columns: 1fr;
  }

  .service-block--reverse .service-block__media,
  .service-block--reverse .service-block__content {
    order: unset;
  }

  .service-block__media img {
    height: 280px;
  }

  .projects__header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .projects__desc {
    justify-self: start;
  }

  .projects__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-card {
    aspect-ratio: 16 / 10;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .contact__media img {
    min-height: 280px;
  }

  .contact__panel {
    padding: 56px 28px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer__bar {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 24px 28px;
  }
}
