/* ===== CSS Custom Properties ===== */
:root {
  --navy: #1e2a3a;
  --navy-light: #2c3e55;
  --gold: #c8a84e;
  --gold-light: #e0c76a;
  --teal: #3a7ca5;
  --teal-light: #5a9cc5;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --gray-light: #e8eaed;
  --gray: #6b7280;
  --text: #1e2a3a;
  --text-light: #4b5563;
  --shadow: 0 2px 8px rgba(30, 42, 58, 0.1);
  --shadow-lg: 0 8px 30px rgba(30, 42, 58, 0.12);
  --radius: 8px;
  --max-width: 1100px;
  --transition: 0.3s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--teal-light);
}

/* ===== Header / Nav ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
}

.logo-link img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1.2;
}

.logo-text span {
  color: var(--gold);
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--off-white);
  color: var(--teal);
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-logo {
  width: 160px;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}

.hero-cta:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
}

/* ===== Page Header (non-home pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 3rem 1.5rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

/* ===== Content Sections ===== */
.section {
  padding: 4rem 1.5rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-alt {
  background: var(--off-white);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  color: var(--text-light);
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.gold-bar {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

/* ===== Feature Cards (Home) ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== About Page Content ===== */
.about-content {
  max-width: 780px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Product card */
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  transition: box-shadow var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
}

.product-card h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.product-card h3 a {
  color: var(--teal);
}

.product-card h3 a:hover {
  color: var(--teal-light);
}

.product-card p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.product-card p:last-child {
  margin-bottom: 0;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
}

.product-link:hover {
  color: var(--teal-light);
}

.product-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform var(--transition);
}

.product-link:hover svg {
  transform: translateX(3px);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-top: auto;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-inner p {
  margin-bottom: 0.5rem;
}

.footer-inner a {
  color: var(--gold);
}

.footer-inner a:hover {
  color: var(--gold-light);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-light);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 3.5rem 1.5rem;
  }

  .hero-logo {
    width: 120px;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .section {
    padding: 3rem 1.25rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .page-header {
    padding: 2.25rem 1.25rem;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .logo-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    height: 60px;
  }

  .logo-link img {
    height: 38px;
  }

  .logo-text {
    font-size: 0.9rem;
  }

  .hero {
    padding: 2.5rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .section {
    padding: 2.5rem 1rem;
  }
}
