/* styles.css */

/* BASE RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f8f9fa;
  --panel: #ffffff;
  --panel-alt: #f1f3f5;
  --border: #dee2e6;
  --text: #212529;
  --text-muted: #495057;
  --text-light: #6c757d;
  
  --primary: #0066cc;
  --primary-dark: #004a99;
  --primary-light: #3385d6;
  --accent: #00a86b;
  
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
  
  --radius: 8px;
  --radius-sm: 4px;
  
  --max: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

/* SELECTION */
::selection {
  background: rgba(0, 102, 204, 0.2);
}

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

/* SKIP LINK */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: white;
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
  z-index: 9999;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-medium);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand h1 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
}

.license {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

/* NAV */
.nav {
  position: relative;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1000;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--panel-alt);
}

.nav-links .cta {
  color: white;
  background: var(--primary);
  margin-left: 0.5rem;
}

.nav-links .cta:hover {
  background: var(--primary-dark);
}

/* HERO */
.hero {
  position: relative;
  padding: 4rem 0 3.5rem;
  text-align: center;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.hero .container {
  position: relative;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
  text-transform: uppercase;
}

.hero h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

/* BUTTON */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
  font-weight: 600;
  border: none;
}

.button-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 102, 204, 0.2);
}

.button-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
  transform: translateY(-1px);
}

.button-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.button-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* SECTIONS */
.section {
  padding: 4rem 0;
}

.section h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
}

.section-intro {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  max-width: 800px;
}

.section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.section.alt {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.card-featured {
  grid-column: 1 / -1;
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.card h4 {
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--text);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

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

.about-main {
  position: relative;
}

.about-main .lead {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text);
  font-weight: 500;
}

.about-main h4 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.credentials-box,
.service-area-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.credentials-box h4,
.service-area-box h4 {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.credentials-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.credentials-box li {
  padding: 0.625rem 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.credentials-box li:last-child {
  border-bottom: none;
}

.service-area-box p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

/* PROJECTS */
.projects-placeholder {
  margin-top: 2rem;
  padding: 3rem 2rem;
  border-radius: var(--radius);
  background: white;
  border: 2px dashed var(--border);
  text-align: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.projects-placeholder:hover {
  border-color: var(--primary);
  background: var(--panel-alt);
}

/* CONTACT */
.contact-info {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.contact-item:hover {
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-light);
}

.contact-preferred {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.contact-item div {
  flex: 1;
}

.contact-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.contact-item p {
  margin: 0;
  color: var(--text-muted);
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 600;
}

.contact-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.contact-note {
  margin-top: 2rem;
  padding: 1rem;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius-sm);
  text-align: center;
}

.contact-note p {
  margin: 0;
  color: #856404;
  font-size: 0.9rem;
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: white;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

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

@media (max-width: 740px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: var(--shadow-medium);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }

  .nav-links .cta {
    margin-left: 0;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .button {
    width: 100%;
    max-width: 280px;
  }

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

  .contact-info {
    grid-template-columns: 1fr;
  }
}

/* MOTION PREFERENCES */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .projects-placeholder,
  .nav-links a,
  .button,
  .contact-item {
    transition: none;
  }
}