/* ============================================
   Tamarama Technologies
   Global Stylesheet
   ============================================ */

:root {
  --ocean:   #0D3D4F;
  --teal:    #28B8CC;
  --amber:   #F0A030;
  --blue:    #1A8FA8;
  --light:   #EAF7FA;
  --border:  #C0E4EC;
  --text:    #1C2D35;
  --muted:   #5A7A88;
  --white:   #FFFFFF;
  --font:    'Inter', 'Segoe UI', Arial, sans-serif;
  /* Aliases for legacy page-level styles */
  --navy:    var(--ocean);
  --gold:    var(--teal);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Typography ────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { max-width: 68ch; }

/* ── Layout helpers ────────────────────────── */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Navigation ────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--ocean);
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-icon {
  height: 30px;
  width: auto;
  display: block;
  opacity: 0.9;
}

.logo-name {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

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

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  border-bottom-color: var(--teal);
}

.nav-cta {
  background: var(--teal);
  color: var(--ocean) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  font-weight: 700 !important;
  border-bottom: none !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.85; }

.nav-tool {
  border: 1px solid rgba(255,255,255,0.35) !important;
  border-bottom: 1px solid rgba(255,255,255,0.35) !important;
  border-radius: 2px;
  padding: 0.25rem 0.6rem !important;
  color: rgba(255,255,255,0.75) !important;
  transition: border-color 0.2s, color 0.2s !important;
}

.nav-tool:hover {
  border-color: var(--teal) !important;
  color: var(--white) !important;
}

/* ── Page hero (interior pages) ─────────────── */
.page-hero {
  background: var(--ocean);
  padding: 7rem 0 3.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/artwork/banner.png');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  opacity: 0.12;
  pointer-events: none;
}

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

.page-hero .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.page-hero h1 { color: var(--white); }

.page-hero .lead {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 56ch;
}

/* ── CTA strip (ocean bg above footer) ─────── */
.cta-strip {
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/artwork/banner.png');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  opacity: 0.12;
  pointer-events: none;
}

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

/* ── Teal rule ─────────────────────────────── */
.rule { width: 48px; height: 3px; background: var(--teal); margin: 1.25rem 0; }

/* ── Section spacing ───────────────────────── */
.section { padding: 5rem 0; }
.section--light { background: var(--light); }
.section--ocean  { background: var(--ocean); color: var(--white); }

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: 0 6px 24px rgba(13,61,79,0.12);
  transform: translateY(-3px);
}

.card-icon {
  width: 44px; height: 44px;
  background: var(--ocean);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}

.card-icon svg { width: 22px; height: 22px; fill: var(--teal); }

.card h3 { margin-bottom: 0.6rem; color: var(--ocean); }
.card p  { color: var(--muted); font-size: 0.9rem; }

/* ── Reference card ────────────────────────── */
.ref-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  padding: 2rem 1.75rem;
  margin-bottom: 1.5rem;
}

.ref-card .ref-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--light);
  color: var(--ocean);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  font-weight: 600;
}

.tag--blue { background: var(--ocean); color: var(--white); }

/* ── People grid ────────────────────────────── */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.person-card {
  border: 1px solid var(--border);
}

.person-photo {
  background: var(--light);
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.person-photo .initials {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--ocean);
  opacity: 0.2;
  letter-spacing: -0.04em;
}

.person-info { padding: 1.5rem; }
.person-info h3 { color: var(--ocean); margin-bottom: 0.2rem; }
.person-info .title { color: var(--teal); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.75rem; }
.person-info p { color: var(--muted); font-size: 0.9rem; }

/* ── Locations ─────────────────────────────── */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.location-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
}

.location-card .city {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ocean);
  margin-bottom: 0.3rem;
}

.location-card .country {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 1rem;
}

.location-card address {
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Footer ─────────────────────────────────── */
.site-footer {
  background: #071E28;
  color: rgba(255,255,255,0.55);
  padding: 3.5rem 0 2rem;
  font-size: 0.85rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
}

.footer-brand .logo-icon { height: 28px; opacity: 0.7; }

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.65;
  max-width: 26ch;
  color: rgba(255,255,255,0.45);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Hamburger button ───────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

/* Animate to × when open */
.site-header.nav-open .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.nav-open .nav-hamburger span:nth-child(2) {
  opacity: 0;
}
.site-header.nav-open .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1080px) {
  .nav-hamburger { display: flex; }

  .nav-links { display: none; }

  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--ocean);
    padding: 0.5rem 5% 1.25rem;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }

  .site-header.nav-open .nav-links li {
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .site-header.nav-open .nav-links a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: none;
  }

  .site-header.nav-open .nav-links .nav-cta {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.55rem 1.25rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}
