/* ============================================================
   Capt. [Your Name] — Portfolio Styles
   Maritime theme: deep ocean navy + brass/gold accents
   ============================================================ */

:root {
  --navy-900: #0a1a2f;
  --navy-800: #0f2540;
  --navy-700: #143252;
  --navy-600: #1c4066;
  --sea: #2a6f97;
  --sea-light: #61a5c2;
  --brass: #c9a24b;
  --brass-light: #e2c275;
  --sand: #f4f1ea;
  --paper: #ffffff;
  --ink: #12212f;
  --muted: #5c6b7a;
  --line: rgba(18, 33, 47, 0.1);

  --font-display: "Marcellus", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --container: 1160px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(10, 26, 47, 0.12);
  --shadow-sm: 0 6px 20px rgba(10, 26, 47, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--brass);
  color: var(--navy-900);
  box-shadow: 0 10px 24px rgba(201, 162, 75, 0.35);
}
.btn--primary:hover { background: var(--brass-light); }
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255,255,255,0.7); }
.btn--full { width: 100%; }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--paper);
  transition: color 0.3s var(--ease);
}
.nav__brand-mark { color: var(--brass-light); font-size: 1.4rem; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--brass-light); }
.nav__cta {
  padding: 9px 22px;
  border: 1.5px solid var(--brass);
  border-radius: 100px;
  color: var(--brass-light) !important;
}
.nav__cta:hover { background: var(--brass); color: var(--navy-900) !important; }

/* Scrolled state */
.nav.is-scrolled {
  background: rgba(10, 26, 47, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 26px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--paper);
  background:
    linear-gradient(100deg, rgba(10, 26, 47, 0.94) 0%, rgba(10, 26, 47, 0.78) 42%, rgba(10, 26, 47, 0.45) 100%),
    url("IMG_1271.webp") center 35% / cover no-repeat,
    var(--navy-900);
  overflow: hidden;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 85% 90%, rgba(97, 165, 194, 0.18), transparent 70%),
    radial-gradient(50% 40% at 10% 20%, rgba(201, 162, 75, 0.1), transparent 70%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  padding-top: 120px;
  padding-bottom: 90px;
  max-width: 780px;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brass-light);
  margin-bottom: 20px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.02;
  font-weight: 400;
  margin-bottom: 24px;
}
.hero__lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 300;
  max-width: 620px;
  margin-bottom: 38px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}
.hero__badges {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.hero__badge {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 4px;
  height: 8px;
  background: var(--brass-light);
  border-radius: 100px;
  animation: scroll 1.8s var(--ease) infinite;
}
@keyframes scroll {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ===== Sections ===== */
.section { padding: clamp(70px, 10vw, 130px) 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sea);
  margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--navy-900);
  margin-bottom: 16px;
}
.section__sub { color: var(--muted); font-size: 1.08rem; }

/* ===== About ===== */
.about { background: var(--sand); }
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, var(--sea) 0%, var(--navy-800) 100%);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.about__body .section__eyebrow { text-align: left; }
.about__body .section__title { text-align: left; }
.about__text { color: var(--muted); margin-bottom: 20px; font-size: 1.05rem; }
.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--sea);
  line-height: 1;
}
.stat__label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== Services ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card__icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--navy-900);
  margin-bottom: 10px;
}
.card__text { color: var(--muted); font-size: 0.98rem; }

/* ===== Licensing ===== */
.licensing { background: var(--navy-900); color: var(--paper); position: relative; }
.licensing .section__title { color: var(--paper); }
.licensing .section__eyebrow { color: var(--brass-light); }
.licensing .section__sub { color: rgba(255, 255, 255, 0.7); }
.licensing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.license {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 30px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.license:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(201, 162, 75, 0.5);
}
.license__seal {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-900);
  background: radial-gradient(circle at 30% 30%, var(--brass-light), var(--brass));
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 18px rgba(201, 162, 75, 0.3);
}
.license__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 4px;
}
.license__meta {
  font-size: 0.85rem;
  color: var(--brass-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.license__text { color: rgba(255, 255, 255, 0.75); font-size: 0.98rem; }

/* ===== Contact ===== */
.contact { background: var(--sand); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact__info .section__eyebrow,
.contact__info .section__title { text-align: left; }
.contact__text { color: var(--muted); margin-bottom: 30px; font-size: 1.05rem; }
.contact__list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.contact__list li { display: flex; flex-direction: column; gap: 2px; }
.contact__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sea);
  font-weight: 600;
}
.contact__list a, .contact__list span:not(.contact__label) {
  font-size: 1.1rem;
  color: var(--navy-900);
}
.contact__list a:hover { color: var(--sea); }

.contact__form {
  background: var(--paper);
  padding: 38px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
}
.field input, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--sand);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sea);
  background: var(--paper);
}
.contact__note {
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.2em;
}
.contact__note.is-ok { color: #2a8a5c; }
.contact__note.is-err { color: #c0492f; }

/* ===== Footer ===== */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.7); padding: 40px 0; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__brand { font-family: var(--font-display); color: var(--paper); font-size: 1.1rem; }
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s var(--ease);
}
.footer__social:hover { color: var(--brass-light); }
.footer__copy { font-size: 0.9rem; }

/* ===== Reveal-on-scroll ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media { max-width: 380px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .licensing__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 680px) {
  .nav__links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 26, 47, 0.98);
    backdrop-filter: blur(10px);
    padding: 10px 0 24px;
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { width: 100%; padding: 14px 24px; }
  .nav__cta { margin: 12px 24px 0; text-align: center; }
  .nav__toggle { display: flex; }
  .services__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .about__stats { gap: 28px; }
}
