/* ============================================
   SYNERGY ENGINEERING & MANAGEMENT
   Brand Colors from letterhead:
   - Navy Dark:   #1B3A5C
   - Navy Mid:    #1F497D
   - Blue:        #2E6B9E
   - Sky/Cyan:    #5ABADD
   - Light BG:    #F2F6FA
   ============================================ */

:root {
  --navy:       #1B3A5C;
  --navy-mid:   #1F497D;
  --blue:       #2E6B9E;
  --sky:        #5ABADD;
  --sky-light:  #A3D4ED;
  --bg-light:   #F2F6FA;
  --bg-white:   #FFFFFF;
  --text:       #2D3748;
  --text-light: #64748B;
  --border:     #E2E8F0;
  --radius:     6px;
  --radius-lg:  12px;
  --shadow:     0 1px 3px rgba(27,58,92,.08), 0 4px 14px rgba(27,58,92,.06);
  --shadow-lg:  0 4px 12px rgba(27,58,92,.10), 0 12px 32px rgba(27,58,92,.08);
  --transition: .3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn--primary:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn--outline:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}

.btn--nav {
  padding: 8px 22px;
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  font-size: .85rem;
}
.btn--nav:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
}

.btn--full { width: 100%; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background .3s, box-shadow .3s;
}

.header--scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 8px rgba(27,58,92,.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo-text {
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: .04em;
}

.header__logo-text strong {
  font-weight: 700;
}

.header--scrolled .header__logo-text {
  color: var(--navy);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  font-size: .875rem;
  font-weight: 500;
  color: #fff;
  transition: var(--transition);
}

.header--scrolled .header__nav a {
  color: var(--text);
}
.header--scrolled .header__nav a:hover {
  color: var(--blue);
}
.header--scrolled .btn--nav {
  color: #fff;
}

.header__nav a:hover { opacity: .85; }

.header__menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.header__menu span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
}
.header--scrolled .header__menu span { background: var(--navy); }

.header__menu--open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__menu--open span:nth-child(2) { opacity: 0; }
.header__menu--open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--blue) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90,186,221,.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90,186,221,.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

.hero__row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 32px;
}

.hero__logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,.15);
  overflow: hidden;
}

.hero__logo-wrap img {
  height: auto;
  width: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.hero__text {
  flex: 1;
  min-width: 0;
}

.hero__text .hero__sub {
  margin-bottom: 0;
}

.hero__tag {
  color: var(--sky-light);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero__title {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__sub {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: none;
  margin-bottom: 36px;
}

.hero__text .hero__title {
  margin-bottom: 12px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== STATS ===== */
.stats {
  background: var(--navy);
  padding: 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stats__item {
  padding: 40px 20px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stats__item:last-child { border-right: none; }

.stats__number {
  display: block;
  color: var(--sky);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.stats__label {
  color: rgba(255,255,255,.6);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .02em;
}

/* ===== SECTION COMMON ===== */
.section__tag {
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  text-align: center;
}

.section__title--left { text-align: left; }

.section__sub {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: .95rem;
}

section .section__tag { text-align: center; }

/* ===== SERVICES ===== */
.services {
  padding: 96px 0;
  background: var(--bg-light);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
  border: 1px solid var(--border);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--blue);
  margin-bottom: 20px;
}

.service-card__icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-light);
  font-size: .875rem;
  line-height: 1.65;
}

/* ===== SECTORS ===== */
.sectors {
  padding: 96px 0;
  background: var(--bg-white);
}

.sectors__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sector-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.sector-card:hover {
  border-color: var(--sky);
  box-shadow: var(--shadow);
}

.sector-card__bar {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  border-radius: 2px;
  margin-bottom: 20px;
}

.sector-card h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.sector-card p {
  color: var(--text-light);
  font-size: .84rem;
  line-height: 1.6;
}

/* ===== PROJECTS ===== */
.projects {
  padding: 96px 0;
  background: var(--bg-light);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--sky-light);
}

.project-card__header { margin-bottom: 12px; }

.project-card__type {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-light);
  color: var(--blue);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 20px;
}

.project-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}

.project-card p {
  color: var(--text-light);
  font-size: .84rem;
  line-height: 1.6;
  flex-grow: 1;
}

.project-card__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== ABOUT ===== */
.about {
  padding: 96px 0;
  background: var(--bg-white);
}

.about__inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 64px;
  align-items: center;
}

