/* ============================================
   Om Shanirajeshwar Fabrication — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #fdfcf9;
  --panel: #ffffff;
  --ink: #14130f;
  --yellow: #f2a81d;
  --yellow-deep: #c9860c;
  --steel: #5c5a52;
  --steel-light: #9a978c;
  --line: #e8e4da;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1em; color: var(--steel); max-width: 62ch; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Hazard stripe divider (signature element) ---------- */
.hazard {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--ink),
    var(--ink) 16px,
    var(--yellow) 16px,
    var(--yellow) 32px
  );
}

/* ---------- Header ---------- */
header.site-head {
  border-bottom: 2px solid var(--ink);
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 50;
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 48px;
  width: auto;
  display: block;
}

.brand-text {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-text small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-transform: none;
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.04em;
}

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

nav.main-nav a {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-bottom: 3px solid transparent;
  color: var(--ink);
}

nav.main-nav a:hover { border-bottom-color: var(--yellow); }
nav.main-nav a.active { border-bottom-color: var(--ink); background: var(--yellow); }

.nav-toggle { display: none; }

@media (max-width: 780px) {
  .brand-text { font-size: 14px; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 2px solid var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 14px 32px; border-bottom: 1px solid var(--line); }
  nav.main-nav a.active { border-bottom: 1px solid var(--line); }
  .nav-toggle {
    display: block;
    background: none;
    border: 2px solid var(--ink);
    width: 44px;
    height: 40px;
    cursor: pointer;
    position: relative;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    position: absolute;
    left: 12px;
    top: 19px;
  }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .head-inner { position: relative; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 14px;
  padding: 14px 26px;
  border: 2px solid var(--ink);
  cursor: pointer;
}

.btn-solid { background: var(--ink); color: var(--yellow); }
.btn-solid:hover { background: var(--yellow-deep); color: var(--ink); border-color: var(--yellow-deep); }

.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--yellow); }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.eyebrow-mark .dot {
  width: 10px; height: 10px;
  background: var(--yellow);
  border: 2px solid var(--ink);
}

.eyebrow-mark span {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  margin-bottom: 22px;
}

.hero h1 .hl { color: var(--yellow-deep); }

.hero p.lead {
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 32px;
}

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

.hero-visual {
  border: 2px solid var(--ink);
  background: var(--panel);
  padding: 28px;
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px;
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--ink), var(--ink) 10px, var(--yellow) 10px, var(--yellow) 20px);
}

.hero-visual img { width: 100%; height: auto; display: block; margin-top: 6px; }

/* ---------- Section ---------- */
section { padding: 64px 0; }
section.tight { padding: 44px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.kicker {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--yellow-deep);
  margin-bottom: 10px;
  display: block;
}

/* ---------- Plate cards (services) ---------- */
.plate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 2px solid var(--ink);
}

.plate {
  padding: 32px 28px;
  border-right: 2px solid var(--ink);
  position: relative;
  background: var(--panel);
}

.plate:last-child { border-right: none; }

.plate .rivet {
  position: absolute;
  top: 14px; right: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
}

.plate .num {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  color: var(--steel-light);
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  display: block;
}

.plate h3 { font-size: 1.2rem; margin-bottom: 12px; }
.plate p { font-size: 0.94rem; margin-bottom: 0; }

@media (max-width: 860px) {
  .plate-grid { grid-template-columns: 1fr; }
  .plate { border-right: none; border-bottom: 2px solid var(--ink); }
  .plate:last-child { border-bottom: none; }
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink);
  color: var(--yellow);
  padding: 48px 0;
}

.cta-banner .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-banner p { color: var(--steel-light); margin: 6px 0 0; }
.cta-banner .btn-solid { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.cta-banner .btn-solid:hover { background: #fff; border-color: #fff; }

/* ---------- Footer ---------- */
footer.site-foot {
  background: var(--yellow);
  color: var(--ink);
  position: relative;
  padding: 60px 0 28px;
  border-top: 2px solid var(--ink);
}

footer.site-foot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--ink),
    var(--ink) 16px,
    var(--yellow) 16px,
    var(--yellow) 32px
  );
  border-bottom: 2px solid var(--ink);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.foot-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.foot-brand img { height: 42px; }
