/* =========================================================
   YuCast LTD — Website Stylesheet
   Vanilla CSS, mobile-first, no build step required.
   Brand palette matches company letterhead / capability deck.
   ========================================================= */

:root {
  --charcoal: #1a1a1a;
  --charcoal-2: #262626;
  --charcoal-3: #333333;
  --white: #ffffff;
  --offwhite: #f2f2f2;
  --lightgray: #d9d9d9;
  --gray: #5c5c5c;
  --rust: #b8551f;
  --rust-light: #d97a3f;

  --font-head: Cambria, Georgia, "Times New Roman", serif;
  --font-body: Calibri, "Segoe UI", Arial, Helvetica, sans-serif;

  --container: 1240px;
  --radius: 4px;
  --gap: 1.5rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0 0 0.5em; line-height: 1.15; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

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

.section { padding: 5rem 0; }
.section--tight { padding: 3.5rem 0; }
.section--dark { background: var(--charcoal); color: var(--white); }
.section--offwhite { background: var(--offwhite); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--rust);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6rem;
}

.section-head { max-width: 720px; margin-bottom: 2.75rem; }
.section-head p { color: var(--gray); font-size: 1.05rem; }
.section--dark .section-head p { color: var(--lightgray); }

h2.section-title { font-size: clamp(1.8rem, 4vw, 2.4rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}
.btn--primary { background: var(--rust); color: var(--white); }
.btn--primary:hover { background: var(--rust-light); }
.btn--outline { border-color: var(--white); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--charcoal); }
.btn--outline-dark { border-color: var(--charcoal); color: var(--charcoal); }
.btn--outline-dark:hover { background: var(--charcoal); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.0);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(26, 26, 26, 0.96);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--white); letter-spacing: 0.03em; }
.brand-text .tagline { font-size: 0.55rem; letter-spacing: 0.15em; color: var(--lightgray); margin-top: 3px; }

.main-nav ul { display: flex; gap: 2rem; }
.main-nav a {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
  padding: 0.4rem 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--rust);
  transition: width 0.2s ease;
}
.main-nav a:hover::after,
.main-nav a.is-active::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background-color: var(--charcoal);
  background-image: linear-gradient(rgba(15,15,15,0.8), rgba(15,15,15,0.68)), url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center 30%;
  padding-top: 76px;
}
.hero-inner { max-width: 760px; padding: 4rem 0; }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin-bottom: 0.6em;
}
.hero h1 span { color: var(--rust-light); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--lightgray);
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.75rem; }
.hero-locations {
  display: flex; flex-wrap: wrap; gap: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 1.5rem;
}
.hero-locations span {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--lightgray);
}
.hero-locations span.is-hq { color: var(--rust-light); }

/* ---------- Stats ---------- */
.stats { background: var(--charcoal-2); color: var(--white); padding: 3rem 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--rust-light);
  line-height: 1;
}
.stat-label { margin-top: 0.5rem; font-size: 0.85rem; color: var(--lightgray); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { color: var(--gray); }
.about-points { margin-top: 1.5rem; display: grid; gap: 0.9rem; }
.about-point { display: flex; gap: 0.75rem; align-items: flex-start; }
.about-point .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--rust); margin-top: 0.5em; }
.about-point strong { display: block; }

