:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #5d6770;
  --paper: #f6f8f8;
  --white: #ffffff;
  --charcoal: #192530;
  --steel: #365f6d;
  --steel-dark: #213f4a;
  --copper: #c46a3a;
  --light-steel: #d7e7eb;
  --line: #d9e1e3;
  --shadow: 0 18px 45px rgba(23, 33, 43, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(16px, 4vw, 54px);
  background: rgba(246, 248, 248, 0.95);
  border-bottom: 1px solid rgba(217, 225, 227, 0.95);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--steel-dark);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--steel-dark);
}

.phone-button,
.primary-action,
.secondary-action,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.phone-button {
  padding: 0 16px;
  background: var(--copper);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(196, 106, 58, 0.24);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 78vh;
  padding: 120px clamp(18px, 6vw, 76px) 70px;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-fencing-paling-bay.png");
  background-position: center right;
  background-size: cover;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(14, 27, 38, 0.92) 0%, rgba(14, 27, 38, 0.7) 40%, rgba(14, 27, 38, 0.16) 78%),
    linear-gradient(0deg, rgba(14, 27, 38, 0.22), rgba(14, 27, 38, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--light-steel);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(2.05rem, 5.8vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
}

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

.primary-action {
  padding: 0 22px;
  background: var(--copper);
  color: var(--white);
}

.secondary-action {
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-item {
  display: flex;
  gap: 16px;
  min-width: 0;
  padding: clamp(22px, 4vw, 34px);
  background: var(--white);
}

.intro-icon,
.service-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: #e7f0f2;
  color: var(--steel-dark);
  font-weight: 900;
}

.intro-item h2,
.service-card h3,
.call-panel h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.intro-item p,
.service-card p,
.section-heading p,
.quote-copy p {
  margin: 9px 0 0;
  color: var(--muted);
}

.section {
  padding: clamp(58px, 9vw, 98px) clamp(18px, 6vw, 76px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.quote-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 210px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(31, 37, 33, 0.06);
}

.service-card h3 {
  margin-top: 18px;
}

.make-safe-section {
  background: var(--charcoal);
  color: var(--white);
}

.make-safe-section .section-heading p,
.make-safe-section .check-list {
  color: rgba(255, 255, 255, 0.78);
}

.make-safe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(24px, 5vw, 54px);
  align-items: start;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 14px;
  color: var(--light-steel);
  content: "";
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(40deg);
  font-weight: 900;
}

.call-panel {
  padding: 28px;
  background: #edf7f9;
  color: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-label {
  margin: 0 0 8px;
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.call-panel a {
  display: inline-block;
  margin-top: 16px;
  color: var(--steel-dark);
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  font-weight: 900;
  text-decoration: none;
}

.quote-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
  background: #e9f0f1;
}

.quote-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 32px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.field-row {
  display: grid;
  gap: 8px;
}

.field-row.split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  color: var(--charcoal);
  font-size: 0.84rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #cdd4ca;
  border-radius: 6px;
  background: #fcfcfa;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(196, 106, 58, 0.28);
  border-color: var(--copper);
}

.submit-button {
  width: fit-content;
  padding: 0 22px;
  background: var(--steel-dark);
  color: var(--white);
  font-size: 1rem;
}

.form-note {
  min-height: 1.4em;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hidden-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 6vw, 76px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
}

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

  .nav-links {
    display: none;
  }

  .intro-band,
  .service-grid,
  .make-safe-layout,
  .quote-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 74vh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(14, 27, 38, 0.92) 0%, rgba(14, 27, 38, 0.66) 68%, rgba(14, 27, 38, 0.32) 100%),
      linear-gradient(0deg, rgba(14, 27, 38, 0.28), rgba(14, 27, 38, 0.1));
  }

  .check-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: sticky;
    padding: 10px 12px;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .phone-button {
    width: 46px;
    padding: 0;
  }

  .phone-button span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .hero {
    min-height: 72vh;
    padding: 76px 18px 48px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-actions,
  .primary-action,
  .secondary-action,
  .submit-button {
    width: 100%;
  }

  .intro-item {
    padding: 22px 18px;
  }

  .section {
    padding: 54px 18px;
  }

  .field-row.split {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: clamp(1.7rem, 8.2vw, 1.9rem);
  }
}
