/* ==========================================================================
   Ironstone Construction & Installation — site styles
   ========================================================================== */

:root {
  --charcoal: #23262b;
  --charcoal-soft: #33383f;
  --slate: #5b6670;
  --lightgrey: #9aa0a6;
  --orange: #d9611b;
  --orange-dark: #b34f16;
  --offwhite: #f7f7f8;
  --border: #e4e4e6;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(35, 38, 43, 0.08);
  --radius: 6px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--charcoal-soft);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--charcoal);
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.2;
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--slate); font-size: 16.5px; margin: 0; }
p { margin: 0 0 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: #14161a; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(6px);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--charcoal-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--orange); border-color: var(--orange); }
.nav-cta {
  background: var(--charcoal);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 3px;
  border-bottom: none !important;
  font-weight: 700;
}
.nav-cta:hover { background: var(--orange) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--charcoal); display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(20,22,25,0.86) 15%, rgba(20,22,25,0.55) 55%, rgba(217,97,27,0.35) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; padding: 40px 28px; margin: 0 auto; width: 100%; }
.hero .eyebrow { color: #f0a97a; }
.hero h1 { color: #fff; font-size: 46px; margin-bottom: 18px; }
.hero p.lead { color: #e7e8ea; font-size: 18px; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  position: relative; z-index: 2;
  display: flex; gap: 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 56px;
}
.hero-stats .stat { padding: 20px 34px 0 0; margin-right: 34px; }
.hero-stats .stat b { display: block; font-size: 26px; color: #fff; }
.hero-stats .stat span { font-size: 12.5px; color: #cfd2d5; letter-spacing: 0.5px; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  position: relative;
  color: #fff;
  padding: 150px 0 70px;
  background-size: cover;
  background-position: center;
}
.page-header .overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20,22,25,0.90), rgba(35,38,43,0.72)); }
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: #fff; font-size: 38px; margin-bottom: 10px; }
.page-header p { color: #dfe1e3; font-size: 16.5px; max-width: 620px; margin: 0; }
.breadcrumb { font-size: 12.5px; letter-spacing: 1.5px; color: #f0a97a; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }

/* ---------- Sections ---------- */
section { padding: 86px 0; }
.section-alt { background: var(--offwhite); }
.section-tight { padding: 60px 0; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split .caption { font-size: 12.5px; color: var(--slate); font-style: italic; margin-top: 10px; }
.checklist { margin: 22px 0 0; }
.checklist li { display: flex; gap: 12px; margin-bottom: 12px; font-size: 15px; color: var(--charcoal-soft); }
.checklist li .dot {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}

/* ---------- Services grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  border-top: 4px solid var(--orange);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .num { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--lightgrey); margin-bottom: 12px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--slate); margin: 0; }

/* ---------- Why grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.why-item { display: flex; gap: 18px; padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.why-item .icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(217,97,27,0.1); color: var(--orange);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px;
}
.why-item h3 { font-size: 16.5px; margin-bottom: 6px; }
.why-item p { font-size: 14px; color: var(--slate); margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  background: var(--charcoal);
  color: #fff;
  text-align: center;
  padding: 70px 0;
  background-size: cover;
  background-position: center;
}
.cta-banner .overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20,22,25,0.92), rgba(217,97,27,0.55)); }
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 { color: #fff; font-size: 30px; }
.cta-banner p { color: #dcdee0; max-width: 520px; margin: 0 auto 26px; }

/* ---------- Gallery (Projects page) ---------- */
.filter-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.filter-btn.active { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 5;
  background: var(--offwhite);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(35,38,43,0.75);
  color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px;
  padding: 5px 10px; border-radius: 20px; text-transform: uppercase;
}
.gallery-item .caption-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(to top, rgba(15,16,18,0.82), rgba(15,16,18,0));
  color: #fff; font-size: 12.5px; font-style: italic;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.gallery-item:hover .caption-bar { opacity: 1; transform: translateY(0); }
.gallery-item.hidden { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,16,18,0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 940px; max-height: 88vh; text-align: center; }
.lightbox img { max-height: 78vh; margin: 0 auto; border-radius: 4px; }
.lightbox figcaption { color: #dcdee0; font-size: 13.5px; font-style: italic; margin-top: 14px; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px;
}
.lightbox-close { top: 26px; right: 26px; }
.lightbox-nav.prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 26px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--orange); border-color: var(--orange); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; }
.contact-info-card {
  background: var(--charcoal); color: #fff;
  border-radius: var(--radius);
  padding: 40px 34px;
}
.contact-info-card h3 { color: #fff; font-size: 20px; }
.contact-info-card p { color: #c7cacd; font-size: 14.5px; }
.info-row { display: flex; gap: 14px; margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); }
.info-row .ic {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(217,97,27,0.18); color: var(--orange);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.info-row .label { font-size: 11.5px; letter-spacing: 1px; color: #9aa0a6; text-transform: uppercase; margin-bottom: 3px; }
.info-row .value { font-size: 14.5px; font-weight: 600; color: #fff; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.4px; color: var(--charcoal); margin-bottom: 7px; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--charcoal-soft);
  background: #fdfdfd;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.field .error-msg { display: none; color: #c0392b; font-size: 12px; margin-top: 5px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.field.invalid .error-msg { display: block; }
.form-note { font-size: 12.5px; color: var(--lightgrey); margin-top: 4px; }
.form-success {
  display: none;
  background: #eef7ef; border: 1px solid #bfe3c4; color: #276b33;
  padding: 16px 18px; border-radius: 4px; font-size: 14px; margin-bottom: 22px;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #c7cacd; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid img { height: 40px; margin-bottom: 14px; }
.footer-grid p { font-size: 13.5px; color: #9aa0a6; }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a { color: #c7cacd; transition: color 0.15s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: #7d8288;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 20px 28px; gap: 18px; border-bottom: 1px solid var(--border); transform: translateY(-130%); transition: transform 0.25s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 32px; }
  .hero-stats { flex-wrap: wrap; }
  .cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .page-header { padding: 120px 0 50px; }
}
