/* ============================================================
   onShore Networks — Site Stylesheet
   Theme: Water / Horizon / "Always on."
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:       #0d2240;
  --navy-mid:   #163460;
  --sky:        #2a6496;
  --horizon:    #4a9bc4;
  --seafoam:    #7ec8c8;
  --gold:       #c8922a;
  --gold-light: #e8b84b;
  --sand:       #f5f0e8;
  --white:      #ffffff;
  --gray-light: #f0f4f8;
  --gray:       #8090a0;
  --text:       #1a2a3a;
  --text-light: #4a5a6a;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Helvetica Neue', sans-serif;

  --max-width: 1200px;
  --nav-height: 72px;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(13,34,64,0.12);
  --shadow-hover: 0 8px 40px rgba(13,34,64,0.20);
  --transition: 0.25s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 400; }
h4 { font-size: 1.1rem; font-weight: 700; font-family: var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--sky); }
p { margin-bottom: 1em; color: var(--text-light); }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); font-weight: 600; }

/* ── Layout Helpers ────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 5rem 0; }
.section--alt { background: var(--gray-light); }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.75); }
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-intro {
  max-width: 680px;
  margin-bottom: 3rem;
}
.text-center { text-align: center; }
.text-center .section-intro { margin-left: auto; margin-right: auto; }

/* ── Navigation ────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(13,34,64,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow var(--transition);
}
.site-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 40px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: var(--radius) !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-sun.jpg');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.03);
  transition: transform 8s ease-out;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(10,22,40,0.80) 0%,
    rgba(10,22,40,0.55) 38%,
    rgba(10,22,40,0.04) 65%,
    rgba(10,22,40,0.00) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}
.hero-text {
  max-width: 500px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s ease forwards;
}
.hero-title {
  color: var(--white);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s ease forwards;
}
.hero-title em {
  font-style: normal;
  color: var(--seafoam);
}
.hero-body {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s ease forwards;
}
.hero-body p { color: rgba(255,255,255,0.82); margin-bottom: 0; }
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s ease forwards;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,146,42,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-mid);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ── Horizon Divider ───────────────────────────────────────── */
.horizon-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -2px;
}
.horizon-divider svg { display: block; width: 100%; }

/* ── Service Cards ─────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--white);
  border: 1px solid rgba(42,100,150,0.12);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--horizon), var(--seafoam));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--navy), var(--sky));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-size: 1.4rem;
}
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}
.service-card p { font-size: 0.95rem; }
.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sky);
  text-transform: uppercase;
}
.service-card .learn-more:hover { color: var(--gold); gap: 0.7rem; }

/* ── Industry Strips ───────────────────────────────────────── */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.industry-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.industry-card:hover {
  border-color: var(--seafoam);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}
.industry-card h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 0.5rem; }
.industry-card p { font-size: 0.9rem; color: var(--text); }
.industry-icon { font-size: 2rem; margin-bottom: 1rem; }

/* ── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ── Testimonial ───────────────────────────────────────────── */
.testimonial {
  background: var(--sand);
  border-left: 4px solid var(--gold);
  padding: 2rem 2.5rem;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text);
  position: relative;
}
.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sky);
  letter-spacing: 0.05em;
}

/* ── Trust Strip ───────────────────────────────────────────── */
.trust-strip {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid rgba(13,34,64,0.1);
  margin-top: 3rem;
}
.trust-strip img { height: 48px; width: auto; opacity: 0.7; transition: opacity var(--transition); }
.trust-strip img:hover { opacity: 1; }
.trust-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}

/* ── Contact Form ──────────────────────────────────────────── */
.contact-form {
  background: var(--white);
  border-radius: 8px;
  padding: 3rem;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(42,100,150,0.25);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--horizon);
  box-shadow: 0 0 0 3px rgba(74,155,196,0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { font-size: 0.9rem; margin-top: 1rem; color: rgba(255,255,255,0.55); }
.footer-logo { height: 38px; width: auto; margin-bottom: 1rem; }
.footer-tagline {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 1rem;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--gold-light); }
.footer-contact { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.9; }
.footer-contact a { color: rgba(255,255,255,0.65); }
.footer-contact a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ── Page Hero (interior pages) ────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--sky) 100%);
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero--alt::after { background: var(--gray-light); }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.15rem; max-width: 600px; }
.page-hero .breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.45); }
.page-hero .breadcrumb a:hover { color: var(--gold-light); }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--navy); padding: 1rem; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.9rem 1.5rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-toggle { display: flex; }
  .hero { min-height: 85vh; }
  .hero-content { grid-template-columns: 1fr; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
