/* =========================================================
   AtlanticPacifica, Inc. — Shared Stylesheet
   ========================================================= */

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

:root {
  --navy:  #0D2140;
  --blue:  #1B4F8A;
  --sky:   #2E7BC4;
  --gold:  #C8922A;
  --light: #F4F7FB;
  --white: #FFFFFF;
  --text:  #1A2535;
  --muted: #5B6E88;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
}

/* ─── TYPOGRAPHY ─── */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700; line-height: 1.1;
  color: var(--white); margin-bottom: 24px;
}
h1 em { color: var(--gold); font-style: normal; }

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3.5vw, 46px); font-weight: 700;
  color: var(--navy); line-height: 1.15; margin-bottom: 20px;
}

h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; color: var(--navy); margin-bottom: 14px;
}

.section-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--sky); margin-bottom: 16px;
}

.section-lead {
  font-size: 17px; line-height: 1.8; color: var(--muted); max-width: 620px;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 76px;
  background: rgba(13, 33, 64, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-logo {
  display: flex; align-items: center; gap: 4px; text-decoration: none;
}
.nav-logo svg { width: 38px; height: 48px; flex-shrink: 0; }
.nav-divider {
  width: 1.5px; height: 36px;
  background: rgba(255,255,255,0.28);
  margin: 0 10px;
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.nav-logo-text span:first-child {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700;
  color: var(--white); letter-spacing: 0.5px;
}
.nav-logo-text span:last-child {
  font-size: 10px; font-weight: 400;
  color: var(--gold); letter-spacing: 2px; text-transform: uppercase;
}

.nav-links {
  display: flex; gap: 32px; list-style: none; align-items: center;
}
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.5px;
  color: rgba(255,255,255,0.72); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a.nav-cta {
  background: var(--gold); color: var(--navy) !important;
  padding: 9px 22px; border-radius: 4px;
  font-weight: 600; transition: background 0.2s;
}
.nav-links a.nav-cta:hover { background: #e0a53a; }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--gold); color: var(--navy);
  padding: 14px 32px; border-radius: 4px;
  font-weight: 600; font-size: 15px;
  text-decoration: none; display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #e0a53a; transform: translateY(-1px); }

.btn-outline {
  border: 2px solid rgba(255,255,255,0.5); color: var(--white);
  padding: 14px 32px; border-radius: 4px;
  font-weight: 500; font-size: 15px;
  text-decoration: none; display: inline-block;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

.btn-navy {
  background: var(--navy); color: var(--white);
  padding: 13px 30px; border-radius: 4px;
  font-weight: 600; font-size: 15px;
  text-decoration: none; display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-navy:hover { background: var(--blue); transform: translateY(-1px); }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 130px 5% 70px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 100%);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  width: min(280px, 30vw); height: min(350px, 38vw);
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 280 350' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='140,15 55,130 95,130 40,205 80,205 35,280 140,280 245,280 200,205 240,205 185,130 225,130' fill='white' opacity='0.06'/%3E%3Crect x='124' y='280' width='32' height='52' rx='3' fill='white' opacity='0.05'/%3E%3C/svg%3E") no-repeat center/contain;
}
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.page-hero-eyebrow::before {
  content: ''; display: block; width: 24px; height: 2px; background: var(--gold);
}
.page-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  max-width: 640px;
}
.page-hero p {
  font-size: 17px; line-height: 1.75;
  color: rgba(255,255,255,0.72);
  max-width: 560px; margin-top: 18px;
}

/* ─── SECTIONS ─── */
section { padding: 90px 5%; }
.section-intro { margin-bottom: 56px; }

/* ─── CARDS ─── */
.card-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.card-grid-2 {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.card {
  border: 1px solid #e0e8f2; border-radius: 10px;
  padding: 36px 30px;
  transition: box-shadow 0.25s, transform 0.2s, border-color 0.25s;
  position: relative; overflow: hidden;
  background: var(--white);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--sky), var(--gold));
  opacity: 0; transition: opacity 0.25s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(13,33,64,0.10);
  transform: translateY(-4px); border-color: #c8d8ec;
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { font-size: 14px; line-height: 1.8; color: var(--muted); }

/* ─── DARK SECTION ─── */
.section-dark {
  background: var(--navy);
  position: relative; overflow: hidden;
}
.section-dark .section-tag { color: var(--gold); }
.section-dark h2 { color: var(--white); }
.section-dark .section-lead { color: rgba(255,255,255,0.62); }

/* ─── CTA BAND ─── */
.cta-band {
  background: var(--gold);
  padding: 70px 5%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-band h2 {
  color: var(--navy); margin-bottom: 8px; font-size: clamp(24px, 3vw, 38px);
}
.cta-band p { color: rgba(13,33,64,0.7); font-size: 16px; max-width: 520px; }
.btn-cta-white {
  background: var(--navy); color: var(--white);
  padding: 15px 34px; border-radius: 4px;
  font-weight: 600; font-size: 15px;
  text-decoration: none; white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.btn-cta-white:hover { background: var(--blue); transform: translateY(-1px); }

/* ─── FOOTER ─── */
footer {
  background: var(--navy); color: rgba(255,255,255,0.55);
  padding: 60px 5% 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}
.footer-brand p {
  font-size: 14px; line-height: 1.8; max-width: 300px; margin-top: 16px;
}
.footer-logo {
  display: inline-flex; align-items: center; text-decoration: none;
}
.footer-col h5 {
  font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--white); margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  font-size: 14px; color: rgba(255,255,255,0.5); text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-addr {
  font-size: 13px; color: rgba(255,255,255,0.38); line-height: 1.7;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
.footer-bottom a {
  color: rgba(255,255,255,0.4); text-decoration: none; margin-left: 20px;
}
.footer-bottom a:hover { color: var(--gold); }

/* ─── FORM ─── */
.form-group { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
  font-size: 12px; font-weight: 600; color: var(--navy);
  letter-spacing: 0.5px; display: block; margin-bottom: 7px;
}
input, textarea, select {
  width: 100%; padding: 12px 16px; border-radius: 6px;
  border: 1.5px solid #dde7f2; background: var(--light);
  font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text);
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--sky); background: var(--white);
}
textarea { resize: vertical; min-height: 130px; }
.form-submit {
  background: var(--navy); color: var(--white);
  border: none; padding: 14px 32px; border-radius: 6px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
}
.form-submit:hover { background: var(--blue); transform: translateY(-1px); }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .card-grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; }
}
