/* =========================================================
   Moana Capital · Website Styles
   Brand palette derived from logo:
   - Navy:   #0A2540
   - Cyan:   #2BB7D6  (logo accent)
   - Blue:   #1F5C8C  (mid-tone secondary)
   ========================================================= */

:root {
  --navy:          #0A2540;
  --navy-darker:   #061B30;
  --navy-soft:     #1d3461;
  --cyan:          #2BB7D6;
  --cyan-hover:    #1FA0BD;
  --blue:          #1F5C8C;
  --blue-soft:     #5DA8D4;
  --bg:            #ffffff;
  --bg-warm:       #F0F6FA;
  --bg-tint:       #F4F8FB;
  --text:          #1F2937;
  --text-muted:    #4B5563;
  --rule:          #E5E7EB;
  --max-w:         1120px;
  --radius:        10px;
  --shadow-sm:     0 1px 2px rgba(10,37,64,.06);
  --shadow-md:     0 8px 24px rgba(10,37,64,.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--cyan); }

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--text-muted); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .75rem; padding-bottom: .75rem;
}
.brand {
  display: flex; align-items: center; gap: .8rem;
  text-decoration: none; color: var(--navy); font-weight: 800;
}
.brand img { width: auto; height: 44px; object-fit: contain; }
@media (max-width: 480px) {
  .brand img { height: 36px; }
}

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--rule); border-radius: 8px;
  padding: .4rem .65rem; cursor: pointer; color: var(--navy); font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--cyan); }
.nav a.active { color: var(--cyan); }
.nav .btn { font-size: .95rem; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--rule);
    padding: .5rem 1.25rem 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .65rem 0; border-bottom: 1px solid var(--rule); }
  .nav a:last-child { border-bottom: 0; }
  .nav .btn { margin-top: .5rem; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--cyan); color: var(--navy);
  text-decoration: none; font-weight: 700;
  padding: .7rem 1.15rem; border-radius: 8px;
  border: 0; cursor: pointer;
  transition: background .15s ease, transform .05s ease, color .15s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--cyan-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.btn-secondary {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
}
.btn.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn.btn-on-dark {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.6);
}
.btn.btn-on-dark:hover { background: rgba(255,255,255,.10); color: #fff; border-color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 400px at 80% -10%, rgba(43,183,214,.20), transparent 60%),
    radial-gradient(900px 400px at 10% 110%, rgba(31,92,140,.30), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-darker) 100%);
  color: #fff;
  padding: 4.5rem 0 4rem;
}
.hero h1 { color: #fff; }
.hero p.lede { color: #d8e0f0; max-width: 640px; }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero .accent-bar { width: 64px; height: 4px; background: var(--cyan); border-radius: 2px; margin-bottom: 1.25rem; }

/* Hero with logo art on the right */
.hero.hero-split .container {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 2.5rem; align-items: center;
}
.hero.hero-split .hero-art { display: flex; justify-content: center; align-items: center; }
.hero.hero-split .hero-art img {
  width: 100%; max-width: 360px; height: auto;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,.45));
}
@media (max-width: 800px) {
  .hero.hero-split .container { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero.hero-split .hero-art { order: -1; }
  .hero.hero-split .hero-art img { max-width: 220px; }
}

/* ---------- Sections ---------- */
section { padding: 4rem 0; }
section.alt { background: var(--bg-warm); }
section.dark {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-darker) 100%);
  color: #f0f3fa;
}
section.dark h2, section.dark h3 { color: #fff; }
section.dark a { color: var(--cyan); }
section.dark .lede { color: #d8e0f0; }
section.dark .eyebrow { color: var(--cyan); }

.section-head { max-width: 760px; margin-bottom: 2rem; }
.eyebrow { color: var(--cyan); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
section.alt .card { background: #fff; }
.card h3 { margin-top: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(43,183,214,.12); color: var(--cyan);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; margin-bottom: .85rem;
  letter-spacing: 0;
}

/* Portfolio cards: clickable with hover state */
.portfolio-grid .card {
  display: flex; flex-direction: column; justify-content: space-between;
  text-decoration: none; color: var(--navy);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  min-height: 150px;
}
.portfolio-grid .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--cyan);
}
.portfolio-grid .card h3 { margin-bottom: 0; }
.portfolio-grid .card .visit {
  margin-top: 1rem;
  font-size: .9rem; color: var(--cyan); font-weight: 600;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .35rem;
}
.portfolio-grid .card:hover .visit { color: var(--cyan-hover); }
.portfolio-grid .card .visit::after { content: "→"; transition: transform .15s ease; }
.portfolio-grid .card:hover .visit::after { transform: translateX(3px); }

/* For 7 items in 3-col grid: center the orphan 7th card */
.portfolio-grid.cols-3 .card:nth-child(7):last-child {
  grid-column: 1 / -1;
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 900px) {
  .portfolio-grid.cols-3 .card:nth-child(7):last-child {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; margin-top: 1.5rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }
.stat { padding: 1.25rem; border-left: 4px solid var(--cyan); background: #fff; border-radius: 4px; box-shadow: var(--shadow-sm); }
section.dark .stat { background: rgba(255,255,255,.06); border-left-color: var(--cyan); color: #fff; }
.stat .num { font-size: 1.5rem; font-weight: 800; color: var(--navy); display: block; line-height: 1.2; }
section.dark .stat .num { color: var(--cyan); }
.stat .lbl { color: var(--text-muted); }
section.dark .stat .lbl { color: #d8e0f0; }

/* ---------- Contact / form ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }

.contact-info p { color: #d8e0f0; }
.contact-info p strong { color: #fff; }

form {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: grid; gap: 1.1rem;
  box-shadow: var(--shadow-md);
}
.field { display: grid; gap: .35rem; }
.field label {
  font-size: .8rem; font-weight: 600;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em; text-transform: uppercase;
}
.field input, .field textarea {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: .7rem .85rem;
  color: #fff; font: 400 1rem inherit;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan);
  background: rgba(255,255,255,.08);
}
.field textarea { resize: vertical; min-height: 110px; font-family: inherit; }
form button[type="submit"] {
  margin-top: .5rem;
  background: var(--cyan); color: var(--navy);
  border: 0; padding: .85rem 1.5rem;
  border-radius: 8px; font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: background .15s ease;
  justify-self: start;
}
form button[type="submit"]:hover { background: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-darker); color: #c8d1e2;
  padding: 3rem 0 1.5rem;
  font-size: .95rem;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .65rem; }
.site-footer a { color: var(--cyan); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: 2rem; padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  color: #8c98ad;
}

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--rule); margin: 2rem 0; border: 0; }

/* Skip link for accessibility */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; color: var(--navy); padding: .5rem .75rem; border-radius: 6px; z-index: 100; }
