/* ==========================================================================
   Guymast Inc. — modern site stylesheet
   Brand: structural-engineering green (#0a6b3b family), clean & professional
   ========================================================================== */

:root {
  /* Brand palette */
  --green-900: #07351f;
  --green-800: #0a4a2b;
  --green-700: #0a6b3b;
  --green-600: #0f8049;
  --green-500: #18a05c;
  --green-100: #e6f4ec;
  --green-50:  #f3faf6;

  --ink-900: #10211a;
  --ink-700: #2b3a33;
  --ink-500: #54635c;
  --ink-300: #8a978f;

  --line: #e2e8e4;
  --bg: #ffffff;
  --bg-soft: #f6f9f7;
  --bg-dark: #07351f;

  --accent: #f4a73b;       /* warm steel/safety accent */
  --danger: #c0392b;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(7, 53, 31, .06), 0 1px 3px rgba(7, 53, 31, .08);
  --shadow-md: 0 6px 18px rgba(7, 53, 31, .08), 0 2px 6px rgba(7, 53, 31, .06);
  --shadow-lg: 0 24px 60px rgba(7, 53, 31, .14);

  --maxw: 1140px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Consolas", monospace;
}

/* ----- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-700);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--green-500); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink-900); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .35rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #cfe7da; }
.section--dark h2, .section--dark h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--ink-500); max-width: 60ch; }
.center .lead { margin-inline: auto; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: .75rem;
}
.muted { color: var(--ink-500); }

/* ----- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.btn--primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--green-700); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green-500); color: var(--green-600); background: var(--green-50); }
.btn--light { background: #fff; color: var(--green-800); }
.btn--light:hover { background: var(--green-50); color: var(--green-800); transform: translateY(-1px); }
.btn--lg { padding: .95rem 1.8rem; font-size: 1.05rem; }

/* ----- Header / Nav ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--ink-900); letter-spacing: -.02em; }
.brand:hover { color: var(--ink-900); }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green-600); line-height: 1; margin-top: 2px; }
/* Logo image (replaces the SVG mark + wordmark) */
.brand { flex-shrink: 0; }
.brand-logo { height: 42px; width: auto; display: block; }
@media (max-width: 760px) { .brand-logo { height: 36px; } }
.footer-logo { display: inline-block; background: #fff; padding: 9px 14px; border-radius: 12px; margin-bottom: .9rem; }
.footer-logo .brand-logo { height: 34px; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: .55rem .7rem; border-radius: 8px; font-weight: 500;
  color: var(--ink-700); font-size: .96rem; white-space: nowrap;
}
.nav-links a:hover { background: var(--green-50); color: var(--green-700); }
.nav-links a.active { color: var(--green-700); background: var(--green-50); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink-900); margin: 5px 0; transition: .25s; border-radius: 2px; }

/* Dropdown */
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: all .18s ease;
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop a { padding: .55rem .7rem; border-radius: 7px; display: block; }
.drop a strong { display: block; color: var(--ink-900); font-size: .95rem; font-weight: 600; }
.drop a span { font-size: .82rem; color: var(--ink-500); }
.drop a:hover { background: var(--green-50); }
.drop a:hover strong { color: var(--green-700); }

