﻿:root {
  --bg: #f8f5ef;
  --surface: #ffffff;
  --surface-alt: #f3ede2;
  --text: #261a08;
  --muted: #706553;
  --primary: #6f4c09;
  --primary-dark: #4c3205;
  --secondary: #d6b36b;
  --line: rgba(111, 76, 9, 0.15);
  --shadow: 0 20px 45px rgba(73, 49, 8, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(214, 179, 107, 0.24), transparent 24%),
    linear-gradient(180deg, #fbf9f4 0%, #f7f1e6 100%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(76, 50, 5, 0.95), rgba(111, 76, 9, 0.88)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  color: #fff;
  padding-bottom: 54px;
  overflow: hidden;
}

.hero.has-cover {
  background:
    linear-gradient(135deg, rgba(40, 26, 3, 0.82), rgba(77, 49, 5, 0.72)),
    var(--hero-image) center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -80px auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 179, 107, 0.34), transparent 65%);
  pointer-events: none;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  z-index: 1;
}

.brand img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: #fff;
}

.brand strong,
.footer-content strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
}

.brand span {
  color: rgba(255, 255, 255, 0.8);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.88);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 34px 0 12px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.offer-badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
}

h1,
h2,
h3,
strong {
  margin: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.15;
}

.lead {
  max-width: 62ch;
  margin: 18px 0 22px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-points span,
.mini-chip {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--secondary), #f1d79e);
  color: var(--primary-dark);
  box-shadow: 0 18px 30px rgba(27, 17, 3, 0.18);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--primary);
  font-weight: 800;
}

.hero-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-card h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.35;
  margin-bottom: 18px;
}

.check-list {
  margin: 0 0 24px;
  padding: 0 22px 0 0;
  display: grid;
  gap: 12px;
  color: rgba(255, 255, 255, 0.84);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-stats article,
.service-card,
.cert-card,
.process-card,
.stat-card,
.contact-cards article,
.contact-form,
.gallery-card,
.trust-strip {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.hero-stats article {
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.hero-stats strong,
.stat-card strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 900;
}

.section {
  padding: 78px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  max-width: 15ch;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.25;
  color: var(--primary-dark);
}

.section-heading p,
.service-card p,
.cert-card p,
.process-card p,
.about-copy p,
.contact-copy p,
.stat-card span,
.footer-content p {
  color: var(--muted);
}

.cards-grid,
.process-grid,
.gallery-grid,
.about-grid,
.contact-grid,
.stats-grid,
.contact-cards {
  display: grid;
  gap: 18px;
}

.services-grid,
.certify-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.cert-card,
.process-card,
.stat-card,
.contact-form,
.contact-cards article {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 800;
}

.service-card h3,
.cert-card h3,
.process-card h3 {
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.accent-section {
  background: linear-gradient(180deg, #fffdf8 0%, #f4ebdc 100%);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  padding: 24px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
}

.trust-strip span {
  color: rgba(255, 255, 255, 0.78);
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.process-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 800;
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card {
  min-height: 220px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.gallery-card:nth-child(1) {
  background-image: linear-gradient(180deg, transparent, rgba(43, 28, 2, 0.78)), linear-gradient(135deg, #af7c20, #5c3a03);
}

.gallery-card:nth-child(2) {
  background-image: linear-gradient(180deg, transparent, rgba(43, 28, 2, 0.78)), linear-gradient(135deg, #8b6b32, #362300);
}

.gallery-card:nth-child(3) {
  background-image: linear-gradient(180deg, transparent, rgba(43, 28, 2, 0.78)), linear-gradient(135deg, #caa35d, #5b430f);
}

.gallery-card span {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 8px;
}

.about-grid,
.contact-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
}

.about-copy p,
.contact-copy p {
  line-height: 1.95;
  margin: 0 0 16px;
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
  text-align: center;
}

.contact-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.contact-cards article strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.contact-cards article a {
  color: var(--primary);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fffdf9;
  color: var(--text);
}

.site-footer {
  padding: 22px 0 36px;
  background: #f2eadc;
  border-top: 1px solid var(--line);
}

.page-hero {
  padding: 40px 0 54px;
}

.page-hero .hero-copy {
  max-width: 780px;
}

.page-hero h1 {
  max-width: 14ch;
}

.page-breadcrumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.page-breadcrumbs a {
  color: var(--secondary);
}

.article-list,
.two-column {
  display: grid;
  gap: 18px;
}

.article-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card,
.content-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.article-card h3,
.content-card h3 {
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.article-card p,
.content-card p,
.content-card li {
  color: var(--muted);
  line-height: 1.9;
}

.article-card ul,
.content-card ul {
  margin: 0;
  padding: 0 18px 0 0;
}

.two-column {
  grid-template-columns: 1.1fr 0.9fr;
}

.content-card + .content-card {
  margin-top: 18px;
}

.top-gap {
  margin-top: 22px;
}

.contact-cards.contact-cards-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card.media-card,
.project-photo,
.story-panel,
.video-card,
.wide-banner {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.article-card.media-card::before,
.project-photo::before,
.story-panel::before,
.wide-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 16, 2, 0.12), rgba(26, 16, 2, 0.8)),
    var(--bg-image) center/cover no-repeat;
}

.article-card.media-card > *,
.project-photo > *,
.story-panel > *,
.wide-banner > * {
  position: relative;
  z-index: 1;
}

.article-card.media-card,
.project-photo {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.article-card.media-card p,
.project-photo p,
.story-panel p,
.wide-banner p,
.wide-banner li {
  color: rgba(255, 255, 255, 0.9);
}

.project-gallery,
.video-grid,
.story-grid {
  display: grid;
  gap: 18px;
}

.project-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.project-photo {
  padding: 24px;
}

.video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.video-card {
  background: #1a1308;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-card video {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.video-caption {
  padding: 18px 20px 22px;
}

.story-grid {
  grid-template-columns: 1.15fr 0.85fr;
  margin-top: 22px;
}

.story-panel {
  min-height: 360px;
  padding: 28px;
}

.story-panel ul {
  margin: 14px 0 0;
  padding: 0 20px 0 0;
  line-height: 1.9;
}

.wide-banner {
  min-height: 340px;
  padding: 30px;
  margin-top: 24px;
}

.prose-block p,
.prose-block li {
  line-height: 2;
  color: var(--muted);
}

.prose-block ul {
  margin: 0;
  padding: 0 18px 0 0;
}

.footer-meta {
  display: grid;
  gap: 6px;
}

.footer-meta a {
  color: var(--primary);
  font-weight: 800;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--primary-dark);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-content,
  .services-grid,
  .certify-grid,
  .process-grid,
  .gallery-grid,
  .about-grid,
  .contact-grid,
  .trust-strip,
  .contact-cards,
  .article-list,
  .two-column,
  .contact-cards.contact-cards-three,
  .project-gallery,
  .video-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .navbar {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero-stats,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-bottom: 34px;
  }

  .section {
    padding: 56px 0;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  h1,
  .section-heading h2,
  .about-copy h2,
  .contact-copy h2 {
    max-width: none;
  }

  .brand img {
    width: 66px;
    height: 66px;
  }
}