.foot-brand strong { color: var(--ink) !important; font-weight: 700; }
.foot-grid p { color: rgba(20, 19, 15, 0.9); font-weight: 500; font-size: 14px; }

.foot-col h4 {
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 700;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
  display: inline-block;
}

.foot-col a, .foot-col p {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: rgba(20, 19, 15, 0.92);
  font-weight: 500;
  transition: color 0.15s ease, transform 0.15s ease;
}

.foot-col a:hover {
  color: #000000;
  font-weight: 700;
  transform: translateX(4px);
}

.foot-bottom {
  border-top: 2px solid rgba(20, 19, 15, 0.25);
  padding-top: 20px;
  font-size: 13px;
  color: rgba(20, 19, 15, 0.85);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.foot-bottom-links {
  display: inline-flex;
  align-items: center;
}

.manage-content-link {
  color: rgba(20, 19, 15, 0.9);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s ease, font-weight 0.15s ease;
}

.manage-content-link:hover {
  color: #000000;
  font-weight: 700;
}

.lock-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--yellow);
  width: 18px;
  height: 18px;
  border-radius: 3px;
  font-size: 10px;
  margin-right: 4px;
}

/* ---------- Admin Lock Modal ---------- */
.admin-lock-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 19, 15, 0.75);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.admin-lock-overlay.active {
  opacity: 1;
  visibility: visible;
}

.admin-lock-card {
  background: var(--panel);
  border: 3px solid var(--ink);
  width: 100%;
  max-width: 420px;
  box-shadow: 10px 10px 0 var(--ink);
  position: relative;
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 0.25s ease;
}

.admin-lock-overlay.active .admin-lock-card {
  transform: scale(1);
}

.admin-lock-card.shake {
  animation: lockShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes lockShake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

.admin-lock-strip {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--ink),
    var(--ink) 12px,
    var(--yellow) 12px,
    var(--yellow) 24px
  );
  border-bottom: 2px solid var(--ink);
}

.admin-lock-body {
  padding: 30px 28px 24px;
  text-align: center;
}

.admin-lock-icon {
  width: 52px;
  height: 52px;
  background: var(--ink);
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  border: 2px solid var(--yellow);
  box-shadow: 3px 3px 0 var(--yellow-deep);
}

.admin-lock-body h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.admin-lock-body p {
  font-size: 13px;
  color: var(--steel);
  margin-bottom: 20px;
}

.admin-lock-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0.2em;
  font-weight: bold;
  margin-bottom: 14px;
  box-sizing: border-box;
}

.admin-lock-input:focus {
  outline: 3px solid var(--yellow);
}

.admin-lock-actions {
  display: flex;
  gap: 10px;
}

.admin-lock-actions button {
  flex: 1;
  padding: 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 2px solid var(--ink);
  font-weight: 600;
}

.admin-lock-btn-unlock {
  background: var(--ink);
  color: var(--yellow);
}

.admin-lock-btn-unlock:hover {
  background: var(--yellow-deep);
  color: var(--ink);
}

.admin-lock-btn-cancel {
  background: transparent;
  color: var(--ink);
}

.admin-lock-btn-cancel:hover {
  background: #eeeae0;
}

.admin-lock-err {
  color: #c92a2a;
  font-size: 12px;
  font-weight: 600;
  margin-top: 12px;
  display: none;
}

.admin-lock-err.visible {
  display: block;
}

@media (max-width: 780px) {
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Page header (interior pages) ---------- */
.page-head {
  padding: 52px 0 40px;
  border-bottom: 2px solid var(--ink);
}

.page-head h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.page-head .kicker { margin-bottom: 12px; }

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.value-list { list-style: none; padding: 0; margin: 0; }
.value-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.value-list li:first-child { padding-top: 0; }
.value-list .mark {
  width: 22px; height: 22px;
  flex-shrink: 0;
  background: var(--yellow);
  border: 2px solid var(--ink);
  margin-top: 2px;
}
.value-list h4 { font-size: 15px; margin-bottom: 4px; }
.value-list p { font-size: 14px; margin: 0; }

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

/* ---------- Services detail page ---------- */
.service-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  padding: 48px 0;
  border-bottom: 2px solid var(--line);
  align-items: start;
}

