:root {
  --green: #104436;
  --green-2: #1f6b55;
  --gold: #d9a441;
  --cream: #fff8ea;
  --ink: #17211d;
  --muted: #67736d;
  --line: #dfe5dc;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(11, 43, 34, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fbfcf8;
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(16, 68, 54, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
}

.brand-logo {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.2));
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  font-size: 12px;
  opacity: 0.82;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a,
.nav-dropdown > button {
  opacity: 0.88;
}

.site-nav a:hover,
.nav-dropdown > button:hover {
  opacity: 1;
  color: var(--gold);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  display: none;
  min-width: 210px;
  padding: 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 5px;
  color: var(--ink);
}

.dropdown-menu a:hover {
  background: var(--cream);
  color: var(--green);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu {
  display: block;
}

.nav-toggle {
  display: none;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  padding: 132px clamp(20px, 5vw, 72px) 34px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("/assets/images/hakim-flour-mill-hero.webp");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 31, 24, 0.9) 0%, rgba(5, 31, 24, 0.62) 43%, rgba(5, 31, 24, 0.14) 100%),
    linear-gradient(0deg, rgba(5, 31, 24, 0.58), rgba(5, 31, 24, 0.08) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding-bottom: 90px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 14px 0 10px;
  font-size: 24px;
  line-height: 1.15;
}

.hero-copy {
  width: min(620px, 100%);
  margin: 24px 0 0;
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 13px 20px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn-primary {
  background: var(--gold);
  color: #1f1808;
  box-shadow: 0 14px 34px rgba(217, 164, 65, 0.28);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 860px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.hero-stats div {
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 28px;
  line-height: 1;
}

.hero-stats span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.75);
}

section {
  padding: 88px clamp(20px, 5vw, 72px);
}

.band {
  background: var(--cream);
}

.section-copy {
  max-width: 900px;
  margin-bottom: 34px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 46px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: block;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(16, 68, 54, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(16, 68, 54, 0.12);
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-card span,
.product-card h3,
.product-card p {
  margin-left: 22px;
  margin-right: 22px;
}

.product-card span {
  display: inline-flex;
  margin-top: 22px;
  color: var(--gold);
  font-weight: 900;
}

.product-card p,
.quality-panel p,
.seo-content p,
.contact-copy p {
  color: var(--muted);
}

.quality {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
}

.quality-panel {
  position: sticky;
  top: 104px;
}

.quality-list {
  display: grid;
  gap: 16px;
}

.quality-list div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding: 26px;
  border-left: 5px solid var(--gold);
  background: var(--white);
  box-shadow: var(--shadow);
}

.quality-list strong {
  color: var(--green);
  font-size: 20px;
}

.quality-list span {
  color: var(--muted);
}

.industry-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.industry-strip span {
  display: grid;
  min-height: 86px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f5f8f1);
  color: var(--green);
  font-weight: 800;
  text-align: center;
}

.seo-content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--white);
  background: var(--green);
}

.cta-strip h2 {
  max-width: 760px;
}

.cta-strip .hero-actions {
  margin-top: 0;
  flex-shrink: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(16, 68, 54, 0.05);
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--green);
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 44px;
  color: var(--white);
  background: var(--green);
}

.contact h2,
.contact-copy p {
  color: var(--white);
}

.contact-copy p {
  opacity: 0.82;
}

.contact-lines a,
.contact-lines span {
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
}

.quote-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.quote-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid #cfd8d2;
  border-radius: 5px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: #fbfcf8;
}

.quote-form textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  background: #0a251e;
  color: var(--white);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.68);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

.footer-brand span span {
  color: rgba(255, 255, 255, 0.68);
}

.floating-contact {
  position: fixed;
  z-index: 30;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(10, 37, 30, 0.9);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.floating-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.float-main {
  min-height: 46px;
  gap: 8px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--gold);
  color: #1f1808 !important;
  font-weight: 900;
}

.float-social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.float-social:hover {
  background: rgba(255, 255, 255, 0.2);
}

.icon,
.floating-contact svg {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.product-page .site-header {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(16, 68, 54, 0.12);
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding-top: 138px;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.about-hero h1 {
  color: var(--green);
}

.about-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 20px;
}

.about-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 42px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  color: var(--muted);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding-top: 138px;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.product-hero h1 {
  color: var(--green);
}

.product-hero-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 20px;
}

.product-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-page {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: 44px;
  align-items: start;
  min-height: 78vh;
  padding-top: 138px;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.form-copy h1 {
  color: var(--green);
}

.form-copy p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 20px;
}

.contact-lines.dark a,
.contact-lines.dark span {
  border-color: var(--line);
  color: var(--green);
  background: var(--white);
}

.email-image-wrap {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
}

.email-image-wrap img {
  display: block;
  width: min(344px, 72vw);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.form-alert {
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 800;
}

.form-alert.success {
  color: #0f5132;
  background: #d8f3df;
}

.form-alert.error {
  color: #842029;
  background: #f8d7da;
}

.btn-light {
  border-color: var(--line);
  background: var(--white);
  color: var(--green);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 42px;
}

.product-detail p,
.check-list {
  color: var(--muted);
}

.product-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 16px 18px 16px 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.related-grid a {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(16, 68, 54, 0.06);
}

.related-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.related-grid span {
  display: block;
  padding: 16px;
  color: var(--green);
  font-weight: 900;
}

@media (max-width: 980px) {
  .intro,
  .quality,
  .seo-content,
  .contact,
  .about-hero,
  .about-story,
  .product-hero,
  .form-page,
  .product-detail,
  .product-info-grid {
    grid-template-columns: 1fr;
  }

  .cta-strip {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .quality-panel {
    position: static;
  }

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

@media (max-width: 720px) {
  .site-header {
    padding: 12px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 62px;
    height: 62px;
  }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: 92vh;
    padding: 112px 18px 24px;
  }

  .hero-content {
    padding-bottom: 42px;
  }

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

  .hero-stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  section {
    padding: 62px 18px;
  }

  .intro-grid,
  .product-grid,
  .industry-strip,
  .story-grid,
  .quality-list div {
    grid-template-columns: 1fr;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown > button {
    width: 100%;
    padding: 12px;
    text-align: left;
  }

  .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    margin: 0 0 6px;
    box-shadow: none;
    transform: none;
  }

  .nav-dropdown.is-open .dropdown-menu {
    display: block;
  }

  .product-card {
    min-height: 0;
  }

  .floating-contact {
    left: 10px;
    right: 10px;
    bottom: 10px;
    justify-content: center;
  }

  .float-main {
    flex: 1;
  }

  .float-social {
    width: 40px;
    height: 40px;
  }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 92px;
  }
}
