/* Happy Star Building Materials LLC – draft stylesheet */
:root {
  /* Brand: blue primary, light sky-blue accent */
  --navy-900: #0a2259;   /* deep brand blue (header/footer) */
  --navy-800: #0d3a8f;   /* dark blue */
  --navy-700: #1452c2;   /* mid blue */
  --navy-100: #e5eeff;   /* pale blue tint */
  --blue: #1667e8;       /* primary brand blue */
  --blue-600: #0f55c7;
  --accent: #8fd0ff;     /* light sky accent */
  --accent-50: #eaf4ff;
  --ink: #142038;
  --muted: #55627a;
  --line: #d9e3f2;
  --bg: #ffffff;
  --bg-alt: #f2f6fd;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(11, 26, 51, .08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-700); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* Placeholder highlight */
.ph {
  background: var(--accent-50);
  color: #0f4fb8;
  border: 1px dashed #86b4f2;
  border-radius: 4px;
  padding: 0 .3em;
  font-style: normal;
}
.hero .ph, .hero-card .ph { background: rgba(143,208,255,.14); color: #cfeaff; border-color: rgba(143,208,255,.55); }

.draft-bar {
  background: var(--accent-50);
  color: var(--navy-800);
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  padding: 6px 12px;
}
.draft-bar .ph { background: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.4em;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: #fff; color: var(--blue-600); }
.btn-accent:hover { background: var(--accent-50); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy-900); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-ghost { border-color: var(--blue); color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: .01em; }
.brand-sub { font-size: .78rem; color: var(--accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) { color: #d3e3fb; text-decoration: none; font-weight: 500; font-size: .95rem; }
.main-nav a:not(.btn):hover { color: #fff; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--blue) 100%);
  color: #fff;
  padding: 88px 0 96px;
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.hero::after { /* blue accent stripe */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 18px, var(--blue) 18px 36px);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; margin-bottom: 1rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow.dark { color: var(--blue); }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 800; max-width: 16ch; }
.lead { font-size: 1.12rem; color: #d3e3fb; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }
.hero-note { margin-top: 1.1rem; font-size: .9rem; color: #b3c9ec; }

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(4px);
}
.card-title { font-size: 1.15rem; margin-bottom: 1.1rem; color: #fff; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.facts li { display: flex; gap: 14px; align-items: flex-start; }
.facts svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }
.facts strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #b3c9ec; font-weight: 600; }
.facts a { color: #fff; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head h2, .contact-info h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800; color: var(--navy-900); }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  border-top: 4px solid var(--blue);
}
.cat:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-top-color: var(--navy-800); }
.icon {
  width: 60px; height: 60px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--navy-100); margin-bottom: 18px;
}
.icon svg {
  width: 36px; height: 36px;
  fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.cat h3 { font-size: 1.1rem; color: var(--navy-900); }
.cat p { font-size: .94rem; color: var(--muted); margin: 0; }
.grid-note { text-align: center; margin: 36px 0 0; color: var(--muted); }
.grid-note a { font-weight: 600; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why {
  background: #fff; border-radius: var(--radius); padding: 32px 28px;
  box-shadow: 0 1px 0 var(--line), var(--shadow);
  position: relative;
}
.why-num {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-weight: 800; margin-bottom: 18px;
}
.why h3 { font-size: 1.2rem; color: var(--navy-900); }
.why p { color: var(--muted); margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: stretch; }
.contact-list { margin: 1.5rem 0 0; display: grid; gap: 0; }
.contact-list > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-weight: 700; color: var(--navy-900); font-size: .92rem; }
.contact-list dd { margin: 0; color: var(--ink); justify-self: start; }
.contact-list a.ph { text-decoration: none; }
.map-placeholder {
  min-height: 380px;
  border-radius: 16px;
  border: 2px dashed #a9c3ea;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(22,103,232,.06) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(22,103,232,.06) 39px 40px),
    var(--bg-alt);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; color: var(--muted);
}
.map-placeholder svg { width: 52px; height: 52px; color: var(--blue); margin-bottom: 12px; }
.map-placeholder strong { color: var(--navy-900); }

/* Footer */
.site-footer { background: var(--navy-900); color: #bccdea; padding: 48px 0 0; font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand div { display: flex; flex-direction: column; gap: 2px; }
.footer-brand strong { color: #fff; font-size: 1.05rem; }
.ar { font-family: "Noto Kufi Arabic", "Geeza Pro", Tahoma, sans-serif; font-size: .9rem; color: var(--accent); }
.footer-links { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0 22px; font-size: .85rem;
}
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 1180px) {
  .grid-5 { grid-template-columns: repeat(6, 1fr); }
  .grid-5 .cat { grid-column: span 2; }
  .grid-5 .cat:nth-child(4) { grid-column: 2 / span 2; }
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 560px; }
}
@media (max-width: 760px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 .cat, .grid-5 .cat:nth-child(4) { grid-column: auto; }
  .grid-5 .cat:last-child { grid-column: 1 / -1; }
  .main-nav a:not(.btn) { display: none; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 64px 0; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .map-placeholder { min-height: 280px; }
  .footer-links { text-align: left; }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 32px); }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 1.08rem; }
  .brand-sub { font-size: .66rem; letter-spacing: .05em; }
  .grid, .grid-5 { grid-template-columns: 1fr; gap: 16px; }
  .cat { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 20px; }
  .cat .icon { grid-row: span 2; width: 56px; height: 56px; margin: 0; }
  .cat .icon svg { width: 32px; height: 32px; }
  .cat h3 { margin-bottom: .25em; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-list > div { grid-template-columns: 1fr; gap: 2px; }
  .hero-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .cat { transition: none; }
}