.service-block:last-child { border-bottom: none; }
.service-block.reverse .service-media { order: 2; }

.service-media {
  background: var(--panel);
  border: 2px solid var(--ink);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.service-media:hover img {
  transform: scale(1.04);
}

.service-media .icon-mark {
  width: 76px; height: 76px;
}

.service-block h3 { font-size: 1.5rem; margin-bottom: 14px; }
.service-block ul { padding-left: 0; list-style: none; margin: 18px 0 0; }
.service-block ul li {
  padding-left: 22px;
  position: relative;
  font-size: 14px;
  color: var(--steel);
  margin-bottom: 10px;
}
.service-block ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 9px; height: 9px;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
}

@media (max-width: 860px) {
  .service-block, .service-block.reverse { grid-template-columns: 1fr; }
  .service-block.reverse .service-media { order: 0; }
}

/* ---------- Projects / gallery page ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  border: 2px solid var(--ink);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--ink);
}

.gallery-thumb {
  aspect-ratio: 4/3;
  background: repeating-linear-gradient(135deg, #f3f0e8, #f3f0e8 10px, #eeeae0 10px, #eeeae0 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--ink);
  color: var(--steel-light);
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-thumb img {
  transform: scale(1.05);
}

.gallery-thumb svg { width: 44px; height: 44px; margin-bottom: 10px; display: block; margin-left: auto; margin-right: auto; }

.gallery-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.gallery-body .tag {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--yellow-deep);
  margin-bottom: 8px;
}
.gallery-body h4 { font-size: 16px; margin-bottom: 6px; }
.gallery-body p { font-size: 13px; margin: 0 0 16px 0; color: var(--steel); line-height: 1.5; }

.hero-image-wrap {
  position: relative;
  border: 2px solid var(--ink);
  background: var(--ink);
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--yellow);
}

.hero-image-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.hero-image-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 19, 15, 0.92);
  color: #ffffff;
  padding: 10px 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--yellow);
}

.hero-image-badge span.loc {
  color: var(--yellow);
}

.upload-note {
  border: 2px dashed var(--steel-light);
  padding: 28px;
  text-align: center;
  margin-top: 40px;
}
.upload-note p { margin: 0 auto; max-width: 50ch; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-image-wrap img { height: 280px; }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  border: 2px solid var(--ink);
  padding: 28px;
  margin-bottom: 20px;
  background: var(--panel);
}

.contact-card h4 {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--steel);
  margin-bottom: 10px;
}

.contact-card a, .contact-card p { font-size: 15px; margin: 0 0 6px; }
.contact-card a:hover { color: var(--yellow-deep); }

form.quote-form {
  border: 2px solid var(--ink);
  padding: 36px;
  background: var(--panel);
}

.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}

.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  border: 2px solid var(--ink);
  background: var(--bg);
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink);
}

.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 0;
}

.form-row textarea { resize: vertical; min-height: 120px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-note { font-size: 13px; color: var(--steel-light); margin-top: 10px; }

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

/* ---------- Map placeholder ---------- */
.map-frame {
  border: 2px solid var(--ink);
  margin-top: 24px;
  overflow: hidden;
}
.map-frame iframe { display: block; width: 100%; height: 280px; border: 0; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--yellow-deep);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .brand-text { font-size: 11.5px; }
  .brand img { height: 38px; }
}

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

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  transition: transform 0.15s ease;
}

.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 28px; height: 28px; fill: #fff; }

@media (max-width: 600px) {
  .whatsapp-fab { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .whatsapp-fab svg { width: 25px; height: 25px; }
}

/* ---------- Hero illustration ---------- */
.hero-illustration {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Service area note ---------- */
.service-area {
  font-size: 13px;
  color: var(--steel-light);
  margin-top: 8px;
}

/* ---------- Project meta rows ---------- */
.gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.gallery-meta span {
  font-size: 12px;
  color: var(--steel);
}
.gallery-meta span strong {
  color: var(--ink);
  font-weight: 600;
}
