/* Shared styles for every page on emeraldvalleytech.com.
   Change a color here and it changes everywhere. */

:root {
  --green: #0f5c44;        /* brand emerald */
  --green-dark: #0a3f2f;
  --green-light: #e8f3ee;  /* shaded sections */
  --accent: #f2b134;       /* GlareGuardians amber */
  --ink: #1c2421;
  --muted: #5b6863;
  --line: #d9e2de;
  --white: #ffffff;
  --max: 1080px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

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

a { color: var(--green); }
a:hover { color: var(--green-dark); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

/* Layout: every section gets the same side padding, shaded or not. */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 72px 0; }
section.shade { background: var(--green-light); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--green);
  position: relative;
  flex: none;
}
.brand-mark::after {           /* simple emerald-cut gem shape */
  content: "";
  position: absolute;
  inset: 7px;
  background: #4fc79a;
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}
.nav { display: flex; gap: 22px; align-items: center; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--green);
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: var(--green); color: var(--white); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Hero */
.hero { padding: 96px 0 80px; background: linear-gradient(160deg, #f4faf7 0%, #e3f1ea 100%); }
.hero p.lead { margin-top: 8px; }

/* Cards / grids */
.grid { display: grid; gap: 22px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--green-light);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 14px;
}

/* Project feature */
.project {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff4dc;
  color: #8a5a00;
  margin-bottom: 12px;
}
.lens-art {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: radial-gradient(circle at 70% 35%, #fff8d6 0 7%, #f2b134 9%, transparent 22%),
              linear-gradient(180deg, #8fb7d8 0%, #c9dcea 55%, #6c7a6f 56%, #4e5a52 100%);
  position: relative;
  overflow: hidden;
}
.lens-art .dim {               /* the "dimmed zone" over the sun */
  position: absolute;
  left: 61%; top: 18%;
  width: 18%; height: 34%;
  background: rgba(20, 30, 28, 0.62);
  border: 2px dashed rgba(255,255,255,0.7);
  border-radius: 6px;
}
.lens-art .label {
  position: absolute;
  left: 12px; bottom: 10px;
  font-size: 0.78rem;
  color: #fff;
  background: rgba(0,0,0,0.45);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Steps */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 52px; }
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 20px; left: 26px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* FAQ */
details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--green); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Forms */
form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-size: 0.9rem; font-weight: 600; display: grid; gap: 6px; }
input, textarea {
  font: inherit;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  width: 100%;
}
input:focus, textarea:focus { outline: 2px solid #4fc79a; border-color: transparent; }
textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -5000px; }  /* spam honeypot, hidden */
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.inline-form input { flex: 1 1 240px; }
.small { font-size: 0.85rem; color: var(--muted); }

/* Contact block */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }

/* Legal pages */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }

/* Footer: same side padding as everything else */
.site-footer {
  background: var(--green-dark);
  color: #cfe3da;
  padding: 44px 0 36px;
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer a { color: #ffffff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Phones and small tablets */
@media (max-width: 820px) {
  section { padding: 56px 0; }
  .grid.three, .grid.two, .project, .contact-grid, .row { grid-template-columns: 1fr; }
  .project { padding: 24px; gap: 24px; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
}
