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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fafafa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header / Nav */
header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 1rem 2rem;
}

nav {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  height: 36px;
  width: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
}

nav > ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav > ul > li > a {
  text-decoration: none;
  color: #555;
  transition: color 0.2s;
}

nav > ul > li > a:hover {
  color: #000;
}

nav > ul > li > a.active {
  color: #0f3460;
  font-weight: 600;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  min-width: 180px;
  list-style: none;
  z-index: 100;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #555;
  font-size: 0.9rem;
}

.dropdown-menu li a:hover {
  background: #f5f5f5;
  color: #000;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Main */
main {
  flex: 1;
}

/* Hero */
.hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
}

.hero-alt {
  padding: 3rem 0;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.125rem;
  color: #ccc;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.section h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.lead {
  font-size: 1.125rem;
  color: #555;
  margin-bottom: 2rem;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: #555;
  margin-bottom: 1rem;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #0f3460;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: #1a4a7a;
}

.btn-secondary {
  background: transparent;
  color: #0f3460;
  border: 2px solid #0f3460;
}

.btn-secondary:hover {
  background: #0f3460;
  color: #fff;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin-top: 2rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0f3460;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.form-status.success {
  color: #16a34a;
}

.form-status.error {
  color: #dc2626;
}

/* Sections alternate */
.section-light {
  background: #fff;
}

/* Location layout */
.location-layout {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.location-info {
  flex: 1;
}

.location-info h2 {
  margin-bottom: 1rem;
}

.location-info p {
  color: #555;
  margin-bottom: 0.75rem;
}

.location-info p:last-child {
  margin-bottom: 0;
}

.location-image {
  flex-shrink: 0;
  width: 320px;
  border-radius: 8px;
  overflow: hidden;
}

.location-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 700px) {
  .location-layout {
    flex-direction: column;
  }

  .location-image {
    width: 100%;
  }
}

/* Diagram */
.diagram {
  background: #1a1a2e;
  color: #a5d6ff;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Muted text */
.muted {
  color: #888;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Protocol table */
.proto-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.proto-table th,
.proto-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #e5e5e5;
}

.proto-table th {
  font-weight: 600;
  color: #555;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.proto-table td {
  color: #1a1a1a;
}

.proto-table tr:last-child td {
  border-bottom: none;
}

/* Lists in cards */
.card ul {
  padding-left: 1.25rem;
  color: #555;
}

.card ul li {
  margin-bottom: 0.35rem;
}

/* Team Members */
.member {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.member:last-child {
  margin-bottom: 0;
}

.member-photo {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  background: #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-photo img[src]:not([src=""]) {
  display: block;
}

.member-info {
  flex: 1;
  min-width: 0;
}

.member-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.member-role {
  font-size: 0.875rem;
  color: #0f3460;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.member-info p {
  color: #555;
  margin-bottom: 0.75rem;
}

.member-info p:last-child {
  margin-bottom: 0;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-image {
  height: 160px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e5e5e5;
}

.product-placeholder {
  color: #aaa;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.product-desc {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex: 1;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f3460;
  margin-bottom: 1rem;
}

.product-body .btn {
  align-self: flex-start;
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #555;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: #0f3460;
  color: #0f3460;
}

.filter-btn.active {
  background: #0f3460;
  color: #fff;
  border-color: #0f3460;
}

/* Tutorial grid */
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tutorial-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.tutorial-video {
  aspect-ratio: 16 / 9;
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutorial-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.tutorial-placeholder {
  text-align: center;
  color: #888;
}

.tutorial-placeholder p {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.tutorial-hint {
  font-size: 0.75rem !important;
  color: #666 !important;
}

.tutorial-hint code {
  background: #333;
  color: #a5d6ff;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.75rem;
}

.tutorial-body {
  padding: 1.25rem;
}

.tutorial-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.tutorial-body p {
  color: #555;
  font-size: 0.9rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid #e5e5e5;
  color: #888;
  font-size: 0.875rem;
}
