/* Pranamya Automation — industrial static site (light theme) */

:root {
  /* Palette sourced from anadiautomation.com */
  --ink: #1d262d;
  --steel: #272727;
  --slate: #4c4b4b;
  --panel: #f4f4f4;
  --mist: #272727;
  --fog: #4c4b4b;
  --paper: #ffffff;
  --surface: #f7f7f7;
  --surface-muted: #efefef;
  --line: rgba(29, 38, 45, 0.1);
  --accent: #800000;
  --accent-deep: #5c0000;
  --accent-soft: #9a1a1a;
  --text-dark: #272727;
  --text-muted: #4c4b4b;
  --ok: #2f7d4a;
  --danger: #a8483f;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 120px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-soft);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--steel);
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.45rem;
  text-transform: uppercase;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  color: var(--steel);
  text-decoration: none;
}

.brand:hover {
  color: var(--steel);
}

.brand-logo {
  height: 105px;
  width: auto;
  max-width: min(260px, 55vw);
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius);
  padding: 0.25rem 0.45rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 600;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--accent-soft);
  color: #ffffff !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--steel);
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--steel);
}

@media (max-width: 860px) {
  :root {
    --header-h: 96px;
  }

  .brand-logo {
    height: 76px;
    max-width: min(220px, 55vw);
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(29, 38, 45, 0.08);
    padding: 0.5rem 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin: 0.75rem 1.25rem;
    justify-content: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-soft);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(29, 38, 45, 0.28);
  color: var(--steel);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 861px) {
  .hero {
    align-items: end;
    padding: 4rem 0 5rem;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 247, 247, 0.88) 48%, rgba(255, 255, 255, 0.96) 100%),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(128, 0, 0, 0.08), transparent 55%),
    linear-gradient(160deg, #ffffff 0%, #f5f5f5 55%, #eeeeee 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(29, 38, 45, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 38, 45, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 48px 48px;
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel);
  line-height: 0.95;
  margin: 0 0 1rem;
  max-width: 14ch;
  animation: riseIn 0.9s var(--ease) both;
}

.hero h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  max-width: 28ch;
  margin-bottom: 0.85rem;
  animation: riseIn 0.9s 0.12s var(--ease) both;
}

.hero-lead {
  max-width: 42ch;
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 1.75rem;
  animation: riseIn 0.9s 0.22s var(--ease) both;
}

.hero .btn-row {
  animation: riseIn 0.9s 0.32s var(--ease) both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-meta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  animation: riseIn 0.9s 0.42s var(--ease) both;
}

.hero-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.hero-meta span {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-muted {
  background: linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

/* Cards / grids — used as interaction/list containers */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.tile {
  padding: 1.5rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}

.tile:hover {
  background: rgba(128, 0, 0, 0.04);
  border-color: rgba(128, 0, 0, 0.35);
  transform: translateY(-3px);
}

.tile h3 {
  margin-bottom: 0.45rem;
}

.tile p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.98rem;
}

.tile a {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tile--media {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tile-media {
  width: 100%;
  height: 180px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.tile-body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tile-body a {
  margin-top: auto;
  padding-top: 0.85rem;
}

@media (max-width: 860px) {
  .tile-media {
    height: 200px;
  }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .tile-media {
    height: 160px;
  }
}

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  counter-reset: step;
}

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

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

.process-step {
  position: relative;
  padding: 1.25rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
}

.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.process-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

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

.panel {
  padding: 1.75rem;
  background:
    linear-gradient(145deg, rgba(128, 0, 0, 0.06), transparent 50%),
    var(--surface);
  border: 1px solid var(--line);
}

.panel dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1rem;
}

.panel dt:first-child {
  margin-top: 0;
}

.panel dd {
  margin: 0.25rem 0 0;
  color: var(--steel);
  font-weight: 500;
}

.panel a {
  color: var(--accent);
}

.panel a:hover {
  color: var(--accent-soft);
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(128, 0, 0, 0.07), transparent 50%),
    var(--surface);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -5%;
  top: 10%;
  width: 40%;
  height: 120%;
  background: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 12px,
    rgba(29, 38, 45, 0.04) 12px,
    rgba(29, 38, 45, 0.04) 13px
  );
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 16ch;
}

.page-hero p {
  max-width: 48ch;
  color: var(--text-muted);
  margin: 0;
}

.page-hero--contact {
  padding-bottom: 2.75rem;
}

.page-hero--contact::after {
  display: none;
}

.page-hero--contact .page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.page-hero--contact .page-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero--contact .page-hero-map {
  display: flex;
  min-height: 240px;
}

.page-hero--contact .map-frame--hero {
  flex: 1;
  width: 100%;
  min-height: 260px;
  height: 100%;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(128, 0, 0, 0.06);
}

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

  .page-hero--contact .page-hero-map {
    min-height: 220px;
  }

  .page-hero--contact .map-frame--hero {
    min-height: 220px;
  }
}

/* List blocks */
.offer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.offer-list li {
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  color: var(--text-dark);
}

/* CTA band */
.cta-band {
  padding: 3.5rem 0;
  background:
    linear-gradient(90deg, rgba(128, 0, 0, 0.08), transparent 55%),
    var(--surface-muted);
  border-block: 1px solid rgba(128, 0, 0, 0.25);
}

.cta-band h2 {
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: var(--text-muted);
  max-width: 40ch;
}

/* Contact form */
.form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--text-dark);
  background: var(--paper);
  border: 1px solid rgba(29, 38, 45, 0.18);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-status {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--ok);
  background: rgba(47, 125, 74, 0.1);
  display: none;
}

.form-status.is-error {
  border-left-color: var(--danger);
  background: rgba(168, 72, 63, 0.1);
}

.form-status.is-visible {
  display: block;
}

.cf-turnstile {
  margin: 0.25rem 0;
}

.map-frame {
  width: 100%;
  min-height: 280px;
  border: 0;
  border: 1px solid var(--line);
  filter: grayscale(0.15) contrast(1.02);
}

/* Footer — Anadi-like dark bar on light page */
.site-footer {
  padding: 3rem 0 6.5rem;
  background: #1d262d;
  border-top: 1px solid rgba(163, 164, 165, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

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

.site-footer h3 {
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
  color: #fff;
}

.footer-logo {
  height: 110px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  margin-bottom: 0.85rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 0.3rem 0.5rem;
}

.site-footer p,
.site-footer li {
  color: #a3a4a5;
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: #d6d6d6;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #a3a4a5;
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.45rem;
}

.sticky-cta a {
  text-align: center;
  padding: 0.7rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--accent);
  border-radius: var(--radius);
}

.sticky-cta a.alt {
  background: var(--steel);
  color: #fff;
  border: 1px solid transparent;
}

@media (max-width: 860px) {
  .sticky-cta {
    display: grid;
  }

  body {
    padding-bottom: 4.5rem;
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Utility */
.text-fog {
  color: var(--text-muted);
}

.mt-2 {
  margin-top: 2rem;
}
