/* ==========================================================================
   Lucania Contractors LLC — site styles
   Brand red: #B8393E (sampled from the company logo)
   Plain CSS, no frameworks. Kept small and fast on purpose.
   ========================================================================== */

:root {
  --red: #b8393e;
  --red-dark: #9c2f34;
  --ink: #1f2427;      /* body text */
  --muted: #5c666c;    /* secondary text */
  --line: #e4e7e9;     /* hairlines / borders */
  --bg: #ffffff;
  --bg-alt: #f5f6f7;   /* alternating section background */
  --max: 1120px;       /* content width */
  --radius: 6px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Red underline accent used under section headings */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: .4rem;
  margin-bottom: 1.2rem;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: .8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .15s ease;
}
.btn:hover { background: var(--red-dark); text-decoration: none; color: #fff; }
.btn--ghost {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn--ghost:hover { background: #fff; color: var(--red); }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.nav__logo img { height: 46px; width: auto; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  margin: 5px 0;
  transition: .2s;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu > li { position: relative; }
.nav__menu a {
  color: var(--ink);
  font-weight: 600;
  font-size: .98rem;
  padding: .5rem 0;
  display: inline-block;
}
.nav__menu a:hover,
.nav__menu a.is-active { color: var(--red); text-decoration: none; }

/* Dropdown (Services) */
.has-dropdown > a::after {
  content: "▾";
  font-size: .7em;
  margin-left: .35em;
  color: var(--muted);
}
.dropdown {
  list-style: none;
  margin: 0;
  padding: .4rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: .15s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a { display: block; padding: .55rem 1.1rem; font-weight: 500; }
.dropdown a:hover { background: var(--bg-alt); color: var(--red); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: clamp(4rem, 12vw, 8rem) 0;
  background-size: cover;
  background-position: center;
  background-color: var(--ink);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 27, .55), rgba(20, 24, 27, .72));
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: .5rem; }
.hero p {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  max-width: 720px;
  margin: 0 auto 1.6rem;
  color: rgba(255, 255, 255, .92);
}
.hero--sub { padding: clamp(3rem, 8vw, 5rem) 0; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section--alt { background: var(--bg-alt); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 760px; }

/* Card grid (services / positions) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, .1); }
.card h3 { color: var(--red); margin-bottom: .4rem; }
.card p { margin: 0; color: var(--muted); }
.card a.card__link { font-weight: 600; }

/* Bulleted service list */
.service-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .8rem 1.5rem;
}
.service-list li {
  position: relative;
  padding-left: 1.6rem;
  font-weight: 500;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* Photo gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Split content + image */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 780px) { .split { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 780px) { .contact-wrap { grid-template-columns: 1fr; } }

.info-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.info-list li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}
.info-list .label { font-weight: 700; min-width: 84px; color: var(--ink); }
.info-list a { color: var(--red); }

.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .35rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(184, 57, 62, .15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.req { color: var(--red); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--red);
  color: rgba(255, 255, 255, .92);
  padding: 3rem 0 1.5rem;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.site-footer img.footer-logo { height: 54px; width: auto; margin-bottom: 1rem; }
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 .8rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .25);
  margin-top: 2rem;
  padding-top: 1.2rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .8);
  text-align: center;
}

/* ==========================================================================
   Mobile navigation
   ========================================================================== */
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .5rem 0;
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu > li { border-bottom: 1px solid var(--line); }
  .nav__menu > li:last-child { border-bottom: 0; }
  .nav__menu a { padding: .9rem 20px; width: 100%; }
  .has-dropdown > a::after { float: right; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    background: var(--bg-alt);
  }
  .dropdown a { padding-left: 40px; }
}
