/* ==========================================================================
   Atulya Extrusions - public website
   Brand colours from logo: orange #E8891D, red #D42027, blue #3A4FAE
   ========================================================================== */

:root {
  --orange: #e8891d;
  --red: #d42027;
  --blue: #3a4fae;
  --dark: #1d2430;
  --text: #333a45;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --border: #e3e6ea;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header / nav ---- */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none !important;
}

.brand img { height: 40px; width: auto; }
.brand em { color: var(--orange); font-style: normal; }

.site-nav { display: flex; align-items: center; gap: 4px; }

.site-nav a {
  padding: 10px 14px;
  color: var(--dark);
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none !important;
}

.site-nav a:hover { background: var(--bg-alt); }
.site-nav a.active { color: var(--red); }

.site-nav .nav-admin {
  margin-left: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

/* Mobile nav (checkbox hamburger, no JS needed) */
.nav-toggle-box { display: none; }
.nav-toggle { display: none; cursor: pointer; padding: 10px; }

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--dark);
  margin: 4px 0;
  border-radius: 2px;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 12px;
  }

  .site-nav a { padding: 12px 8px; border-bottom: 1px solid var(--border); }
  .site-nav .nav-admin { margin-left: 0; border: 0; }

  .nav-toggle-box:checked ~ .site-nav { display: flex; }
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2a3550 60%, var(--blue) 100%);
  color: #fff;
  padding: 72px 0;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero p { max-width: 560px; font-size: 18px; color: #d7dbe4; margin-bottom: 28px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #cf7712; }

.btn-outline { border: 2px solid #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

/* ---- Sections ---- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  text-align: center;
  font-size: 30px;
  color: var(--dark);
  margin-bottom: 36px;
}

.page-head {
  background: var(--dark);
  color: #fff;
  padding: 36px 0;
  border-bottom: 4px solid var(--orange);
}

.page-head h1 { font-size: 32px; }

.content-narrow { max-width: 720px; }
.content-narrow p { margin-bottom: 18px; }
.content-narrow h2 { margin: 28px 0 12px; color: var(--dark); }

/* ---- Features ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
}

.feature-mark { width: 44px; height: 6px; border-radius: 3px; margin-bottom: 16px; }
.mark-orange { background: var(--orange); }
.mark-red { background: var(--red); }
.mark-blue { background: var(--blue); }

.feature h3 { color: var(--dark); margin-bottom: 8px; }
.feature p { color: var(--muted); }

.cta-band { text-align: center; }
.cta-band h2 { color: var(--dark); margin-bottom: 8px; }
.cta-band p { color: var(--muted); margin-bottom: 20px; }

/* ---- Catalogue ---- */
.catalogue-intro { margin-bottom: 20px; color: var(--muted); }

.catalogue-search { margin-bottom: 28px; }

.catalogue-search input {
  width: 100%;
  max-width: 420px;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.product-card:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1); }

.product-img {
  background: var(--bg-alt);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.product-img img { max-height: 136px; width: auto; max-width: 100%; }

.product-info { padding: 14px 16px; }

.product-code {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: #eef1fb;
  border-radius: 3px;
  padding: 2px 8px;
  margin-bottom: 6px;
}

.product-info h3 { font-size: 15px; color: var(--dark); font-weight: 600; }

.no-results { color: var(--muted); text-align: center; padding: 30px 0; }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info h2 { color: var(--dark); margin-bottom: 14px; }
.contact-info p { margin-bottom: 14px; }
.contact-note { color: var(--muted); font-size: 15px; }

.contact-form label {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin: 14px 0 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--blue);
  border-color: var(--blue);
}

.contact-form button { margin-top: 20px; }

.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.alert-success { background: #e7f6ec; color: #1e7a3c; border: 1px solid #bfe5cc; }
.alert-error { background: #fdecec; color: #b3261e; border: 1px solid #f5c6c4; }

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq-item h3 { color: var(--dark); margin-bottom: 6px; font-size: 18px; }
.faq-item p { color: var(--muted); }

/* ---- Footer ---- */
.site-footer { background: var(--dark); color: #c4c9d4; margin-top: 40px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 34px;
}

.footer-logo { height: 36px; width: auto; background: #fff; padding: 4px 8px; border-radius: 4px; margin-bottom: 12px; }

.site-footer h4 { color: #fff; margin-bottom: 12px; }
.site-footer a { display: block; color: #c4c9d4; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }

.footer-bar {
  border-top: 1px solid #333d4f;
  padding: 14px 0;
  font-size: 14px;
  color: #8a93a3;
}

/* ---- Small screens ---- */
@media (max-width: 600px) {
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .section { padding: 40px 0; }
  .page-head h1 { font-size: 26px; }
  .btn { width: 100%; text-align: center; }
  .hero-actions .btn { width: auto; flex: 1; }
}
