/* ============================================
   HADDI ENTERPRISES LTD — Brand stylesheet
   Navy #0A2540 · Gold #C4A35A
   ============================================ */

:root {
  --navy: #0a2540;
  --navy-deep: #06182c;
  --navy-soft: #163a5c;
  --gold: #c4a35a;
  --gold-bright: #d4b56e;
  --gold-muted: #a88945;
  --ink: #142433;
  --muted: #5a6b7a;
  --surface: #f7f5f1;
  --surface-2: #efece6;
  --white: #ffffff;
  --line: rgba(10, 37, 64, 0.1);
  --radius: 14px;
  --shadow: 0 12px 40px rgba(6, 24, 44, 0.1);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --nav-h: 78px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 10px;
  padding: 0.7rem 1.35rem;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--navy-deep);
  border: none;
}

.btn-gold:hover,
.btn-gold:focus {
  background: linear-gradient(135deg, var(--gold), var(--gold-muted));
  color: var(--navy-deep);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border: none;
}

.btn-navy:hover,
.btn-navy:focus {
  background: var(--navy-soft);
  color: var(--white);
}

.btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  color: var(--white);
  background: transparent;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
}

/* ---------- Nav ---------- */
.site-nav {
  height: var(--nav-h);
  padding-top: 0;
  padding-bottom: 0;
  background: rgba(247, 245, 241, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.is-scrolled {
  background: rgba(247, 245, 241, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(6, 24, 44, 0.06);
}

.nav-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.site-nav .nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-soft);
  padding: 0.5rem 0.85rem;
  transition: color 0.2s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--navy);
}

.navbar-toggler {
  border: 1px solid var(--line);
  padding: 0.4rem 0.55rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230a2540' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--surface);
    margin-top: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: scale(1.05);
  animation: heroZoom 22s ease-in-out infinite alternate;
}

.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 100%;
  height: 100%;
  gap: 0;
}

.hero-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 24, 44, 0.72) 0%, rgba(10, 37, 64, 0.78) 45%, rgba(6, 24, 44, 0.88) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(196, 163, 90, 0.18), transparent 55%);
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
}

.hero-logo {
  width: min(220px, 52vw);
  margin: 0 auto 1.75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.65rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  animation: logoFloat 5s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Sections ---------- */
.section {
  padding: 5.5rem 0;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 0.65rem;
}

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

.section-title {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.75rem, 3.5vw, 2.55rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

.section-lead {
  color: var(--muted);
  max-width: 540px;
  font-size: 1.05rem;
}

.section-text {
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ---------- About ---------- */
.about-section {
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
}

.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.meta-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 0.25rem;
}

.about-visual {
  position: relative;
}

.about-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  background: #f3f1ec;
}

.about-accent {
  position: absolute;
  inset: auto -12px -12px auto;
  width: 45%;
  height: 45%;
  border: 3px solid var(--gold);
  border-radius: 18px;
  z-index: -1;
}

/* ---------- Why ---------- */
.why-section {
  background:
    radial-gradient(ellipse at top left, rgba(196, 163, 90, 0.08), transparent 50%),
    var(--surface-2);
}

.feature-block {
  height: 100%;
  padding: 1.75rem 1.4rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-block:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 163, 90, 0.45);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--navy), var(--navy-soft));
  color: var(--gold-bright);
  font-size: 1.35rem;
  margin-bottom: 1.15rem;
}

.feature-block h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.feature-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Products ---------- */
.products-section {
  background: var(--white);
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(196, 163, 90, 0.4);
}

.product-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.06);
}

.product-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  background: rgba(10, 37, 64, 0.88);
  color: var(--gold-bright);
  border-radius: 6px;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.2rem 1.4rem;
}

.product-body h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.product-body p {
  flex: 1;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-link {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gold-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.25s ease, color 0.25s ease;
}

.product-card:hover .product-link {
  color: var(--navy);
  gap: 0.55rem;
}

/* ---------- Categories ---------- */
.categories-section {
  background:
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  color: var(--white);
}

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

.categories-section .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

.categories-section .section-eyebrow {
  color: var(--gold-bright);
}

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 140px;
  padding: 1.25rem 0.75rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  text-align: center;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.category-tile i {
  font-size: 1.75rem;
  color: var(--gold-bright);
}

.category-tile span {
  font-weight: 700;
  font-size: 0.92rem;
}

.category-tile:hover {
  background: rgba(196, 163, 90, 0.15);
  border-color: rgba(196, 163, 90, 0.5);
  transform: translateY(-4px);
  color: var(--white);
}

/* ---------- Promise ---------- */
.promise-section {
  background:
    radial-gradient(circle at 20% 80%, rgba(196, 163, 90, 0.12), transparent 40%),
    linear-gradient(135deg, var(--navy-deep), var(--navy-soft));
  color: var(--white);
}

.promise-text {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.5rem;
}

.promise-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.promise-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.promise-list i {
  color: var(--gold-bright);
  font-size: 1.2rem;
}

.promise-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: stretch;
}

.promise-shot {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
}

.promise-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
  transition: transform 0.6s ease;
}

.promise-shot:hover img {
  transform: scale(1.04);
}

.promise-shot--2 {
  margin-top: 2.5rem;
}

.promise-shot--2 img {
  min-height: 220px;
}

@media (max-width: 991.98px) {
  .promise-shot--2 {
    margin-top: 0;
  }
}

/* ---------- Contact ---------- */
.contact-section {
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.contact-details li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.contact-details i {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold-bright);
  font-size: 1.1rem;
}

.contact-details span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 0.2rem;
}

.contact-details a,
.contact-details p {
  margin: 0;
  font-weight: 600;
  color: var(--navy);
}

.contact-details a:hover {
  color: var(--gold-muted);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-form .form-label {
  font-weight: 650;
  font-size: 0.88rem;
  color: var(--navy);
}

.contact-form .form-control {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.2);
  background: var(--white);
}

.form-note {
  color: var(--gold-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--white);
  padding: 0.25rem;
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.footer-tagline {
  font-size: 0.95rem;
  max-width: 280px;
}

.site-footer h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--gold-bright);
}

.footer-address {
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold-bright);
  font-size: 1.15rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
  box-shadow: 0 8px 24px rgba(6, 24, 44, 0.25);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--navy-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
  .section {
    padding: 4rem 0;
  }

  .about-img {
    height: 280px;
  }

  .contact-form {
    padding: 1.35rem;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .about-accent {
    display: none;
  }

  .hero-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg,
  .hero-logo,
  .scroll-hint {
    animation: none;
  }

  .btn:hover,
  .product-card:hover,
  .feature-block:hover,
  .category-tile:hover {
    transform: none;
  }
}
