/* ==========================================================================
   Tsunami.ca - Site Stylesheet
   ========================================================================== */

/* --- Font Faces --- */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cinzel-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/cinzel-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/jost-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jost-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jost-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/jost-latin-700-normal.woff2') format('woff2');
}

/* --- Design Tokens --- */
:root {
  --navy: #1B2A4A;
  --navy-deep: #0F1A2E;
  --navy-light: #2A3F6A;
  --amber: #C8963E;
  --amber-light: #D4AD5E;
  --amber-dark: #A67A2E;
  --warm-white: #F5F3EF;
  --white: #FFFFFF;
  --gray-100: #E8E6E1;
  --gray-200: #D1CFC9;
  --gray-500: #7A7770;
  --gray-700: #4A4843;

  --font-heading: 'Cinzel', 'Georgia', serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;

  --max-width: 1120px;
  --nav-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--navy);
  background: var(--warm-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--amber); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.6em; }
h3 { font-size: 1.25rem; margin-bottom: 0.4em; }

p + p { margin-top: 1em; }

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

.section {
  padding: 5rem 0;
}

.section--navy {
  background: var(--navy);
  color: var(--warm-white);
}

.section--navy a { color: var(--amber-light); }
.section--navy a:hover { color: var(--amber); }

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

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  height: var(--nav-height);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2.2rem;
}

.site-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--amber-dark);
  border-bottom-color: var(--amber);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

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

/* --- Hero --- */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--warm-white);
  padding: 6rem 0 5rem;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/NaticalChartPacificOceanfinal.png') center / cover no-repeat;
  opacity: 0.35;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  max-width: 720px;
}

.hero .lead {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.8;
  max-width: 600px;
  opacity: 0.9;
}

.hero .accent-line {
  width: 60px;
  height: 3px;
  background: var(--amber);
  margin: 1.5rem 0;
}

/* --- Page Header (non-home pages) --- */
.page-header {
  background: var(--navy);
  color: var(--warm-white);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/NaticalChartPacificOceanfinal.png') center / cover no-repeat;
  opacity: 0.35;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
}

.page-header .subtitle {
  font-weight: 300;
  font-size: 1.05rem;
  opacity: 0.8;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 4px;
  padding: 2rem;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(27, 42, 74, 0.08);
}

.card h3 {
  font-family: var(--font-heading);
  color: var(--navy);
}

.card p {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* --- Icon accent for cards --- */
.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.85;
}

/* --- Team Roles --- */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.role-card {
  background: var(--white);
  border-left: 3px solid var(--amber);
  padding: 1.5rem 1.5rem 1.5rem 1.8rem;
}

.role-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.role-card p {
  font-size: 0.9rem;
  color: var(--gray-700);
}

/* --- Client Logos / List --- */
.client-group {
  margin-bottom: 3rem;
}

.client-group h2 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--amber);
  display: inline-block;
}

.client-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.client-list li {
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  padding: 0.8rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 3px;
}

.client-list li .client-sector {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--gray-500);
  margin-top: 0.15rem;
}

/* --- Products / SD-Core Feature Section --- */
.feature-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.feature-highlight--reverse {
  direction: rtl;
}

.feature-highlight--reverse > * {
  direction: ltr;
}

.feature-list {
  list-style: none;
  margin-top: 1rem;
}

.feature-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.6rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(0.5rem + 0.65em);
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
}

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

.contact-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  margin-top: 1.8rem;
}

.contact-info h3:first-child {
  margin-top: 0;
}

.contact-info p {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.7;
}

.contact-info a {
  font-weight: 500;
}

.contact-aside {
  background: var(--navy);
  color: var(--warm-white);
  padding: 2.5rem;
  border-radius: 4px;
}

.contact-aside h3 {
  font-family: var(--font-heading);
  margin-bottom: 0.8rem;
}

.contact-aside p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.7;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-deep);
  color: var(--warm-white);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

.footer-text {
  font-size: 0.85rem;
  opacity: 0.6;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--warm-white);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-nav a:hover { opacity: 1; }

/* --- Utility --- */
.text-amber { color: var(--amber); }
.text-light { color: var(--gray-500); }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root { --nav-height: 60px; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0;
    border-bottom: none;
  }

  .hero { padding: 4rem 0 3.5rem; min-height: auto; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 3.5rem 0; }
  .page-header { padding: 2.5rem 0 2rem; }
  .page-header h1 { font-size: 1.8rem; }

  .feature-highlight,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-highlight--reverse { direction: ltr; }

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

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
