/* =========================================================
   Mayco Commercial Construction — site styles
   ========================================================= */

:root {
  --green: #1d6e4b;
  --green-dark: #135237;
  --green-darker: #0d3a26;
  --green-light: #2a8d62;
  --ink: #14201b;
  --ink-2: #2c3a34;
  --muted: #5b6b65;
  --line: #e3e7e5;
  --bg: #ffffff;
  --bg-soft: #f5f6f3;
  --bg-dark: #0e2a1e;
  --gold: #c6a052;

  --radius: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(20,32,27,.06), 0 2px 8px rgba(20,32,27,.04);
  --shadow-md: 0 4px 12px rgba(20,32,27,.08), 0 12px 32px rgba(20,32,27,.06);

  --container: 1200px;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* -------- base -------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* -------- header / nav -------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 24px;
}

.logo { display: inline-flex; align-items: center; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo img { height: 52px; width: auto; display: block; }
@media (max-width: 520px) { .logo img { height: 42px; } }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center; }
.primary-nav a {
  color: var(--ink); font-weight: 500; font-size: .95rem;
  padding: 8px 0; position: relative;
}
.primary-nav a:hover { color: var(--green-dark); }
.primary-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.primary-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--green); color: #fff !important;
  padding: 10px 18px !important; border-radius: var(--radius);
  font-weight: 600; transition: background .15s ease;
}
.nav-cta:hover { background: var(--green-dark); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 8px; position: relative;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------- hero -------- */
.hero {
  position: relative; isolation: isolate;
  padding: clamp(120px, 16vw, 200px) 0 clamp(120px, 16vw, 200px);
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("images/hero.jpg") center / cover no-repeat;
  background-color: #0e2a1e;
}
.hero-inner {
  position: relative; max-width: 760px;
  background: rgba(14, 42, 30, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 56px);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,.85); max-width: 720px; line-height: 1.6;
}
.hero-mission {
  max-width: 720px; margin-top: 1.5rem;
}
.hero-mission p {
  color: rgba(255,255,255,.88);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  margin-bottom: 1em;
}
.hero-mission p:last-child { margin-bottom: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero-strip {
  list-style: none; margin: 3rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 28px 36px;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 1.5rem;
}
.hero-strip li {
  position: relative; padding-left: 22px;
  font-weight: 500; font-size: .95rem; color: rgba(255,255,255,.92);
}
.hero-strip li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px; background: var(--gold); border-radius: 2px;
}

/* eyebrow */
.eyebrow {
  text-transform: uppercase; letter-spacing: .22em;
  font-size: .8rem; font-weight: 600; color: var(--green);
  margin: 0 0 1rem;
}
.eyebrow-light { color: var(--gold); }

/* -------- band layout -------- */
.band { padding: clamp(72px, 10vw, 120px) 0; }
.band-light { background: var(--bg-soft); }
.band-dark { background: var(--bg-dark); color: rgba(255,255,255,.86); }
.band-dark p { color: rgba(255,255,255,.78); }
.band-clients { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 64px; padding-bottom: 64px; }

.section-title { margin-bottom: .6em; }
.section-title-light { color: #fff; }
.section-title-center { text-align: center; }
.section-lede { max-width: 720px; font-size: 1.1rem; color: var(--muted); margin-bottom: 3rem; }
.section-lede-light { color: rgba(255,255,255,.82); }

/* -------- buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #d4b066; color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-block { width: 100%; padding: 16px 26px; font-size: 1.02rem; }

/* -------- why choose us -------- */
.why-list {
  list-style: none; margin: 1.5rem auto 2.5rem; padding: 0;
  max-width: 680px;
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.why-list li {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green);
  padding: 18px 22px; font-weight: 500; color: var(--ink);
  border-radius: var(--radius);
  font-size: 1rem;
}
.why-list-light li {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-left: 4px solid var(--gold);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Extends the hero photo backdrop into the next section */
.band-hero-extend {
  position: relative; isolation: isolate;
  color: rgba(255,255,255,.92);
  background:
    linear-gradient(115deg, rgba(13,58,38,.92) 0%, rgba(20,32,27,.78) 50%, rgba(20,32,27,.6) 100%),
    url("images/hero.jpg") center / cover no-repeat;
}
/* Soft seam: subtle fade at the top so it visually connects to the hero above */
.band-hero-extend::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to bottom, rgba(13,58,38,.4), transparent);
  pointer-events: none; z-index: 0;
}
.band-hero-extend .container { position: relative; z-index: 1; }
.section-cta-row { text-align: center; margin: 1rem 0 0; }
.services-strip {
  text-align: center; font-weight: 500; color: var(--green-darker);
  margin: 2rem 0 0; font-size: 1.05rem; letter-spacing: .01em;
}
.services-strip-light { color: var(--gold); font-weight: 600; }

.about-container { max-width: 820px; margin: 0 auto; }
.about-lede { font-size: 1.15rem; color: var(--ink-2); line-height: 1.7; }
.about-container p { font-size: 1.02rem; color: var(--ink-2); }

