/* ======================================================
   Evergreen Terrace Consultants — Stylesheet
   Palette: Midnight Green / Pacific Cyan / Persian Green /
            Light Green / Aquamarine
   ====================================================== */

:root {
  --navy:       #004E64;   /* Midnight Green  */
  --blue:       #00A5CF;   /* Pacific Cyan    */
  --blue-light: #7AE582;   /* Light Green     */
  --red:        #25A18E;   /* Persian Green   */
  --red-dark:   #004E64;   /* Midnight Green  */
  --white:      #ffffff;
  --off-white:  #f0fdf9;
  --grey-light: #dff2ee;
  --grey:       #64748b;
  --text:       #1e2a3a;
  --shadow:     0 4px 24px rgba(0,78,100,0.12);
  --transition: .25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--navy);
  color: var(--white);
  padding: .7rem 1rem;
  border-radius: 6px;
  z-index: 2000;
}
.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

/* ── Typography ────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p  { margin-bottom: 1rem; }
a  { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }

/* ── Utility ────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 80px 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .5rem;
}
.section-title {
  margin-bottom: 1rem;
  color: var(--navy);
}
.section-title span { color: var(--red); }
.section-intro { max-width: 680px; color: var(--grey); margin-bottom: 2.5rem; font-size: 1.05rem; }
.section-label--light { color: #7AE582; }
.section-title--light { color: var(--white); }
.section-title-accent--mint { color: #9FFFCB; }
.section-intro--light { color: rgba(255,255,255,0.7); }
.divider {
  width: 56px; height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin-bottom: 2rem;
}
.divider--red { background: var(--red); }

/* ── Site Header (logo / branding) ──────────────────── */
/* Removed — logo is now in #navbar */
.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo .logo-accent { color: var(--red); }
.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── Navigation bar (slim, sticky) ───────────────────── */
#navbar {
  position: sticky; top: 0; width: 100%;
  z-index: 1000;
  background: #9FFFCB;
  box-shadow: 0 2px 12px rgba(0,78,100,0.18);
  transition: background var(--transition);
}
.nav-inner {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 1.5rem;
  height: 64px;
}
.team-avatar--photo {
  background: none;
  overflow: hidden;
  flex-shrink: 0;
}
.team-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.team-avatar.team-avatar--director {
  width: 260px;
  min-height: 340px;
  border-radius: 0;
  flex-shrink: 0;
  align-self: stretch;
}
.team-avatar.team-avatar--director img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  border-radius: 0;
  transform: scale(1.09);
  transform-origin: center top;
}
.nav-links {
  display: flex; list-style: none; gap: .25rem;
}
.nav-links a {
  color: var(--navy);
  font-size: .88rem; font-weight: 600;
  padding: .45rem .8rem;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover {
  background: rgba(0,78,100,0.1);
  color: var(--navy);
}
.nav-cta {
  background: var(--navy) !important;
  color: #9FFFCB !important;
  border-radius: 4px;
  padding: .45rem 1rem !important;
}
.nav-cta:hover { background: #003d52 !important; color: #9FFFCB !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .25rem; }
.hamburger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }

/* ── Hero ────────────────────────────────────────────── */
#hero {
  background: linear-gradient(135deg, var(--navy) 0%, #003d52 55%, #00A5CF 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 20px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 760px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(37,161,142,0.15);
  border: 1px solid rgba(37,161,142,0.4);
  color: #7AE582;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero-badge::before { content: ''; width: 8px; height: 8px; background: var(--red); border-radius: 50%; }
#hero h1 { color: var(--white); margin-bottom: 1.25rem; }
#hero h1 em { font-style: normal; color: #9FFFCB; }
#hero .hero-sub {
  font-size: 1.15rem; color: rgba(255,255,255,0.78);
  max-width: 600px; margin-bottom: 2rem;
}
.hero-pills {
  display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem;
}
.hero-pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,.9);
  font-size: .82rem; font-weight: 600;
  padding: .4rem 1rem; border-radius: 20px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  font-size: .95rem; font-weight: 700;
  padding: .75rem 1.75rem; border-radius: 5px;
  cursor: pointer; transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: var(--white); }

/* ── Stats bar ────────────────────────────────────────── */
#stats {
  background: var(--white);
  border-bottom: 1px solid var(--grey-light);
  padding: 40px 0;
  box-shadow: var(--shadow);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--navy); }
