:root {
  --ink: #2c2722;
  --navy: #5a3b2b;
  --orange: #c96f32;
  --green: #55704b;
  --line: #d9cdbf;
  --muted: #756c63;
  --shadow: 0 20px 55px rgba(52, 39, 29, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(243,237,227,.94), rgba(243,237,227,.94)),
    url("../images/raw-material-coil.png") center/cover fixed;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 92px 0; }
.eyebrow { margin: 0 0 12px; color: var(--orange); font-size: .77rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: #e9a46c; }
h1, h2, h3, h4 { margin: 0; line-height: 1.13; letter-spacing: -.025em; }
h1 { font-size: clamp(2.65rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 20px; }
.muted { color: #c9bdb2; }

.topbar { color: #e8ddd3; background: #241f1b; font-size: .82rem; }
.topbar-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar a { color: #e9a46c; font-weight: 700; }
.site-header {
  position: relative;
  z-index: 20;
  background:
    linear-gradient(rgba(249,242,233,.96), rgba(249,242,233,.96)),
    url("../images/raw-material-coil.png") center 45%/cover;
  box-shadow: 0 2px 18px rgba(52,39,29,.12);
}
.navbar { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { width: 210px; height: 72px; overflow: hidden; display: flex; align-items: center; background: transparent; }
.brand img { width: 100%; transform: scale(1.08); }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: .92rem; font-weight: 700; }
.nav-links a { position: relative; padding: 28px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 18px; height: 2px; background: var(--orange); transition: .25s; }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.menu-toggle { display: none; border: 1px solid var(--line); background: rgba(239,228,215,.88); color: var(--ink); padding: 9px 14px; font-weight: 700; }

.hero { min-height: 650px; position: relative; display: grid; align-items: center; color: #fff; overflow: hidden; background: #28211c; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,24,19,.97) 0%, rgba(52,36,25,.78) 48%, rgba(52,36,25,.22) 100%), url("../images/protostar-banner.jpg") center/cover no-repeat; transform: scale(1.015); }
.hero-content { position: relative; z-index: 1; padding: 85px 0; }
.hero h1 { max-width: 760px; }
.hero p:not(.eyebrow) { max-width: 650px; margin-top: 24px; color: #e8ddd3; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; padding: 12px 22px; cursor: pointer; font-size: .89rem; font-weight: 800; letter-spacing: .03em; transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--orange); }
.btn-primary:hover { background: #aa5723; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.05); }

.media-strip {
  padding: 78px 0;
  background:
    linear-gradient(rgba(238,229,217,.91), rgba(238,229,217,.91)),
    url("../images/factory-line.png") center/cover fixed;
  overflow: hidden;
}
.section-heading { margin-bottom: 38px; }
.section-heading p:not(.eyebrow) { max-width: 610px; color: var(--muted); }
.row-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.row-heading > p { max-width: 390px !important; margin-bottom: 6px !important; }
.centered { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.centered p:not(.eyebrow) { margin: 16px auto 0; }
.scroll-track { display: flex; gap: 24px; overflow-x: auto; padding: 0 max(20px, calc((100vw - 1160px) / 2)) 18px; scrollbar-color: var(--orange) #d9cdbf; }
.media-card { min-width: 380px; overflow: hidden; background: rgba(255,248,239,.88); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.media-card-wide { min-width: min(720px, 75vw); }
.media-card img { width: 100%; height: 360px; object-fit: cover; }
.media-label { display: flex; align-items: center; gap: 14px; padding: 18px 20px; font-weight: 700; }
.media-label span { color: var(--orange); }
.video-poster { position: relative; }
.play-button { position: absolute; inset: 50% auto auto 50%; width: 70px; height: 70px; border: 0; border-radius: 50%; color: #fff; background: rgba(237,132,28,.93); transform: translate(-50%,-50%); cursor: pointer; box-shadow: 0 0 0 12px rgba(255,255,255,.2); }
.play-button.video-message { width: auto; border-radius: 0; padding: 0 18px; font-weight: 800; }

.products-preview {
  background:
    linear-gradient(rgba(249,243,235,.93), rgba(249,243,235,.93)),
    url("../images/raw-material-coil.png") center/cover fixed;
}
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin: 0 auto; }
.product-card { overflow: hidden; border: 1px solid rgba(151,126,103,.35); background: rgba(255,250,244,.86); backdrop-filter: blur(9px); transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.product-image { height: 250px; overflow: hidden; background: #e5d9cb; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-image img { transform: scale(1.035); }
.product-body { position: relative; padding: 30px; }
.product-number { position: absolute; top: -22px; right: 22px; width: 47px; height: 47px; display: grid; place-items: center; color: #fff; background: var(--navy); font-weight: 800; }
.product-body p { min-height: 75px; margin: 13px 0 15px; color: var(--muted); }
.product-body a { color: var(--orange); font-size: .9rem; font-weight: 800; }
.dark-section { color: #fff; background: #28211c; }
.capability-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.text-link { font-weight: 800; }
.text-link.light { color: #e9a46c; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.14); }
.stat { min-height: 170px; padding: 30px; background: #3b3028; display: flex; flex-direction: column; justify-content: center; }
.stat strong { color: #e9a46c; font-size: 2.3rem; line-height: 1; }
.stat span { margin-top: 12px; color: #ddd1c6; }
.cta-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 48px 54px;
  border-left: 5px solid var(--orange);
  background:
    linear-gradient(rgba(238,229,217,.9), rgba(238,229,217,.9)),
    url("../images/gypsum-studs.png") center/cover;
  box-shadow: var(--shadow);
}
.dark-cta { color: #fff; border-left: 0; padding: 0; background: transparent; }

.page-hero { padding: 95px 0; color: #fff; background: linear-gradient(110deg, rgba(31,24,19,.98), rgba(101,62,34,.88)), url("../images/protostar-banner.jpg") center/cover; }
.page-hero h1 { max-width: 900px; font-size: clamp(2.5rem, 5vw, 4.8rem); }
.page-hero p:not(.eyebrow) { max-width: 680px; margin-top: 20px; color: #e8ddd3; }
.gallery-intro { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 40px; }
.gallery-intro > p { max-width: 450px; color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.gallery-item { grid-column: span 4; position: relative; min-height: 330px; margin: 0; overflow: hidden; background: #e5d9cb; }
.gallery-item.gallery-large { grid-column: span 8; }
.gallery-item.gallery-wide { grid-column: span 8; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 45px 20px 18px; color: #fff; background: linear-gradient(transparent, rgba(31,24,19,.92)); font-weight: 700; }

.contact-section {
  background:
    linear-gradient(rgba(236,226,214,.91), rgba(236,226,214,.91)),
    url("../images/factory-line.png") center/cover fixed;
}
.contact-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 55px; align-items: start; }
.contact-info > p:not(.eyebrow) { margin: 20px 0 32px; color: var(--muted); }
.contact-detail { padding: 17px 0; border-top: 1px solid var(--line); }
.contact-detail span { display: block; margin-bottom: 3px; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-detail a, .contact-detail strong { color: var(--navy); }
.whatsapp-inline { display: inline-flex; align-items: center; width: 42px; height: 42px; }
.whatsapp-inline img,
.footer-whatsapp img,
.whatsapp-float img { width: 100%; height: 100%; object-fit: contain; }
.footer-whatsapp { display: inline-flex !important; align-items: center; gap: 8px; }
.footer-whatsapp img { width: 18px; height: 18px; }
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 14px 32px rgba(37, 211, 102, .34);
}
.contact-image { height: 220px; margin-top: 28px; overflow: hidden; }
.contact-image img { width: 100%; height: 100%; object-fit: cover; }
.enquiry-form { padding: 42px; background: rgba(255,250,244,.88); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.form-heading { margin-bottom: 28px; }
.form-heading p { color: var(--muted); font-size: .88rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid label { color: var(--navy); font-size: .82rem; font-weight: 800; }
.form-grid label.full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; margin-top: 7px; border: 1px solid var(--line); border-radius: 0; background: rgba(255,248,239,.8); padding: 12px 13px; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(237,132,28,.12); }
textarea { resize: vertical; }
.submit-btn { margin-top: 22px; min-width: 190px; }
.form-status { margin: 16px 0 0; color: var(--green); font-size: .88rem; font-weight: 700; }

.site-footer { padding: 60px 0 0; color: #ddd1c6; background: #1e1915; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 45px; padding-bottom: 44px; }
.footer-logo { width: 190px; margin-bottom: 18px; padding: 5px; background: #efe4d7; }
.footer-grid p { color: #bcaea2; font-size: .88rem; }
.footer-grid h4 { margin-bottom: 15px; color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid a { display: block; margin-bottom: 8px; color: #c9bdb2; font-size: .88rem; }
.footer-grid a:hover { color: #e9a46c; }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); color: #97887c; font-size: .8rem; }

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 122px; left: 0; right: 0; padding: 12px 20px 22px; background: rgba(249,242,233,.98); box-shadow: var(--shadow); }
  .nav-links.open { display: grid; gap: 0; }
  .nav-links a { padding: 11px 0; }
  .nav-links a::after { bottom: 7px; right: 100%; }
  .menu-toggle { display: block; }
  .product-grid, .product-grid-two, .capability-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item, .gallery-item.gallery-large, .gallery-item.gallery-wide { grid-column: span 6; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 65px 0; }
  .topbar-inner span { display: none; }
  .topbar-inner { justify-content: flex-end; }
  .navbar { min-height: 74px; }
  .brand { width: 165px; height: 60px; }
  .nav-links { top: 110px; }
  .hero { min-height: 590px; }
  .hero-bg { background: linear-gradient(90deg, rgba(31,24,19,.95), rgba(52,36,25,.78)), url("../images/protostar-banner.jpg") center/cover; }
  .hero-actions, .row-heading, .gallery-intro, .cta-panel { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; }
  .media-card, .media-card-wide { min-width: 84vw; }
  .media-card img { height: 240px; }
  .product-grid, .stats-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item.gallery-large, .gallery-item.gallery-wide { grid-column: 1 / -1; min-height: 270px; }
  .enquiry-form { padding: 28px 20px; }
  .form-grid label.full { grid-column: auto; }
  .cta-panel { padding: 35px 28px; }
}
