/* ==========================================================================
   J Andrade Concrete Finishing Ltd.
   Palette and typography mirrored from the live Wix site so the rebuild
   reads as the same brand. Colour values are the site's own theme values.
   ========================================================================== */

:root {
  --ink:      #3b3a3a;   /* body text, titles, buttons  (Wix color_15) */
  --ink-soft: #6c6b6b;   /* secondary text              (color_14)     */
  --line:     #cecece;   /* hairlines                   (color_12)     */
  --wash:     #ececec;   /* alternating section fill    (color_44)     */
  --navy:     #1e2d3b;   /* dark sections and footer    (color_42)     */
  --yellow:   #fec11d;   /* accent                      (color_17)     */
  --white:    #ffffff;

  --wrap: 1160px;
  --gut: clamp(1.25rem, 4vw, 3rem);

  --display: "Wix Madefor Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Wix Madefor Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --util: "Barlow", "DIN Next", "Helvetica Neue", Arial, sans-serif;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--white);
  padding: .75rem 1.25rem; font-family: var(--util);
}
.skip:focus { left: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

/* --------------------------------------------------------------- header */

.masthead {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 84px; position: relative;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }

.nav a {
  font-family: var(--util);
  font-weight: 300;
  font-size: .9rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover { border-bottom-color: var(--yellow); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.nav__group { position: relative; }
.nav__panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--yellow);
  padding: .5rem 0;
  min-width: 236px;
  display: none;
}
.nav__group:hover .nav__panel,
.nav__group:focus-within .nav__panel { display: block; }
.nav__panel a {
  display: block; padding: .6rem 1.25rem;
  letter-spacing: .09em; border-bottom: none;
}
.nav__panel a:hover { background: var(--wash); border-bottom: none; }

.masthead__tel {
  font-family: var(--util); font-weight: 400; font-size: .95rem;
  letter-spacing: .05em; text-decoration: none; white-space: nowrap;
}
.masthead__tel:hover { text-decoration: underline; }

.navtoggle {
  display: none; background: none; border: 1px solid var(--line);
  padding: .55rem .8rem; font-family: var(--util); letter-spacing: .12em;
  text-transform: uppercase; font-size: .8rem; cursor: pointer; color: var(--ink);
}

@media (max-width: 960px) {
  .navtoggle { display: block; }
  /* Tap-to-call stays in the header on mobile. This is a trade business and
     the phone is the conversion; it must not be behind the menu toggle.
     The masthead reflows so the number sits between the logo and Menu. */
  .masthead__inner { gap: .75rem; }
  .masthead__tel {
    order: 2; margin-left: auto;
    font-size: .88rem; letter-spacing: .02em; white-space: nowrap;
  }
  .navtoggle { order: 3; }
  .nav {
    /* Full-bleed panel. The offsets are 0, not -(--gut): this rule only
       applies below 960px, where .wrap is narrower than --wrap and its
       padding box already spans the viewport. Negative offsets pushed the
       panel --gut past each edge and gave the page a horizontal scrollbar
       whenever the menu was open. */
    display: none; position: absolute; left: 0; right: 0;
    top: 100%; background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem var(--gut); border-bottom: 1px solid var(--wash); }
  .nav a:hover { border-bottom-color: var(--wash); background: var(--wash); }
  .nav__panel {
    position: static; transform: none; display: block; border: none;
    padding: 0; min-width: 0; background: var(--wash);
  }
  .nav__panel a { padding-left: calc(var(--gut) + 1.25rem); }
}

@media (max-width: 420px) {
  .brand img { height: 38px; }
  .masthead__inner { min-height: 68px; gap: .5rem; }
  .masthead__tel { font-size: .82rem; }
  .navtoggle { padding: .5rem .6rem; font-size: .72rem; }
}

/* ----------------------------------------------------------------- hero */

.hero { position: relative; background: var(--ink); overflow: hidden; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .42;
}
.hero__body {
  position: relative;
  padding-block: clamp(5rem, 13vw, 9.5rem);
  text-align: center; color: var(--white);
  max-width: 62ch; margin-inline: auto;
}
.hero--short .hero__body { padding-block: clamp(3.5rem, 8vw, 6rem); }

.hero__eyebrow {
  font-family: var(--util); font-weight: 400;
  letter-spacing: .28em; text-transform: uppercase;
  font-size: .82rem; color: var(--yellow); margin: 0 0 1.1rem;
}
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.05rem, 5.2vw, 3.5rem);
  line-height: 1.16; letter-spacing: -.005em; margin: 0;
  text-transform: uppercase;
}
.hero p {
  margin: 1.35rem auto 0; max-width: 54ch;
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  color: rgba(255,255,255,.9);
}
.hero__actions { margin-top: 2.2rem; display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------- button */

.btn {
  display: inline-block;
  font-family: var(--util); font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; font-size: .84rem;
  padding: .95rem 1.85rem; text-decoration: none;
  background: var(--ink); color: var(--white);
  border: 2px solid var(--ink); cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* -------------------------------------------------------------- section */

.band { padding-block: clamp(3.5rem, 8vw, 6rem); }
.band--wash { background: var(--wash); }
.band--dark { background: var(--navy); color: var(--white); }

.band__head { text-align: center; max-width: 62ch; margin: 0 auto clamp(2.25rem, 4vw, 3.25rem); }

.band__head h2, .band__title {
  font-family: var(--display); font-weight: 800;
  text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(1.6rem, 3.3vw, 2.4rem);
  line-height: 1.2; margin: 0;
}
.band__head h2::after, .band__title::after {
  content: ""; display: block; width: 58px; height: 4px;
  background: var(--yellow); margin: 1.1rem auto 0;
}
.band__title--left { text-align: left; }
.band__title--left::after { margin-inline: 0; }

.band__head p { margin: 1.1rem 0 0; color: var(--ink-soft); }
.band--dark .band__head p { color: rgba(255,255,255,.82); }

/* ---------------------------------------------------------------- grids */

.grid { display: grid; gap: 1.75rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); }

.tile { background: var(--white); text-decoration: none; color: inherit; display: block; border: 1px solid var(--line); }
.band--wash .tile { border-color: transparent; }
.tile__media { aspect-ratio: 4 / 3; overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover .tile__media img { transform: scale(1.045); }
.tile__body { padding: 1.4rem 1.5rem 1.6rem; border-top: 3px solid var(--yellow); }
.tile h3 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: 1.06rem; letter-spacing: .05em; margin: 0 0 .55rem;
}
.tile p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.tile__more {
  display: inline-block; margin-top: .95rem;
  font-family: var(--util); font-size: .8rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink);
  border-bottom: 2px solid var(--yellow); padding-bottom: 2px;
}

