/* Trammell services — Murchison
   Fence and gate sales service.

   Palette: iron (the metal), cedar (the timber), gate red (the accent),
   warm neutrals. Used in bands behind whole sections, not just on buttons.

   THE HERO PHOTOGRAPH: the one licensed photograph belongs on .hero__media,
   as a file copied into the site — never as an address pointing off it.
   The scrim above it (.hero__scrim) is already set dark enough that white
   text clears the contrast floor over the brightest part of a sunny picture.
*/

:root {
  --iron:        #223a41;
  --iron-deep:   #14252a;
  --iron-line:   #2f4d55;
  --cedar:       #8c4b28;
  --gate:        #b3381d;
  --gate-dark:   #93290f;
  --bone:        #f8f3ea;
  --sand:        #e9dcc9;
  --ink:         #1c1a16;
  --ink-soft:    #4a453c;
  --hairline:    rgba(28, 26, 22, 0.16);

  --measure: 34rem;
  --wrap: 68rem;

  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1.1em; }

a { color: var(--gate-dark); }
a:hover { color: var(--gate); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wrap--measure { max-width: calc(var(--measure) + 2.5rem); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gate);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 50;
}
.skip:focus { left: 0; }

/* ---------- Masthead: two rows. Name on its own line, links in a band. --- */

.masthead {
  background: var(--bone);
  border-bottom: 3px solid var(--cedar);
}

.masthead__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.7rem;
  padding: 0.9rem 1.25rem 0.75rem;
  max-width: var(--wrap);
  margin: 0 auto;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 5.5vw, 1.9rem);
  letter-spacing: -0.015em;
  color: var(--iron-deep);
}

.place {
  font-size: 0.9rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cedar);
  font-weight: 600;
}

.navband {
  background: var(--iron);
}

.navband {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0;
  padding: 0 0.5rem;
}

.navband a {
  display: block;
  padding: 0.7rem 0.8rem;
  color: #f4efe6;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-bottom: 3px solid transparent;
}

.navband a:hover,
.navband a:focus {
  color: #fff;
  border-bottom-color: var(--gate);
}

/* ---------- Hero: the first screen does the whole job -------------------- */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--iron-deep);
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--iron-deep);
  /* The licensed photograph is copied in here as a local file. Until it is,
     the surface is type, colour and space — never an empty frame. */
  background-image:
    radial-gradient(120% 90% at 78% 12%, rgba(179, 96, 41, 0.42) 0%, rgba(20, 37, 42, 0) 62%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0 10px,
      rgba(255, 255, 255, 0) 10px 46px
    ),
    linear-gradient(168deg, #2b4952 0%, #1a2f36 48%, #101f24 100%);
  background-size: cover, auto, cover;
  background-position: center;
  background-repeat: no-repeat, repeat, no-repeat;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 18, 21, 0.66) 0%,
    rgba(10, 18, 21, 0.70) 45%,
    rgba(10, 18, 21, 0.82) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3rem;
  color: #fff;
}

.hero__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0e3d2;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 8vw, 3.6rem);
  max-width: 16ch;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.hero__stand {
  font-size: clamp(1.05rem, 3.6vw, 1.3rem);
  max-width: 30ch;
  color: #f5efe6;
  margin-bottom: 1.6rem;
}

.hero__under {
  margin: 1rem 0 0;
  font-size: 0.98rem;
}

.hero__under a { color: #f3e6d6; }
.hero__under a:hover { color: #fff; }

/* ---------- Buttons ------------------------------------------------------ */

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn--call {
  background: var(--gate);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 3px;
  box-shadow: 0 6px 0 var(--gate-dark);
}

.btn--call:hover,
.btn--call:focus {
  background: var(--gate-dark);
  color: #fff;
  box-shadow: 0 4px 0 #6f1e0a;
}

.btn__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.92;
}

.btn__number {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn--send {
  background: var(--iron);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  border-radius: 3px;
  align-items: center;
}

.btn--send:hover,
.btn--send:focus { background: var(--iron-deep); }

/* ---------- Bands -------------------------------------------------------- */

.band { padding: 3.5rem 0; }

.band--bone {
  background: var(--bone);
  border-bottom: 1px solid var(--hairline);
}

.band--sand { background: var(--sand); }

.band h2 {
  font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  color: var(--iron-deep);
}

.band h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  margin-top: 0.7rem;
  background: var(--cedar);
}

.lede {
  font-size: 1.2rem;
  color: var(--iron-deep);
  font-weight: 500;
}

/* ---------- Contact ------------------------------------------------------ */

.contact {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

.contact__words p { max-width: var(--measure); }

.details {
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.details div {
  border-top: 1px solid rgba(28, 26, 22, 0.2);
  padding-top: 0.7rem;
}

.details dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.details dd {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  font-weight: 500;
  word-break: break-word;
}

.enquiry {
  background: #fffdf9;
  border: 1px solid var(--hairline);
  border-top: 4px solid var(--iron);
  padding: 1.5rem 1.25rem 1.75rem;
}

.enquiry h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--iron-deep);
}

.field { margin: 0 0 1rem; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}

.field .opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(28, 26, 22, 0.32);
  border-radius: 2px;
  padding: 0.6rem 0.65rem;
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--cedar);
  outline-offset: 1px;
  border-color: var(--cedar);
}

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

/* ---------- Footer ------------------------------------------------------- */

.footer {
  background: var(--iron-deep);
  color: #e8e0d4;
  padding: 2.5rem 0 3rem;
  border-top: 4px solid var(--cedar);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  margin: 0;
}

.footer__lines {
  margin: 0;
  line-height: 1.9;
}

.footer a { color: #f0dccb; }
.footer a:hover { color: #fff; }

/* ---------- Fixed call button on a phone --------------------------------- */

.callbar { display: none; }

@media (max-width: 47.99em) {
  body { padding-bottom: 4.25rem; }

  .callbar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: var(--gate);
    border-top: 2px solid var(--gate-dark);
    box-shadow: 0 -6px 18px rgba(16, 31, 36, 0.28);
  }

  .callbar a {
    display: block;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
  }
}

@media (min-width: 48em) {
  body { font-size: 1.125rem; }
  .band { padding: 4.5rem 0; }
  .hero__inner { padding: 6rem 1.25rem 4.5rem; }
  .contact {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
  .enquiry { padding: 1.9rem 1.75rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
