/* ============================================
   Gransee Engineering LLC — Site Styles
   ============================================ */

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

:root {
  --blue-900: #0f2942;
  --blue-800: #153a5c;
  --blue-700: #1a4971;
  --blue-600: #1e5a8a;
  --blue-500: #2673ab;
  --blue-400: #3a8fd4;
  --blue-100: #dce9f5;
  --blue-50: #eef4fa;
  --accent: #e8a838;
  --accent-hover: #d4952e;
  --gray-900: #1a1a2e;
  --gray-800: #2d2d44;
  --gray-700: #4a4a5a;
  --gray-600: #6b6b7b;
  --gray-500: #8a8a9a;
  --gray-300: #c8c8d4;
  --gray-200: #e2e2ea;
  --gray-100: #f0f0f5;
  --gray-50: #f8f8fb;
  --white: #ffffff;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1140px;
  --section-pad: 5rem 1.5rem;
}

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

body {
  font-family: var(--font-main);
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-500);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--blue-700);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--blue-900);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

.section-subtitle {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--section-pad);
}

section:nth-child(even):not(.hero):not(#contact) {
  background: var(--gray-50);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--blue-900);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--blue-900);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 168, 56, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue-900);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--blue-900);
  padding: 0 1.5rem;
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-brand:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: all 0.3s;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--blue-900);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

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

/* --- Hero --- */
.hero {
  background: #050e1a;
  color: var(--white);
  padding: 10rem 1.5rem 6rem;
  text-align: center;
}

.hero h1 {
  color: #ffffff;
  margin-bottom: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero .subhead {
  font-size: 1.25rem;
  color: #ffffff;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  color: var(--blue-800);
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Getting Started accordion */
.getting-started-toggle {
  display: inline-block;
  margin-top: 0.75rem;
  background: none;
  border: none;
  color: var(--blue-500);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.getting-started-toggle::after {
  content: ' +';
}

.getting-started-toggle[aria-expanded="true"]::after {
  content: ' \2212';
}

.getting-started-toggle:hover {
  color: var(--blue-700);
}

.getting-started-steps {
  display: none;
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  text-align: left;
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.getting-started-steps.open {
  display: block;
}

.getting-started-steps li {
  margin-bottom: 0.35rem;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--blue-500);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
}

.step h3 {
  margin-bottom: 0.75rem;
}

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

@media (max-width: 700px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- Case Study --- */
.case-study-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 3rem;
  max-width: 860px;
  margin: 2rem auto 0;
}

.case-study-box .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-500);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.case-study-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.case-study-box p {
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.case-study-stats {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.stat .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-600);
  display: block;
}

.stat .label {
  font-size: 0.85rem;
  color: var(--gray-600);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.case-study-box ul {
  padding-left: 1.25rem;
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.case-study-box ul li {
  margin-bottom: 0.4rem;
}

.case-study-result {
  background: var(--blue-50);
  border-left: 4px solid var(--blue-500);
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  margin-top: 1.5rem;
}

.case-study-result p {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--blue-800);
}

/* --- About --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.credential {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
}

.credential .number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue-600);
  display: block;
}

.credential .desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

/* --- Pricing --- */
.pricing-content {
  max-width: 860px;
  margin: 0 auto;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.rate-table thead {
  background: var(--blue-800);
  color: var(--white);
}

.rate-table th,
.rate-table td {
  padding: 1rem 1.25rem;
  text-align: left;
}

.rate-table th {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rate-table tbody tr {
  border-bottom: 1px solid var(--gray-200);
}

.rate-table tbody tr:last-child {
  border-bottom: none;
}

.rate-table tbody tr:hover {
  background: var(--blue-50);
}

.engagement-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.engagement-type {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.5rem;
}

.engagement-type h4 {
  margin-bottom: 0.5rem;
  color: var(--blue-800);
}

.engagement-type p {
  color: var(--gray-600);
  font-size: 0.9rem;
}

.pricing-note {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--blue-50);
  border-radius: 8px;
  color: var(--gray-700);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .engagement-types {
    grid-template-columns: 1fr;
  }

  .rate-table th,
  .rate-table td {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}

/* --- Contact --- */
#contact {
  background: var(--blue-900);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info h2 {
  color: var(--white);
}

.contact-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-detail .icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.85);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

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

.form-group select option {
  background: var(--blue-900);
  color: var(--white);
}

.contact-form .btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.6);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.6);
}
.footer a:hover {
  color: var(--accent);
}

.footer-links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* --- Utility --- */
.text-center {
  text-align: center;
}

/* --- Responsive typography --- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero {
    padding: 8rem 1.5rem 4rem;
  }

  section {
    padding: 3.5rem 1.5rem;
  }

  .case-study-box {
    padding: 2rem;
  }
}