.about__text .section__tag { text-align: left; }

.about__text > p {
  color: var(--text-light);
  font-size: .92rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.about__values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.about__value {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.about__value h4 {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.about__value p {
  font-size: .8rem;
  color: var(--text-light);
  line-height: 1.55;
}

.about__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__logo-box {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 55px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about__logo-box img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ===== CLIENTS ===== */
.clients {
  padding: 64px 0;
  background: var(--bg-light);
  text-align: center;
}

.clients__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.clients__list span {
  padding: 10px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--navy);
  transition: var(--transition);
}

.clients__list span:hover {
  border-color: var(--sky);
  color: var(--blue);
}

/* ===== CONTACT ===== */
.contact {
  padding: 96px 0;
  background: var(--bg-white);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact__info .section__tag { text-align: left; }

.contact__info > p {
  color: var(--text-light);
  font-size: .92rem;
  margin-bottom: 32px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__detail svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__detail strong {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.contact__detail p {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Form */
.contact__form {
  background: var(--bg-light);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__group {
  margin-bottom: 18px;
}

.form__group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .88rem;
  color: var(--text);
  background: #fff;
  transition: border-color .2s;
}

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(90,186,221,.15);
}

.form__group textarea { resize: vertical; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding-top: 64px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer__logo-text {
  display: block;
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: .04em;
  margin-bottom: 12px;
}

.footer__logo-text strong {
  font-weight: 700;
}

.footer__brand p {
  font-size: .88rem;
  margin-bottom: 4px;
}

.footer__loc {
  font-size: .8rem;
  opacity: .6;
}

.footer__links h4 {
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}

.footer__links a,
.footer__links p {
  display: block;
  font-size: .84rem;
  margin-bottom: 8px;
  transition: var(--transition);
}

.footer__links a:hover { color: var(--sky-light); }

.footer__address {
  font-size: .84rem;
  line-height: 1.5;
}

.footer__bottom {
  padding: 20px 0;
  text-align: center;
}

.footer__bottom p {
  font-size: .78rem;
  opacity: .5;
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger delay for grid items */
.services__grid .fade-up:nth-child(2),
.projects__grid .fade-up:nth-child(2),
.sectors__grid .fade-up:nth-child(2) { transition-delay: .08s; }

.services__grid .fade-up:nth-child(3),
.projects__grid .fade-up:nth-child(3),
.sectors__grid .fade-up:nth-child(3) { transition-delay: .16s; }

.services__grid .fade-up:nth-child(4),
.sectors__grid .fade-up:nth-child(4) { transition-delay: .24s; }

.services__grid .fade-up:nth-child(5) { transition-delay: .32s; }
.services__grid .fade-up:nth-child(6) { transition-delay: .4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services__grid,
  .projects__grid { grid-template-columns: repeat(2, 1fr); }

  .sectors__grid { grid-template-columns: repeat(2, 1fr); }

  .about__inner { grid-template-columns: 1fr; }

  .about__visual { order: -1; }

  .about__values { grid-template-columns: 1fr 1fr; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right .3s ease;
  }

  .header__nav--open { right: 0; }

  .header__nav a { color: #fff !important; font-size: 1rem; }

  .header__menu { display: flex; }

  .hero { min-height: 80vh; }

  .hero__row {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .hero__logo-wrap {
    width: 120px !important;
    height: 120px !important;
  }

  .hero__actions { justify-content: center; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }

  .stats__item { border-bottom: 1px solid rgba(255,255,255,.1); }

  .services__grid,
  .projects__grid,
  .sectors__grid { grid-template-columns: 1fr; }

  .contact__inner { grid-template-columns: 1fr; }

  .form__row { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; }

  .about__values { grid-template-columns: 1fr; }

  .about__logo-box { width: 200px; height: 200px; padding: 36px; }
}