.stat-label  { font-size: .85rem; color: var(--grey); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat-divider { border-left: 2px solid var(--grey-light); }

/* ── About ────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-visual {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 12px;
  padding: 2.5rem;
  color: var(--white);
}
.about-visual h3 { color: var(--white); margin-bottom: 1rem; font-size: 1.3rem; }
.about-pillars { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.about-pillars li {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .95rem; color: rgba(255,255,255,0.85);
}
.about-pillars li::before {
  content: ''; flex-shrink: 0;
  width: 8px; height: 8px; margin-top: .5rem;
  background: var(--red); border-radius: 50%;
}
.about-text p { color: var(--grey); }
.about-frameworks {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem;
}
.tag {
  background: var(--grey-light);
  color: var(--navy);
  font-size: .78rem; font-weight: 700;
  padding: .3rem .8rem; border-radius: 20px;
  letter-spacing: .03em;
}

/* ── Services ─────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 10px;
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--blue-light);
}
.service-icon {
  width: 44px; height: 44px;
  background: var(--off-white);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.service-card h3 { color: var(--navy); margin-bottom: .75rem; }
.service-card ul { list-style: none; padding: 0; }
.service-card ul li {
  padding: .3rem 0;
  font-size: .9rem;
  color: var(--grey);
  border-bottom: 1px solid var(--grey-light);
  padding-left: 1rem;
  position: relative;
}
.service-card ul li::before {
  content: '›';
  position: absolute; left: 0;
  color: var(--red); font-weight: 700;
}
.service-card ul li:last-child { border-bottom: none; }

/* AI card highlight */
.service-card.highlight-card {
  border-color: var(--blue);
  background: linear-gradient(160deg, #f0fdf9 0%, var(--white) 100%);
}
.service-card.highlight-card .service-icon { background: #ccf5ed; }
.services-grid--ai {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 0;
}
.service-copy {
  color: var(--grey);
  font-size: .9rem;
  margin-top: .5rem;
}

/* ── Experience ───────────────────────────────────────── */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.exp-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 1.75rem;
  transition: background var(--transition);
}
.exp-card:hover { background: rgba(255,255,255,0.1); }
.exp-card h3 { color: var(--white); margin-bottom: 1rem; font-size: 1.1rem; }
.exp-card ul { list-style: none; padding: 0; }
.exp-card ul li {
  padding: .35rem 0;
  font-size: .9rem;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-left: 1.1rem;
  position: relative;
}
.exp-card ul li::before {
  content: '›';
  position: absolute; left: 0;
  color: #7AE582; font-weight: 700;
}
.exp-card ul li:last-child { border-bottom: none; }
.exp-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .2rem .65rem; border-radius: 20px;
  margin-bottom: .75rem;
}

/* ── Approach ─────────────────────────────────────────── */
.approach-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
}
.approach-steps::before {
  content: '';
  position: absolute;
  top: 36px; left: 10%; right: 10%;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  border-radius: 2px;
}
.step {
  text-align: center;
  position: relative;
  padding-top: .5rem;
}
.step-num {
  width: 72px; height: 72px;
  background: var(--navy);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 1rem;
  position: relative; z-index: 1;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}
.step-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.step-desc   { font-size: .83rem; color: var(--grey); }
.step:nth-child(1) .step-num { box-shadow: 0 0 0 3px var(--red); }
.step:nth-child(1) .step-num { background: linear-gradient(135deg, var(--navy), var(--red-dark)); }

/* ── Technologies ─────────────────────────────────────── */
.tech-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.tech-cat {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}
.tech-cat-label {
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--red);
  margin-bottom: .6rem;
}
.tech-cat-list {
  font-size: .9rem; color: var(--grey);
  line-height: 1.9;
}

/* ── Footer ──────────────────────────────────────────── */
footer {
  background: #002a38;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 1.5rem 0;
  font-size: .82rem;
}
footer strong { color: rgba(255,255,255,0.8); }
.footer-meta { margin-top: .4rem; }

