/*!
 * FordDun Contracting - theme styles
 * Enqueued by functions.php as 'forddun-theme'.
 *
 * PLACEHOLDERS to confirm against the live site before launch:
 *   --font-head, --font-body   (theme stylesheet was not publicly readable)
 *   --overlay                  (hero overlay opacity is estimated)
 */

/* ============================================================
   FordDun Contracting — static reference rebuild
   Colors and section metrics taken from the live site.
   Font stack is a PLACEHOLDER: the theme stylesheet was not
   publicly readable. Swap --font-* once you inspect the live site.
   ============================================================ */

:root{
  --brand:      #0a668a;
  --ink:        #000000;
  --ink-alt:    #222222;
  --white:      #ffffff;
  --grey:       #ececec;
  --overlay:    rgba(0,0,0,.35);   /* estimated, confirm on live site */
  --container:  1100px;
  --font-head:  "Helvetica Neue", Helvetica, Arial, sans-serif;  /* PLACEHOLDER */
  --font-body:  "Helvetica Neue", Helvetica, Arial, sans-serif;  /* PLACEHOLDER */
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}
/* height:auto is load-bearing. WordPress prints real width/height HTML
   attributes on the logo and on template images. Without this, any rule that
   sets only `width` leaves the attribute height in place and the image
   squashes. This is what deformed the logo and the hero icon. */
img{max-width:100%;display:block;height:auto;}

/* ---------- accessibility helpers ---------- */
/* header.php outputs a skip link and relies on these. Without them the words
   "Skip to content" sit visibly at the top of the page. */
.screen-reader-text{
  border:0;clip-path:inset(50%);height:1px;width:1px;
  margin:-1px;padding:0;overflow:hidden;position:absolute;
  white-space:nowrap;word-wrap:normal;
}
.screen-reader-text:focus{
  clip-path:none;height:auto;width:auto;
  background:var(--white);color:var(--ink);
  padding:14px 22px;z-index:100000;
  top:8px;left:8px;font-size:.9rem;text-decoration:none;
}

/* ---------- shared text classes (mirrors theme naming) ---------- */
.title{
  font-family:var(--font-head);
  font-size:clamp(2.5rem,6vw,4.75rem);
  font-weight:300;
  line-height:1.05;
  letter-spacing:.02em;
  margin:0;
}
.subtitle{
  font-family:var(--font-head);
  font-size:clamp(1.5rem,3.4vw,2.75rem);
  font-weight:700;
  line-height:1.15;
  letter-spacing:.06em;
  text-transform:uppercase;
  margin:0;
}
.subhead{
  font-family:var(--font-head);
  font-size:clamp(1.4rem,2.6vw,2.1rem);
  font-weight:400;
  line-height:1.3;
  margin:0;
}
.copy{
  font-size:1.0625rem;
  line-height:1.75;
  margin:0;
}
.eyebrow{
  font-family:var(--font-head);
  font-size:clamp(1.1rem,1.8vw,1.4rem);
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--brand);
  margin:0;
}

/* ---------- section scaffold ---------- */
.standard-block{position:relative;overflow:hidden;}
.standard-block .bg{
  position:absolute;inset:0;
  background-size:cover;
  background-position:center center;
}
.standard-block .overlay{position:absolute;inset:0;background:var(--overlay);}
.standard-block .inner{
  position:relative;z-index:2;
  max-width:var(--container);
  margin:0 auto;
  padding-left:25px;padding-right:25px;
}
.center-align{text-align:center;}
.left-align{text-align:left;}

/* keyline divider */
.keyline-holder{display:flex;}
.center-align .keyline-holder{justify-content:center;}
.keyline{width:20%;height:2px;background:var(--ink);}

/* ---------- header ---------- */
header.site{
  position:absolute;top:0;left:0;right:0;z-index:10;
  padding:30px 40px;
}
header.site a{display:inline-block;color:var(--white);text-decoration:none;}
header.site img{width:220px;}

/* Text fallback shown until a custom logo is set in Customize > Site Identity.
   The header sits over the dark hero, so it has to be white. */
header.site .site-title{
  font-family:var(--font-head);
  font-size:1.5rem;font-weight:700;letter-spacing:.04em;
  color:var(--white);
}

/* ---------- hero ---------- */
.hero{margin:25px;}
/* The background-image is set inline by template-parts/section-hero.php, from
   this site's own uploads directory. Do not hardcode a URL here. */
.hero .bg{background-attachment:fixed;}
.hero .inner{padding-top:300px;padding-bottom:100px;}
.hero .icon{width:150px;margin:0 auto 25px;}
.hero .title,.hero .subtitle{color:var(--white);}

/* ---------- slider ---------- */
.slider-block{position:relative;background:var(--white);overflow:hidden;}
.slider-track{
  display:flex;
  transition:transform .6s cubic-bezier(.4,0,.2,1);
  will-change:transform;
}
.slide{
  flex:0 0 33.3333%;
  height:500px;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-color:var(--white);
}
.slider-dots{
  display:flex;justify-content:center;gap:10px;
  padding:20px 0 26px;
}
.slider-dots button{
  width:10px;height:10px;padding:0;border:0;border-radius:50%;
  background:#c9c9c9;cursor:pointer;transition:background .25s,transform .25s;
}
.slider-dots button[aria-current="true"]{background:var(--brand);transform:scale(1.3);}

