/* ==========================================================
   Gaur Alloy Steels — site styles (shared by all pages)
   ========================================================== */

:root {
  /* Colours sampled from the logo */
  --brand: #032b5f;       /* navy */
  --brand-dark: #021d40;
  --steel: #585b5e;       /* grey */
  --ink: #222;
  --muted: #666;
  --line: #e5e5e5;
  --dark: #021d40;
  --font-heading: "Roboto Condensed", sans-serif;
  --font-body: "Roboto", sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
}

h1, h2, h3, h4, h5, .navbar-brand {
  font-family: var(--font-heading);
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

/* ---------- Buttons ---------- */
.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-brand:hover,
.btn-brand:focus {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}
.btn-outline-brand {
  border: 1px solid var(--brand);
  color: var(--brand);
}
.btn-outline-brand:hover {
  background: var(--brand);
  color: #fff;
}

/* ---------- Header ---------- */
.topbar {
  background: var(--dark);
  color: #ccc;
  font-size: 0.85rem;
  padding: 6px 0;
}
.topbar a {
  color: #ccc;
  text-decoration: none;
  margin-right: 1.25rem;
}
.topbar a:hover { color: #fff; }

.navbar-brand img { height: 40px; width: auto; }
@media (max-width: 400px) {
  .navbar-brand .brand-monogram { display: none; }
}
.navbar .nav-link {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--ink);
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--brand);
}
.dropdown-item:active { background: var(--brand); }

/* ---------- Products mega menu ---------- */
.mega-menu {
  padding: 20px 24px;
  border: 0;
  border-top: 3px solid var(--brand);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 12px 30px rgba(2,29,64,.15);
}
@media (min-width: 992px) {
  /* Centre the panel under "Products" so it doesn't run off the right edge */
  .navbar .mega-dropdown .mega-menu {
    width: 560px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 12px;
  }
}
.mega-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.mega-head-label { font-size: .85rem; color: var(--muted); }
.btn-naming {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--brand);
  color: var(--brand);
  font-size: .8rem;
}
.btn-naming .flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);   /* keeps white stripes visible */
  flex-shrink: 0;
}
.btn-naming:hover { background: rgba(3,43,95,.08); color: var(--brand); border-color: var(--brand); }
.btn-naming.active,
.btn-naming.active:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.mega-cat {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand);
  text-decoration: none;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.mega-cat i { font-size: .9rem; transition: transform .2s; }