/* ----- Hero -------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--green-900) 0%, var(--green-700) 60%, var(--green-600) 100%); color: #eafaf1; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,.10), transparent 45%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 84px; }
.hero h1 { color: #fff; }
.hero .lead { color: #c8ead7; }
.hero .eyebrow { color: #8fe6b6; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stats .lbl { font-size: .82rem; color: #9fd9b8; letter-spacing: .03em; }
.hero-art { display: flex; justify-content: center; }
.hero-img { width: 100%; max-width: 180px; height: auto; display: block; }

/* ----- Grids / Cards ----------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-100); }
.card h3 { margin-bottom: .4rem; }
.card .icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700); margin-bottom: 16px;
}
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--ink-500); margin-bottom: .6rem; font-size: .97rem; }
.card .more { font-family: var(--font-head); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: .35rem; }

.badge {
  display: inline-block; font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  padding: .22rem .55rem; border-radius: 6px; background: var(--green-100); color: var(--green-800);
  letter-spacing: .02em;
}
.badge--new { background: var(--accent); color: #5a3a00; }
.tm { font-size: .6em; vertical-align: super; font-family: var(--font); }

/* ----- Feature list with check icons ------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; color: var(--ink-700); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem;
  background: var(--green-100); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a6b3b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: .72rem;
}

/* ----- Page hero (interior) ---------------------------------------------- */
.page-hero { background: var(--green-900); color: #d6f0e2; padding: 56px 0 52px; }
.page-hero h1 { color: #fff; margin-bottom: .4rem; }
.page-hero p { color: #a9d8bf; max-width: 64ch; margin: 0; }
.breadcrumb { font-size: .85rem; color: #7cc69d; margin-bottom: 1rem; }
.breadcrumb a { color: #a9d8bf; }
.breadcrumb a:hover { color: #fff; }

/* ----- Prose / content --------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.3rem; }

/* ----- Split content ----------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--narrow { grid-template-columns: 1.2fr .8fr; }

/* ----- Tables ------------------------------------------------------------ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--green-50); color: var(--ink-900); font-family: var(--font-head); font-weight: 600; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--green-50); }

/* ----- Forms ------------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink-900); margin-bottom: .35rem; }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .97rem; color: var(--ink-900); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-100);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .85rem; color: var(--ink-500); }
.form-success { display: none; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--green-100); color: var(--green-800); font-weight: 600; margin-bottom: 1rem; }
/* Honeypot field — hidden from people, catches bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ----- Callout / steps --------------------------------------------------- */
.callout { background: var(--green-50); border: 1px solid var(--green-100); border-left: 4px solid var(--green-600); border-radius: var(--radius-sm); padding: 20px 24px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { position: relative; padding-left: 3.4rem; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem;
  background: var(--green-700); color: #fff; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700;
}
.steps li h4 { margin: .2rem 0 .25rem; }

/* ----- Logo strip / standards ------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.chip { font-family: var(--font-mono); font-size: .85rem; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-700); }

/* ----- CTA band ---------------------------------------------------------- */
.cta-band { background: linear-gradient(120deg, var(--green-800), var(--green-600)); color: #fff; border-radius: 20px; padding: 48px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cdeada; max-width: 50ch; margin-inline: auto; }

/* ----- Footer ------------------------------------------------------------ */
.site-footer { background: var(--green-900); color: #9fc8b1; padding: 60px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; font-family: var(--font-head); }
.site-footer a { color: #9fc8b1; display: block; padding: .2rem 0; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: .8rem; }
.footer-brand .brand small { color: #7cc69d; }
.footer-brand p { color: #88b69e; max-width: 32ch; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: #6fae8d; }

/* ----- Module rows (GUYMASTER suite) ------------------------------------- */
.module { scroll-margin-top: 90px; }
.module + .module { margin-top: 28px; }
.module-tag { display:inline-block; font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing:.04em; color: var(--green-700); background: var(--green-100); border-radius: 6px; padding: .22rem .55rem; margin-bottom:.6rem; }

/* ----- Screenshot gallery ------------------------------------------------ */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px; }
.shots.shots-3 { grid-template-columns: repeat(3, 1fr); }
.shots.shots-4 { grid-template-columns: repeat(4, 1fr); }
.shot {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-soft); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.shot .frame {
  position: relative; aspect-ratio: 14 / 9; overflow: hidden;
  background: linear-gradient(135deg, var(--green-50), #fff);
  display: grid; place-items: center;
}
.shot .frame img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.shot .frame .ph { color: var(--ink-300); font-family: var(--font-mono); font-size: .78rem; text-align: center; padding: 1rem; }
.shot .frame .ph svg { width: 34px; height: 34px; margin: 0 auto .5rem; display:block; stroke: var(--green-500); }
.shot figcaption { padding: .7rem .9rem; font-size: .88rem; color: var(--ink-500); border-top: 1px solid var(--line); background:#fff; }
@media (max-width: 980px) { .shots.shots-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .shots, .shots.shots-3, .shots.shots-4 { grid-template-columns: 1fr; } }

/* ----- Lightbox (click-to-zoom gallery images) --------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 5vh 5vw;
  background: rgba(7, 53, 31, .85); backdrop-filter: blur(4px);
  animation: lb-fade .18s ease;
}
.lightbox.open { display: flex; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .8rem; max-width: 100%; max-height: 100%; }
.lightbox-fig img {
  max-width: 100%; max-height: 88vh; width: auto; height: auto;
  object-fit: contain; border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45); background: #fff;
}
.lightbox-fig figcaption { color: #eafaf1; font-size: .92rem; text-align: center; }
.lightbox-close {
  position: fixed; top: 18px; right: 22px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.7rem; line-height: 1;
  cursor: pointer; transition: background .15s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .3); }

/* ----- Anchor offset for sticky header ----------------------------------- */
:target { scroll-margin-top: 90px; }

/* ----- Reveal on scroll -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ----- Responsive -------------------------------------------------------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .hero-art { order: -1; max-width: 320px; }
  .split, .split--narrow { grid-template-columns: 1fr; gap: 28px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 18px 18px; gap: 2px;
    box-shadow: var(--shadow-lg); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem .6rem; border-radius: 8px; }
  .has-drop .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 4px 12px; min-width: 0; }
  .has-drop .drop a span { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; }
  .hero-stats { gap: 1.4rem; }
}