.value h3 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: 1rem; letter-spacing: .07em; margin: 0 0 .5rem;
}
.value p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.band--dark .value p { color: rgba(255,255,255,.8); }
.value::before {
  content: ""; display: block; width: 34px; height: 3px;
  background: var(--yellow); margin-bottom: 1rem;
}

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.gallery figcaption {
  font-family: var(--util); font-size: .82rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-soft); padding: .8rem .2rem 0;
}

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.prose p { margin: 0 0 1.05rem; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 1.05rem; padding-left: 1.15rem; }
.prose li { margin-bottom: .5rem; }

.spec { width: 100%; border-collapse: collapse; font-size: .97rem; }
.spec th, .spec td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th {
  font-family: var(--util); font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; font-size: .78rem; color: var(--ink-soft); width: 42%;
}
.band--dark .spec th, .band--dark .spec td { border-bottom-color: rgba(255,255,255,.18); }
.band--dark .spec th { color: rgba(255,255,255,.65); }

.todo {
  font-family: var(--util); font-size: .82rem; letter-spacing: .06em;
  background: var(--yellow); color: var(--ink);
  padding: .1rem .5rem; white-space: nowrap;
}

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label {
  font-family: var(--util); font-size: .8rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-soft);
}
.field input, .field textarea, .field select {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line);
  padding: .8rem .9rem; width: 100%;
}
.field textarea { min-height: 148px; resize: vertical; }

.contactcard { display: grid; gap: 1.5rem; margin: 0; }
.contactcard dt {
  font-family: var(--util); font-size: .79rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: .3rem;
}
.contactcard dd { margin: 0; font-size: 1.05rem; }
.contactcard a { text-decoration: none; border-bottom: 1px solid var(--yellow); }

/* --------------------------------------------------------------- footer */

.foot { background: var(--navy); color: var(--white); padding: clamp(3rem, 6vw, 4.25rem) 0 2rem; }
.foot__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2.25rem; }
.foot h2 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: .95rem; letter-spacing: .08em; margin: 0 0 1rem;
}
.foot h2::after { content: ""; display: block; width: 30px; height: 3px; background: var(--yellow); margin-top: .7rem; }
.foot p, .foot li { color: rgba(255,255,255,.8); font-size: .95rem; margin: 0 0 .5rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot a { color: rgba(255,255,255,.88); text-decoration: none; }
.foot a:hover { color: var(--yellow); }
.foot__base {
  margin-top: 2.75rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.18);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--util); font-size: .82rem; letter-spacing: .06em;
  color: rgba(255,255,255,.62);
}

/* ------------------------------------------------------------ utilities */

.crumbs {
  font-family: var(--util); font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft);
  padding-block: 1.1rem; border-bottom: 1px solid var(--wash);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.lede { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--ink-soft); }
.center { text-align: center; }
.stack > * + * { margin-top: 1.6rem; }

/* Honeypot. Off-screen rather than display:none — some bots skip hidden
   inputs, and screen readers skip it via aria-hidden + tabindex="-1". */
.hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden;
}