.mega-cat:hover i { transform: translateX(3px); }
.mega-grades {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mega-grades.two-col { columns: 2; column-gap: 16px; }
.mega-grades a {
  display: block;
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 4px;
  font-family: var(--font-heading);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.mega-grades a:hover { background: rgba(3,43,95,.07); color: var(--brand); }
.mega-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.mega-foot a { text-decoration: none; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }

.section-eyebrow {
  display: inline-block;
  color: var(--brand);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.section-title {
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-intro {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Colour-graded to the brand: steel grey photo with a navy wash */
.about-media {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}
.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand);
  opacity: 0.35;            /* raise for more navy, lower for more photo */
  pointer-events: none;
}
.about-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;      /* landscape crop on phones/tablets */
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
@media (min-width: 992px) {
  .about-img { aspect-ratio: 1 / 1; }  /* full square beside the text on desktop */
}


/* ---------- Trust strip ---------- */
.trust-strip {
  list-style: none;
  padding: 20px 0;
  margin: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-strip li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
}
.trust-strip i {
  color: var(--brand);
  font-size: 1.3rem;
  line-height: 1.2;
}
.trust-strip strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--brand);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 70vh;
  background:
    linear-gradient(90deg, rgba(2,29,64,.92) 0%, rgba(2,29,64,.7) 50%, rgba(2,29,64,.3) 100%),
    url("../assets/images/hero-banner.jpg") center / cover no-repeat,
    var(--steel);
  color: #fff;
  padding: 80px 0;
}
@media (max-width: 767.98px) {
  /* Even overlay on phones so text stays readable over the whole photo */
  .hero {
    background:
      linear-gradient(rgba(2,29,64,.8), rgba(2,29,64,.8)),
      url("../assets/images/hero-banner-960.jpg") center / cover no-repeat,
      var(--steel);
  }
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
}
.hero-lead {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* ---------- Inner page banner ---------- */
.page-hero {
  background:
    linear-gradient(90deg, rgba(2,29,64,.92) 0%, rgba(2,29,64,.75) 100%),
    url("../assets/images/hero-banner-960.jpg") center / cover no-repeat,
    var(--brand);
  color: #fff;
  padding: 64px 0 56px;
}
.page-hero .breadcrumb {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  --bs-breadcrumb-divider-color: rgba(255,255,255,.6);
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb-item.active { color: #fff; }
.page-hero-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.page-hero-lead {
  font-size: 1.1rem;
  opacity: 0.85;
  margin: 0;
}

/* ---------- Product category cards ---------- */
.category-card {
  background: #fff;
  padding: 28px;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
}
.category-card h3 {
  color: var(--brand);
  font-size: 1.5rem;
  padding-bottom: 14px;
  border-bottom: 1px solid #d9d9d9;
  margin-bottom: 0;
}
.grade-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}
.grade-list li { border-bottom: 1px solid #f0f0f0; }
.grade-list a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-heading);
  color: var(--muted);
  text-decoration: none;
}
.grade-list a:hover { color: var(--brand); padding-left: 4px; transition: .2s; }
.card-link { text-decoration: none; font-weight: 500; }

/* ---------- Features ---------- */
.feature i {
  font-size: 2.5rem;
  color: var(--brand);
}
.feature h4 { margin: 1rem 0 .5rem; }
.feature p { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--brand);
  color: #fff;
  padding: 48px 0;
}

/* ---------- Product (grade) pages ---------- */
.page-hero-codes {
  font-family: var(--font-heading);
  letter-spacing: .04em;
  opacity: .85;
  margin: 0;
}
.product-body h2 {
  font-size: 1.5rem;
  color: var(--brand);
  margin: 2.5rem 0 1rem;
}
.product-body h2:first-child { margin-top: 0; }
.product-body .lead-text { font-size: 1.1rem; color: var(--ink); }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  position: relative;
  padding: 6px 0 6px 28px;
}
.check-list li i {
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--brand);
}
@media (min-width: 768px) {
  .check-list.two-col { columns: 2; column-gap: 2rem; }
  .check-list.two-col li { break-inside: avoid; }
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: .5rem;
}
.spec-table th,
.spec-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.spec-table thead th {
  background: var(--brand);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 400;
  border-bottom: 0;
}
.spec-table tbody th { font-weight: 500; width: 45%; }
.spec-table tbody tr:nth-child(even) { background: #f8f9fa; }
.spec-note { font-size: .85rem; color: var(--muted); }

.product-aside {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 28px;
  position: sticky;
  top: 100px;
}
.product-aside h2 {
  font-size: 1.25rem;
  color: var(--brand);
  margin-bottom: 1rem;
}
.quick-facts { margin: 0 0 1.5rem; }
.quick-facts dt {
  font-weight: 500;
  font-size: .85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.quick-facts dd { margin: 0 0 .9rem; }
.related-grades {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.related-grades a {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  font-family: var(--font-heading);
  text-decoration: none;
}
.related-grades a:hover { background: var(--brand); color: #fff; }

/* ---------- Grade cards (Products and category pages) ---------- */
.grade-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.grade-card:hover {
  color: var(--ink);
  border-color: var(--brand);
  box-shadow: 0 6px 20px rgba(3,43,95,.1);
  transform: translateY(-2px);
}
.grade-card-cat {
  font-family: var(--font-heading);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--steel);
}
.grade-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand);
  margin: 4px 0 2px;
}
.grade-card-codes {
  font-family: var(--font-heading);
  color: var(--muted);
  margin-bottom: .75rem;
}
.grade-card p:not(.grade-card-codes) { flex-grow: 1; }
.grade-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 4px;
}
.grade-card-hardness { font-size: .9rem; color: var(--muted); }
.grade-card .card-link { color: var(--brand); }

.prose { max-width: 760px; }
.prose p { font-size: 1.05rem; }

/* ---------- Product photos ----------
   Files: assets/images/products/cold-work.jpg, hot-work.jpg
   Missing files show as a labelled empty slot (see main.js). */
.photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  background: var(--line);
}
.photo-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border: 2px dashed #c8ced6;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
  padding: 12px;
}
.photo-slot i { font-size: 1.75rem; color: var(--steel); }

/* Full-bleed photo at the top of the home page category cards */
.category-card .category-card-img {
  width: calc(100% + 56px);
  max-width: none;
  margin: -28px -28px 20px;
  border-radius: 6px 6px 0 0;
}