/* -------- services -------- */
.services-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.service-card {
  background: #fff; padding: 36px 32px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--green);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card h3 { color: var(--green-darker); }
.service-card p { color: var(--muted); margin: 0; }

/* -------- process -------- */
.process-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.phase {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.phase-num {
  font-family: var(--serif); font-size: 2.2rem; font-weight: 700;
  color: var(--gold); margin-bottom: 12px; line-height: 1;
}
.phase h3 { color: #fff; margin-bottom: 1em; font-size: 1.35rem; }
.phase ul { margin: 0; padding: 0; list-style: none; }
.phase li {
  position: relative; padding: 8px 0 8px 22px;
  font-size: .95rem; color: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.phase li:last-child { border-bottom: 0; }
.phase li::before {
  content: ""; position: absolute; left: 0; top: 17px;
  width: 8px; height: 2px; background: var(--gold);
}

/* -------- clients (who we serve) -------- */
.clients-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.client-card {
  background: #fff; padding: 32px 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); border-left: 4px solid var(--green);
}
.client-card h3 { color: var(--green-darker); margin-bottom: .5em; }
.client-card p  { color: var(--muted); margin: 0; }

/* -------- recent projects gallery -------- */
.gallery {
  margin-top: 2.5rem;
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}
.gallery-item {
  /* button reset */
  margin: 0; padding: 0; border: 0; background: var(--bg-soft);
  cursor: pointer; font: inherit; color: inherit;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.gallery-item:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.gallery-item img {
  width: 100%; height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .5s ease, filter .3s ease;
}
.gallery-item:hover img { transform: scale(1.05); filter: brightness(1.05); }
.gallery-item::after {
  /* subtle "click to expand" indicator on hover */
  content: ""; position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  background: rgba(14,42,30,.75) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'><path d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/></svg>") center/16px no-repeat;
  border-radius: 4px; opacity: 0;
  transition: opacity .2s ease;
}
.gallery-item:hover::after { opacity: 1; }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* -------- lightbox (full-screen photo viewer) -------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.94);
  display: grid; place-items: center;
  padding: 4vh 6vw;
  animation: lb-fade .2s ease-out;
}
.lightbox[hidden] { display: none !important; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox-stage {
  position: relative; max-width: 100%; max-height: 100%;
  display: grid; place-items: center;
}
.lightbox-img {
  max-width: 100%; max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  user-select: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s ease, transform .15s ease;
  font-family: var(--sans);
  -webkit-tap-highlight-color: transparent;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.25); }
.lightbox-close:active,
.lightbox-prev:active,
.lightbox-next:active { transform: scale(.95); }

.lightbox-close {
  top: 18px; right: 18px;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.8rem; line-height: 1;
}
.lightbox-prev,
.lightbox-next {
  top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  font-size: 1.4rem;
}
.lightbox-prev:hover,
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.lightbox-counter {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: .9rem;
  letter-spacing: .12em; font-weight: 500;
  padding: 8px 16px; background: rgba(0,0,0,.4);
  border-radius: 100px;
}

@media (max-width: 680px) {
  .lightbox { padding: 60px 8px 60px; }
  .lightbox-close { top: 10px; right: 10px; width: 40px; height: 40px; }
  .lightbox-prev, .lightbox-next { width: 44px; height: 44px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

body.lb-open { overflow: hidden; }

/* -------- about -------- */
.about-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1.5fr 1fr;
  align-items: start;
}
.about-copy p { color: var(--ink-2); font-size: 1.02rem; }
.about-stats { display: flex; flex-direction: column; gap: 20px; }
.stat {
  background: #fff; padding: 28px 26px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.stat-num {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 700;
  color: var(--green); line-height: 1; margin-bottom: 10px;
}
.stat-num span { font-size: 1.1rem; color: var(--muted); margin-left: 2px; }
.stat-label { color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* -------- past clients logos -------- */
.logos {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.logos li {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 16px;
  text-align: center; font-weight: 600; color: var(--ink-2);
  font-size: .95rem; letter-spacing: .03em;
  transition: background .15s ease, color .15s ease;
}
.logos li:hover { background: #fff; color: var(--green-darker); }
.logos-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 1.5rem; }

/* -------- contact -------- */
.contact-grid {
  display: grid; gap: 56px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-list li:last-child { border-bottom: 0; }
.contact-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); padding-top: 3px; }
.contact-val   { color: rgba(255,255,255,.92); }
.contact-val a { color: rgba(255,255,255,.92); border-bottom: 1px solid rgba(255,255,255,.3); }
.contact-val a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.contact-val em { color: rgba(255,255,255,.4); font-size: .8rem; font-style: italic; }

.contact-form {
  background: #fff; color: var(--ink);
  padding: 40px 36px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.contact-form h3 {
  font-family: var(--sans); font-weight: 600; font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
.contact-form label {
  display: block; margin-bottom: 16px; font-size: .9rem; font-weight: 500; color: var(--ink-2);
}
.contact-form label > span { display: block; margin-bottom: 6px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29,110,75,.15);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-foot { text-align: center; font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

/* -------- footer -------- */
.site-footer {
  background: #0a1813; color: rgba(255,255,255,.7);
  padding: 48px 0 32px;
  border-top: 4px solid var(--green);
}
.footer-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.footer-brand { display: inline-flex; align-items: center; }
.footer-brand img { height: 48px; width: auto; display: block; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer nav a { color: rgba(255,255,255,.7); font-size: .92rem; }
.site-footer nav a:hover { color: #fff; }
.copyright { width: 100%; text-align: center; font-size: .85rem; color: rgba(255,255,255,.5); margin: 24px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }

/* -------- responsive -------- */
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .primary-nav[data-open="true"] { max-height: 70vh; }
  .primary-nav ul {
    flex-direction: column; align-items: stretch;
    padding: 12px 24px 20px; gap: 0;
  }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav li:last-child { border-bottom: 0; padding-top: 12px; }
  .primary-nav a { padding: 14px 0; display: block; }
  .nav-cta { display: inline-block; padding: 12px 22px !important; margin-top: 4px; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .footer-row { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .hero { padding: 80px 0; }
  .hero-strip { gap: 16px 24px; }
  .contact-form { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