/* ── Scroll-to-top ────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition), background var(--transition);
  box-shadow: 0 4px 12px rgba(37,161,142,0.35);
  text-decoration: none;
}
#scroll-top.visible { opacity: 1; pointer-events: auto; }
#scroll-top:hover { background: var(--red-dark); color: var(--white); }

/* ── Contact form ─────────────────────────────────── */
#contact {
  background: linear-gradient(135deg, var(--navy) 0%, #003d52 100%);
  padding: 80px 0;
}
#contact h2 { color: var(--white); margin-bottom: .75rem; }
#contact > .container > p { color: rgba(255,255,255,0.72); margin-bottom: 2.5rem; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.contact-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.1rem;
}
.form-group label {
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.form-optional { font-weight: 400; text-transform: none; opacity: .6; }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  color: var(--white);
  font-size: .95rem;
  font-family: inherit;
  padding: .65rem .9rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}
.form-group select option { background: var(--navy); color: var(--white); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-light);
  background: rgba(255,255,255,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; justify-content: center; font-size: 1rem; padding: .85rem; margin-top: .5rem; }
.form-success {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(122,229,130,0.12);
  border: 1px solid rgba(122,229,130,0.35);
  border-radius: 6px;
  color: var(--blue-light);
  font-weight: 600;
  font-size: .95rem;
  text-align: center;
}
[data-fs-success] { display: none; }
.form-error {
  display: none;
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  background: rgba(255,100,100,0.12);
  border: 1px solid rgba(255,100,100,0.35);
  border-radius: 6px;
  color: #ffaaaa;
  font-size: .88rem;
}
[data-fs-error]:not(:empty) { display: block; }
.field-error {
  display: none;
  font-size: .78rem;
  color: #ffaaaa;
  margin-top: .2rem;
}
[data-fs-error][class="field-error"]:not(:empty) { display: block; }
.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"],
.form-group select[aria-invalid="true"] {
  border-color: rgba(255,100,100,0.6);
}
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: .5rem;
}
.contact-aside-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  color: var(--white);
}
.contact-icon {
  width: 40px; height: 40px;
  background: var(--red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-aside-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: .2rem;
}
.contact-aside-item a {
  color: var(--white);
  font-size: .95rem;
  word-break: break-all;
}
.contact-aside-item a:hover { color: #9FFFCB; }
.contact-aside-item span { font-size: .95rem; }

/* ── Team ────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.team-card--director {
  grid-column: 1 / -1;
  border-color: var(--blue);
  background: var(--white);
  padding: 0;
  overflow: hidden;
  align-items: stretch;
  border-top: 4px solid var(--blue);
}
.team-card--director .team-info {
  padding: 2rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.team-card--agent {
  border-color: var(--grey-light);
}
.team-avatar {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  font-size: 1.2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .02em;
}
.team-avatar--agent {
  background: linear-gradient(135deg, var(--red), var(--blue));
  font-size: 1.5rem;
}
.team-info { flex: 1; }
.team-role {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--blue);
  margin-bottom: .25rem;
}
.team-role--agent { color: var(--red); }
.team-name {
  font-size: 1.15rem; font-weight: 800;
  color: var(--navy);
  margin-bottom: .6rem;
}
.team-bio {
  font-size: .9rem; color: var(--grey);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.team-skills { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .services-grid   { grid-template-columns: 1fr !important; }
  .about-grid      { grid-template-columns: 1fr; }
  .approach-steps  { grid-template-columns: repeat(3, 1fr); }
  .approach-steps::before { display: none; }
  .tech-categories { grid-template-columns: repeat(2, 1fr); }
  .contact-layout  { grid-template-columns: 1fr; }
  .form-row        { grid-template-columns: 1fr; }
  .team-grid       { grid-template-columns: 1fr; }
  .team-card--director { grid-column: auto; flex-direction: column; }
  .team-avatar.team-avatar--director { width: 100%; min-height: 280px; border-radius: 0; }
}
@media (max-width: 640px) {
  .services-grid   { grid-template-columns: 1fr; }
  .experience-grid { grid-template-columns: 1fr; }
  .approach-steps  { grid-template-columns: repeat(2, 1fr); }
  .tech-categories { grid-template-columns: 1fr; }
  .contact-layout  { grid-template-columns: 1fr; }
  .form-row        { grid-template-columns: 1fr; }
  .stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .nav-links       { display: none; flex-direction: column; }
  .nav-links.open  {
    display: flex;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #9FFFCB;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0,78,100,0.15);
  }
  .hamburger { display: flex; }
  .hero-actions { flex-direction: column; }
  .contact-card { min-width: unset; width: 100%; }
}
