/* =========================================================
   Chawla Cranes - single landing page
   Palette (taken from the live site): dark navy, mustard
   yellow, black, white.
   ========================================================= */

:root {
  --navy: #0f1323; /* dark navy (site header colour) */
  --navy-soft: #181e38; /* slightly lighter navy for panels */
  --black: #020618; /* site button black */
  --white: #ffffff;
  --paper: #f8fafc; /* site card background */
  --ink: #0f1323;
  --muted: #4b5568;
  --line: #dbe1ec;

  --yellow: #ffb900; /* mustard yellow (site button colour) */
  --yellow-hover: #ffc933;
  --wa: #168a4a; /* WhatsApp green, as on the live site */

  --font-head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body:
    "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --header-h: 76px;
  --radius: 6px;
  --container: 1200px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img,
svg {
  max-width: 100%;
}
h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0.005em;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
address {
  font-style: normal;
}
section[id] {
  scroll-margin-top: var(--header-h);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.ic {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic--xl {
  width: 2.75rem;
  height: 2.75rem;
  stroke-width: 1.5;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
.on-dark :focus-visible,
.on-dark:focus-visible {
  outline-color: var(--yellow);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--yellow);
  color: var(--black);
  padding: 0.6rem 1rem;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.btn--lg {
  padding: 0.95rem 1.5rem;
  font-size: 1.0625rem;
}
.btn--block {
  width: 100%;
}

.btn--yellow {
  background: var(--yellow);
  color: var(--black);
}
.btn--yellow:hover {
  background: var(--yellow-hover);
}

.btn--black {
  background: var(--black);
  color: var(--white);
}
.btn--black:hover {
  background: var(--yellow);
  color: var(--black);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}
.btn--ghost:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn--outline-navy {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn--outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

.text-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-underline-offset: 4px;
  text-decoration-thickness: 3px;
}
.text-link:hover {
  text-decoration-color: var(--navy);
}
.on-dark .text-link {
  color: var(--yellow);
}

/* ---------- Hazard stripe ---------- */
.hazard {
  height: 12px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 16px,
    var(--black) 16px 32px
  );
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
  border-bottom: 3px solid var(--yellow);
  transition: box-shadow 0.2s;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--header-h) - 3px);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--yellow);
  border-radius: var(--radius);
}
.logo-mark span {
  color: var(--black);
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 900;
  /* letter-spacing: -0.08em; */
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav ul {
  display: flex;
  gap: 0.25rem;
}
.site-nav ul a {
  display: block;
  padding: 0.55rem 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.site-nav ul a:hover {
  color: var(--yellow);
}
.site-nav ul a.is-active {
  border-bottom-color: var(--yellow);
  color: var(--yellow);
}
.nav-cta {
  padding: 0.65rem 1.1rem;
}

@media (max-width: 1040px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--navy);
    border-bottom: 3px solid var(--yellow);
    display: none;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav ul a {
    padding: 0.95rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1.1rem;
  }
  .site-nav ul a.is-active {
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }
  .nav-cta {
    margin-top: 1rem;
  }
}

/* ---------- Hero (compact, background image) ----------
   Put your photo at images/hero-bg.jpg. If the file is missing
   the hero simply shows the navy overlay. */
.hero {
  color: var(--white);
  background:
    linear-gradient(
      90deg,
      rgba(15, 19, 35, 0.95) 0%,
      rgba(15, 19, 35, 0.82) 55%,
      rgba(15, 19, 35, 0.6) 100%
    ),
    url("images/hero-bg.png") center / cover no-repeat var(--navy);
}
.hero-inner {
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  max-width: 24ch;
}
.hero-lead {
  margin-top: 1rem;
  max-width: 56ch;
  font-size: 1.08rem;
  color: #d6dcea;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.chips li {
  padding: 0.25rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #e7ebf5;
}

/* ---------- Generic sections ---------- */
.section {
  padding-block: clamp(2.25rem, 7vw, 2.5rem);
}
.section--paper {
  background: var(--white);
}
#services,
#locations {
  background: var(--paper);
  margin-top: -10px;
}
.section--navy {
  background: var(--navy);
  color: var(--white);
}

/* all section headings centred */
.section-head {
  max-width: 68ch;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.section-head h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
}
.section-head p {
  margin-top: 0.3rem;
  font-size: 1.08rem;
  color: var(--muted);
}
.on-dark .section-head p {
  color: #b9c2d6;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 1rem auto 0;
  background: var(--yellow);
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--yellow);
  border-radius: var(--radius);
  color: var(--navy);
}
.service h3 {
  margin-top: 1.1rem;
  font-size: 1.75rem;
}
.service p {
  margin-top: 0.6rem;
  color: var(--muted);
  flex: 1;
}
.service .text-link {
  margin-top: 1.25rem;
}

@media (max-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Fleet cards ---------- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.crane-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.crane-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  background: var(--navy-soft);
}
.crane-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem 1.4rem 1.5rem;
}
.crane-body h3 {
  font-size: 1.7rem;
  color: var(--navy);
}
.crane-body > p:not(.good-for) {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1rem;
}
.good-for {
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}
.good-list {
  margin: 0.5rem 0 1.4rem;
  display: grid;
  gap: 0.3rem;
  flex: 1;
  align-content: start;
}
.good-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.98rem;
  color: var(--muted);
}
.good-list .ic {
  width: 1.05em;
  height: 1.05em;
  stroke-width: 2.6;
  color: var(--navy);
}