/* ---------- Services ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.service-card {
  background: var(--white);
  border: 1px solid var(--lightgray);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.08); }
.service-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--rust-light); }
.service-card h3 { font-size: 1.1rem; }
.service-card p { color: var(--gray); font-size: 0.92rem; margin: 0; }

/* ---------- Precast expertise ---------- */
.expertise-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
.expertise-list { display: grid; gap: 1.6rem; }
.expertise-item { display: flex; gap: 1.1rem; }
.expertise-num {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--rust); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-head);
}
.expertise-item h4 { margin: 0 0 0.2rem; font-size: 1.02rem; }
.expertise-item p { margin: 0; color: var(--gray); font-size: 0.9rem; }
.expertise-img { border-radius: var(--radius); overflow: hidden; }
.expertise-img img { width: 100%; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.team-card { background: var(--offwhite); padding: 2.5rem 1.5rem; text-align: center; border-radius: var(--radius); }
.team-num { font-family: var(--font-head); font-size: 3.2rem; font-weight: 700; color: var(--rust); line-height: 1; }
.team-sub { font-size: 0.85rem; color: var(--gray); margin-top: 0.4rem; }
.team-role { font-weight: 700; margin-top: 1.2rem; font-size: 0.98rem; }

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
.project-card { border: 1px solid var(--lightgray); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.project-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-card:hover .project-media img { transform: scale(1.05); }
.project-tag {
  position: absolute; top: 0.9rem; left: 0.9rem;
  background: var(--rust); color: var(--white);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem; border-radius: 3px;
  text-transform: uppercase;
}
.project-body { padding: 1.4rem 1.5rem 1.6rem; }
.project-body h3 { font-size: 1.15rem; margin-bottom: 0.15rem; }
.project-loc { font-size: 0.78rem; font-weight: 700; color: var(--rust); letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.project-body p.desc { color: var(--gray); font-size: 0.92rem; margin-bottom: 1rem; }
.project-toggle {
  background: none; border: none; color: var(--charcoal);
  font-weight: 700; font-size: 0.88rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0;
}
.project-toggle svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.project-toggle.is-open svg { transform: rotate(180deg); }
.project-details {
  display: none;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--lightgray);
  font-size: 0.88rem;
}
.project-details.is-open { display: block; }
.project-details h5 {
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray); margin: 0.9rem 0 0.4rem;
}
.project-details h5:first-child { margin-top: 0; }
.project-details ul li { position: relative; padding-left: 1rem; margin-bottom: 0.3rem; color: var(--charcoal-3); }
.project-details ul li::before { content: "\2013"; position: absolute; left: 0; color: var(--rust); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--white); font-size: 0.85rem; font-weight: 700;
  padding: 2rem 0.8rem 0.7rem;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--lightgray); }
.faq-q {
  width: 100%; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem 0;
  font-family: var(--font-head);
  font-size: 1.05rem; font-weight: 700; color: var(--charcoal);
  text-align: left;
}
.faq-q svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s ease; stroke: var(--rust); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--gray); font-size: 0.95rem; }
.faq-a-inner { padding-bottom: 1.3rem; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  background-color: var(--charcoal);
  background-image: linear-gradient(rgba(15,15,15,0.82), rgba(15,15,15,0.82)), url("../images/cta-bg.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
}
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.cta p { color: var(--lightgray); max-width: 560px; margin: 0 auto 2rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.contact-info { display: grid; gap: 1.6rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .ic {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--offwhite);
  display: flex; align-items: center; justify-content: center;
}
.contact-item .ic svg { width: 20px; height: 20px; stroke: var(--rust); }
.contact-item h4 { margin: 0 0 0.2rem; font-size: 0.95rem; }
.contact-item p { margin: 0; color: var(--gray); font-size: 0.92rem; }

.contact-form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--lightgray);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--rust); }
.form-note { font-size: 0.78rem; color: var(--gray); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--lightgray); padding: 3.5rem 0 1.5rem; }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-brand p { color: var(--lightgray); font-size: 0.88rem; max-width: 320px; }
.footer-col h5 {
  color: var(--white); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col a { color: var(--lightgray); font-size: 0.9rem; }
.footer-col a:hover { color: var(--rust-light); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding-top: 1.5rem; font-size: 0.8rem; color: var(--gray);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--rust); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  border: none; box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.2s ease;
  z-index: 900;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Tablet (>= 640px)
   ========================================================= */
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   Desktop (>= 900px)
   ========================================================= */
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
}

/* =========================================================
   Large desktop (>= 1200px)
   ========================================================= */
@media (min-width: 1200px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   Mobile nav (< 900px)
   ========================================================= */
@media (max-width: 899.98px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: rgba(20,20,20,0.98);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.is-open { max-height: 500px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 1.25rem 1.5rem; }
  .main-nav a { display: block; padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

.header-cta .btn span.btn-text-long { display: none; }
.header-cta .btn span.btn-text-short { display: inline; }
@media (min-width: 900px) {
  .header-cta .btn span.btn-text-long { display: inline; }
  .header-cta .btn span.btn-text-short { display: none; }
}

/* Small phones */
@media (max-width: 420px) {
  