/* ---------- Facility gallery (featured mosaic) ---------- */
.facility-mosaic {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 576px) {
  .facility-mosaic { grid-template-columns: repeat(2, 1fr); }
  .facility-item.is-featured { grid-column: span 2; }
}
@media (min-width: 992px) {
  .facility-mosaic {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 230px);
  }
  .facility-item.is-featured { grid-row: span 2; }
}

.facility-item {
  position: relative;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.facility-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s;
}
@media (min-width: 992px) {
  .facility-photo { height: 100%; aspect-ratio: auto; }
}
img.facility-photo { cursor: zoom-in; }
.facility-item:hover img.facility-photo { transform: scale(1.04); }
img.facility-photo:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }

.facility-photo.is-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed #c8ced6;
  border-radius: 6px;
  color: var(--muted);
  font-size: .9rem;
  padding-bottom: 40px; /* keep label clear of the caption bar */
}
.facility-photo.is-empty i { font-size: 1.75rem; color: var(--steel); }

.facility-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgba(2,29,64,.85));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  pointer-events: none;
}
.facility-item.is-featured figcaption { font-size: 1.3rem; padding: 40px 20px 16px; }

/* ---------- Infrastructure page ---------- */
.infra-row + .infra-row { margin-top: 3rem; }
@media (min-width: 992px) {
  .infra-row + .infra-row { margin-top: 5rem; }
}
.infra-figure {
  position: relative;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(2,29,64,.12);
}
.infra-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s;
}
@media (min-width: 992px) {
  .infra-img { aspect-ratio: 4 / 5; }
}
img.zoomable { cursor: zoom-in; }
.infra-figure:hover .infra-img { transform: scale(1.04); }
.infra-img:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.infra-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgba(2,29,64,.85));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  pointer-events: none;
}

.process-steps { list-style: none; padding: 0; margin: 0; }
.process-steps li { position: relative; }
.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
}
.process-steps h4 { margin: 1rem 0 .5rem; }
.process-steps p { color: var(--muted); margin: 0; }
@media (min-width: 992px) {
  /* thin line joining the step numbers */
  .process-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 24px;
    left: calc(var(--bs-gutter-x) * .5 + 60px);
    right: 0;
    border-top: 2px dashed #c8ced6;
  }
}

/* Full-size photo viewer */
.photo-modal .modal-content {
  background: transparent;
  border: 0;
  align-items: center;
}
.photo-modal .btn-close { align-self: flex-end; margin-bottom: 8px; }
.photo-modal img { max-width: 100%; max-height: 80vh; border-radius: 6px; }
.photo-modal p {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 12px 0 0;
}

/* ---------- Contact page ---------- */
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 24px;
  text-align: center;
}
.contact-card i {
  font-size: 2rem;
  color: var(--brand);
}
.contact-card h3 {
  font-size: 1.25rem;
  margin: 0.75rem 0 0.5rem;
}
.contact-card p { margin: 0; color: var(--muted); word-break: break-word; }
.contact-card a { text-decoration: none; }

.contact-address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.map-embed {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--line);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Quote form ---------- */
.form-section-title {
  font-size: 1.35rem;
  color: var(--brand);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 1.25rem;
}
.form-section-title:not(:first-of-type) { margin-top: 2.5rem; }
.quote-form .form-label { font-weight: 500; }
.quote-form .form-control:focus,
.quote-form .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .2rem rgba(3,43,95,.15);
}
.req { color: #c0392b; }
.form-note { color: var(--muted); font-size: .9rem; margin-top: .75rem; }

.btn-whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}
.btn-whatsapp:hover,
.btn-whatsapp:focus {
  background: #1ebe5b;
  border-color: #1ebe5b;
  color: #fff;
}

.quote-aside {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 28px;
  position: sticky;
  top: 100px;
}
.quote-aside h2 {
  font-size: 1.25rem;
  color: var(--brand);
  margin-bottom: 1rem;
}
.quote-aside h2 + ul { margin-bottom: 2rem; }
.quote-aside li { margin-bottom: .6rem; }
.quote-aside i { color: var(--brand); margin-right: 6px; }
.quote-aside a { text-decoration: none; }
.next-steps { padding-left: 1.2rem; color: var(--muted); }

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1030;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform .2s;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #bbb;
  padding: 60px 0 0;
}
.site-footer h5 { color: #fff; margin-bottom: 1rem; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #bbb; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; }
.footer-tagline {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 40px;
  padding: 20px 0;
  font-size: .85rem;
  text-align: center;
}