@media (max-width: 980px) {
  .fleet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .fleet-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Locations ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.area {
  padding: 1.6rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius);
}
.area h3 {
  font-size: 2.1rem;
  color: var(--navy);
}
.area p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.area-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-weight: 600;
  color: inherit;
  text-align: center;
}
@media (max-width: 720px) {
  .area-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- About us ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.about-visual {
  position: relative;
  min-height: 420px;
}
.about-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(15, 19, 35, 0.18);
}
.about-eyebrow {
  margin-bottom: 0.8rem;
  color: #9a6d00;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.about-copy h2 {
  max-width: none;
  color: var(--navy);
  font-size: clamp(2rem, 3vw, 2.7rem);
}
.about-intro {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.08rem;
}
.about-detail {
  margin-top: 0.8rem;
  color: var(--muted);
}
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .about-visual,
  .about-visual img {
    min-height: 360px;
  }
}
@media (max-width: 640px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-visual,
  .about-visual img {
    min-height: 280px;
  }
  .about-actions .btn {
    width: 100%;
  }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: stretch;
}
.contact-info {
  background: var(--navy);
  color: var(--white);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.contact-info h3 {
  font-size: 2rem;
}

.contact-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.1rem;
}
.contact-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.contact-list .ic {
  margin-top: 0.2rem;
  color: var(--yellow);
}
.contact-list span {
  display: block;
  font-size: 0.9rem;
  color: #9fa9c0;
}
.contact-list a,
.contact-list address {
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}
.contact-list a:hover {
  color: var(--yellow);
}

.checklist {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--yellow);
}
.checklist h3 {
  font-size: 1.5rem;
}
.checklist ul {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.45rem;
}
.checklist li {
  position: relative;
  padding-left: 1.4rem;
  color: #c3cbdc;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--yellow);
}

.contact-form {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 0;
}
.contact-form h3 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 1.4rem;
}

.field {
  margin-bottom: 1.1rem;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #b6bfd1;
  border-radius: var(--radius);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 0;
  border-color: var(--navy);
}
.field.has-error input {
  border-color: #b3261e;
}
.error {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #b3261e;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}
.form-status {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--navy);
}
.form-status:empty {
  display: none;
}

@media (max-width: 920px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-form {
    border-left: 1px solid var(--line);
    border-top: 0;
  }
}
@media (max-width: 520px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-actions .btn {
    width: 100%;
  }
}

/* ---------- FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.7fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}
.faq-intro h2 {
  color: var(--navy);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}
.faq-intro p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.faq-list {
  min-width: 0;
  border-top: 2px solid var(--navy);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.faq-q {
  position: relative;
  display: block;
  width: 100%;
  padding: 1.15rem 3rem 1.15rem 0;
  font: inherit;
  text-align: left;
  color: var(--navy);
  background: none;
  border: 0;
  cursor: pointer;
}
.faq-q:hover {
  color: #000;
}
.faq-q::before,
.faq-q::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 18px;
  height: 3px;
  margin-top: -1px;
  background: var(--navy);
  transition: transform 0.2s;
}
.faq-q::after {
  transform: rotate(90deg);
}
.faq-q[aria-expanded="true"]::after {
  transform: rotate(0deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.faq-panel > div {
  overflow: hidden;
}
.faq-panel p {
  padding: 0 3rem 1.3rem 0;
  color: var(--muted);
}
.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}
@media (max-width: 760px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #c3cbdc;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.1fr 1.2fr 1.2fr;
  gap: 1.75rem;
  padding-block: 3.5rem 2.5rem;
}
.footer-map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius);
}
.footer-map > a {
  display: inline-block;
  margin-top: 0.65rem;
  color: var(--yellow);
  font-weight: 700;
}
.footer-brand .logo {
  color: var(--white);
}
.footer-brand p {
  margin-top: 1rem;
  max-width: 34ch;
}
.footer-call {
  display: inline-block;
  font-weight: 700;
  color: var(--yellow);
  text-decoration: none;
}
.footer-call:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer h3 {
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.site-footer ul {
  display: grid;
  gap: 0.55rem;
}
.site-footer a {
  text-decoration: none;
}
.site-footer ul a:hover {
  color: var(--yellow);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--white);
}
.footer-legal a {
  color: inherit;
  text-decoration: none;
}
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---------- Fixed call + WhatsApp ---------- */
.fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.15s,
    filter 0.15s;
}
.fab-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.fab-btn:focus-visible {
  outline-color: var(--white);
  outline-offset: 3px;
}
.fab-btn .ic {
  width: 1.15em;
  height: 1.15em;
}
.fab-call {
  background: var(--yellow);
  color: var(--black);
}
.fab-wa {
  background: var(--wa);
  color: var(--white);
}

@media (max-width: 640px) {
  body {
    padding-bottom: 60px;
  }
  .fab {
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: row;
    gap: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--black);
  }
  .fab-btn {
    flex: 1;
    border-radius: 0;
    padding: 0.7rem 0.5rem;
    box-shadow: none;
  }
  .fab-btn:hover {
    transform: none;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
