/* ============================================================
   NRM — New Revolution Marketing
   style.css
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #1a3a4a;
  --navy-dark: #122a38;
  --teal:      #2a8a9e;
  --teal-dark: #207a8d;
  --teal-light:#3ba3b9;
  --hero-bg:   #e4f4f8;
  --white:     #ffffff;
  --gray-50:   #f8fafb;
  --gray-100:  #f0f4f6;
  --gray-200:  #dde7ec;
  --gray-400:  #8fa8b3;
  --gray-600:  #4a6872;
  --gray-800:  #1e3340;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.3s ease;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(26, 58, 74, 0.08);
  --shadow-hover: 0 8px 40px rgba(26, 58, 74, 0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

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

.hidden { display: none !important; }

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.section-label--light { color: var(--teal-light); }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.section-title--light { color: var(--white); }

.section-header { margin-bottom: 64px; }

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(42, 138, 158, 0.35);
}

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

/* --- Nav -------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.nav--solid {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--gray-200);
}

.nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.01em;
  transition: opacity var(--transition);
}
.nav__logo:hover { opacity: 0.8; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-600);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav__link:hover { color: var(--navy); }
.nav__link:hover::after { transform: scaleX(1); }

.nav--solid .nav__link { color: var(--gray-600); }
.nav--solid .nav__link:hover { color: var(--navy); }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero ------------------------------------------------- */
.hero {
  background: var(--hero-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(42,138,158,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(26,58,74,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
}

.hero__headline {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.05;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}

.hero__body {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--gray-600);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 44px;
  font-weight: 400;
}

.hero__line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200) 20%, var(--gray-200) 80%, transparent);
}

/* --- Services --------------------------------------------- */
.services {
  padding: 120px 0;
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
}

.service-card {
  background: var(--white);
  padding: 52px 44px;
  transition: background var(--transition);
  position: relative;
}

.service-card:hover { background: var(--gray-50); }

.service-card__number {
  display: block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 20px;
}

.service-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}

.service-card__divider {
  width: 32px;
  height: 2px;
  background: var(--teal);
  margin-bottom: 20px;
  transition: width var(--transition);
}

.service-card:hover .service-card__divider { width: 56px; }

.service-card__body {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.75;
}

/* --- About ------------------------------------------------ */
.about {
  background: var(--navy);
  padding: 120px 0 0;
  overflow: hidden;
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
}

/* Use full width for text since there's only one column of text */
.about__content { grid-template-columns: 1fr; max-width: 700px; }

.about__text { }

.about__body {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-box {
  padding: 52px 40px;
  border-right: 1px solid rgba(255,255,255,0.1);
  position: relative;
  transition: background var(--transition);
}

.stat-box:last-child { border-right: none; }
.stat-box:hover { background: rgba(255,255,255,0.04); }

.stat-box__number {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-box__label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* --- Contact ---------------------------------------------- */
.contact {
  padding: 120px 0;
  background: var(--white);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact__body {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-top: 24px;
  margin-bottom: 32px;
}

.contact__detail {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.contact__form-wrap { position: relative; }

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 44px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-input::placeholder { color: var(--gray-400); }

.form-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,138,158,0.12);
}

.form-select-wrap { position: relative; }

.form-select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--gray-400);
  pointer-events: none;
}

.form-select { cursor: pointer; padding-right: 40px; }

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* Form success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 80px 44px;
}

.form-success.visible { display: flex; }

.form-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(42,138,158,0.12);
  color: var(--teal);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.form-success h3 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--navy);
}

.form-success p {
  font-size: 0.95rem;
  color: var(--gray-600);
}

/* --- Footer ----------------------------------------------- */
.footer {
  background: var(--navy-dark);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__logo {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.01em;
}

.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em;
}

/* --- Scroll Reveal ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero reveals fire immediately on load */
.hero .reveal { transition-delay: 0s; }
.hero .reveal--delay-1 { transition-delay: 0.15s; }
.hero .reveal--delay-2 { transition-delay: 0.3s; }
.hero .reveal--delay-3 { transition-delay: 0.45s; }

/* --- Responsive ------------------------------------------- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: 1fr; gap: 0; }
  .service-card { padding: 44px 36px; }
  .about__stats { grid-template-columns: repeat(2, 1fr); }
  .stat-box:nth-child(2) { border-right: none; }
  .stat-box:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.1); border-top: 1px solid rgba(255,255,255,0.1); }
  .stat-box:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.1); border-right: none; }
  .contact__inner { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 768px) {
  .nav__hamburger { display: flex; }

  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding var(--transition);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav__links.open {
    max-height: 300px;
    padding: 16px 0 24px;
  }

  .nav__link {
    padding: 14px 24px;
    width: 100%;
    text-align: center;
  }

  .nav__link::after { display: none; }

  .hero { padding: 100px 24px 80px; }

  .services { padding: 80px 0; }

  .about { padding: 80px 0 0; }
  .about__stats { grid-template-columns: repeat(2, 1fr); }

  .contact { padding: 80px 0; }
  .contact__form { padding: 32px 24px; }

  .footer__inner { flex-direction: column; text-align: center; gap: 12px; }

  .section-header { margin-bottom: 48px; }
}

@media (max-width: 480px) {
  .about__stats { grid-template-columns: 1fr 1fr; }
  .stat-box { padding: 36px 24px; }
  .services__grid { gap: 0; }
}

/* --- Utility: smooth transition on nav transparency ------- */
.nav:not(.nav--solid) .nav__link { color: var(--gray-600); }

/* Teal line accent on hero section heading */
.hero__headline::after {
  content: none;
}

/* Subtle grain texture on hero */
.hero {
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #e4f4f8 60%, #d0eaf2 100%);
  background-size: 200px 200px, cover;
}