/* ---------- services list ---------- */
.services{
  list-style:none;margin:0 auto;padding:0;
  display:inline-block;text-align:left;
  columns:2;column-gap:60px;
}
.services li{
  position:relative;padding-left:18px;
  line-height:2;
  break-inside:avoid;
}
.services li::before{
  content:"•";position:absolute;left:0;color:var(--brand);
}

/* ---------- reasons ---------- */
.reason + .reason{margin-top:25px;}
.reason h3{
  font-size:1.0625rem;font-weight:700;color:var(--brand);
  margin:0 0 10px;letter-spacing:.03em;
}

/* ---------- footer ---------- */
footer.site{background:var(--ink);color:var(--white);padding:70px 25px;}
footer.site .inner{
  max-width:var(--container);margin:0 auto;
  display:grid;grid-template-columns:1fr 1fr;gap:60px;
}
footer.site img{width:260px;margin-bottom:28px;}
footer.site address{font-style:normal;line-height:1.9;font-size:1rem;}
footer.site a{color:var(--white);text-decoration:none;border-bottom:1px solid rgba(255,255,255,.35);}
footer.site a:hover{border-bottom-color:var(--white);}

/* ---------- form ---------- */
.form-card{background:rgba(255,255,255,.06);padding:32px;border-radius:2px;}
.form-card h2{font-family:var(--font-head);font-size:1.5rem;margin:0 0 22px;letter-spacing:.04em;}

/* footer.php labels this "Project Inquiry" with .fd-eyebrow, but the eyebrow
   rule above is unprefixed. Alias it, and recolor for the dark footer. */
.fd-eyebrow{
  font-family:var(--font-head);
  font-size:.8125rem;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;
  color:#7fc4dd;
  margin:0 0 10px;
}

.field{margin-bottom:18px;}
.field label{display:block;font-size:.8125rem;letter-spacing:.08em;text-transform:uppercase;margin-bottom:7px;opacity:.85;}
.field input,.field select,.field textarea{
  width:100%;padding:11px 13px;font:inherit;font-size:.9375rem;
  border:1px solid rgba(255,255,255,.3);background:rgba(0,0,0,.25);color:var(--white);border-radius:2px;
}
.field textarea{min-height:120px;resize:vertical;}
.field .hint{font-size:.8125rem;opacity:.6;margin-top:6px;}
.honeypot{position:absolute;left:-9999px;}
button.submit{
  background:var(--brand);color:var(--white);border:0;
  padding:14px 42px;font:inherit;font-weight:700;letter-spacing:.12em;
  cursor:pointer;border-radius:2px;transition:opacity .2s;
}
button.submit:hover{opacity:.85;}

/* ---------- form plugin output ---------- */
/* Form plugins render their own markup, not .field / button.submit. These rules
   make Fluent Forms, WPForms, Contact Form 7, and Gravity Forms inherit the
   dark card styling instead of arriving with white-on-white inputs. */
.form-card input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.form-card select,
.form-card textarea{
  width:100%;padding:11px 13px;font:inherit;font-size:.9375rem;
  border:1px solid rgba(255,255,255,.3);
  background:rgba(0,0,0,.25);
  color:var(--white);
  border-radius:2px;
  box-shadow:none;
}
.form-card input::placeholder,
.form-card textarea::placeholder{color:rgba(255,255,255,.45);}
.form-card select option{background:#1a1a1a;color:var(--white);}
.form-card label,
.form-card legend{
  color:var(--white);
  font-size:.8125rem;letter-spacing:.08em;text-transform:uppercase;
  margin-bottom:7px;opacity:.85;
}
.form-card textarea{min-height:120px;resize:vertical;}
.form-card input[type="submit"],
.form-card button[type="submit"]{
  background:var(--brand);color:var(--white);border:0;
  padding:14px 42px;font:inherit;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;
  cursor:pointer;border-radius:2px;width:auto;
  transition:opacity .2s;
}
.form-card input[type="submit"]:hover,
.form-card button[type="submit"]:hover{opacity:.85;}
/* plugin field wrappers */
.form-card .frm_forms,.form-card .wpforms-container,
.form-card .gform_wrapper,.form-card .wpcf7{margin:0;}
.form-card .wpforms-field,.form-card .ff-el-group,
.form-card .gfield,.form-card .wpcf7 p{margin-bottom:18px;}

/* admin-only reminder shown while no form shortcode is configured */
.fd-form-notice{
  border:1px dashed rgba(255,255,255,.35);
  padding:16px;font-size:.875rem;line-height:1.6;
  color:rgba(255,255,255,.75);margin:0;
}

/* ---------- scroll-in animation ---------- */
.fade-left{opacity:0;transform:translateX(-40px);transition:opacity .7s ease,transform .7s ease;}
.fade-left.is-visible{opacity:1;transform:none;}
@media (prefers-reduced-motion:reduce){
  .fade-left{opacity:1;transform:none;transition:none;}
  html{scroll-behavior:auto;}
}


/* ---------- responsive ---------- */
@media (max-width:1199px){
  .slide{flex-basis:100%;height:420px;}
}
@media (max-width:800px){
  .hero{margin:0;}
  .hero .bg{background-attachment:scroll;}
  .hero .inner{padding-top:180px;padding-bottom:70px;}
  header.site{padding:20px;}
  header.site img{width:160px;}
  .services{columns:1;}
  footer.site .inner{grid-template-columns:1fr;gap:40px;}
}
