/*
Theme Name: Ocean Freight OS
Theme URI: https://oceanfreightos.com/
Author: Ocean Freight OS
Description: A lightweight, responsive SaaS marketing theme built for Ocean Freight OS.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: ocean-freight-os
*/

:root {
  --ofs-navy: #071a33;
  --ofs-navy-2: #0d2b52;
  --ofs-blue: #1e63ff;
  --ofs-blue-2: #5b8cff;
  --ofs-cyan: #24c7d9;
  --ofs-ink: #10213b;
  --ofs-muted: #60708a;
  --ofs-line: #dfe7f2;
  --ofs-soft: #f5f8fc;
  --ofs-white: #ffffff;
  --ofs-success: #0b8f61;
  --ofs-radius: 20px;
  --ofs-shadow: 0 24px 60px rgba(7, 26, 51, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ofs-ink);
  background: var(--ofs-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.ofs-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.ofs-section { padding: 92px 0; }
.ofs-section--soft { background: var(--ofs-soft); }
.ofs-section--dark { background: var(--ofs-navy); color: var(--ofs-white); }
.ofs-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ofs-blue); font-weight: 800; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase;
}
.ofs-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.ofs-title { margin: 14px 0 18px; font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -.04em; }
.ofs-title-sm { margin: 12px 0 14px; font-size: clamp(30px, 3.5vw, 44px); line-height: 1.08; letter-spacing: -.03em; }
.ofs-lead { color: var(--ofs-muted); font-size: 18px; max-width: 720px; }
.ofs-section--dark .ofs-lead { color: #c5d3e7; }

/* Header */
.ofs-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223,231,242,.8);
}
body.admin-bar .ofs-header { top: 32px; }
.ofs-nav { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.ofs-brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.02em; font-size: 20px; white-space: nowrap; }
.ofs-brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; color: white; font-weight: 900;
  background: linear-gradient(135deg, var(--ofs-blue), var(--ofs-cyan));
  box-shadow: 0 10px 28px rgba(30,99,255,.28);
}
.ofs-menu { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.ofs-menu a { font-size: 15px; font-weight: 700; color: #33445f; }
.ofs-menu a:hover, .ofs-menu a[aria-current="page"] { color: var(--ofs-blue); }
.ofs-actions { display: flex; align-items: center; gap: 12px; }
.ofs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  border: 1px solid transparent; font-weight: 800; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.ofs-btn:hover { transform: translateY(-1px); }
.ofs-btn--primary { background: var(--ofs-blue); color: white; box-shadow: 0 12px 28px rgba(30,99,255,.24); }
.ofs-btn--primary:hover { background: #1659ec; }
.ofs-btn--ghost { border-color: var(--ofs-line); background: white; color: var(--ofs-ink); }
.ofs-btn--light { background: white; color: var(--ofs-navy); }
.ofs-mobile-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--ofs-line); background: #fff; border-radius: 12px; }
.ofs-mobile-toggle span { display: block; width: 20px; height: 2px; background: var(--ofs-navy); margin: 4px auto; }

/* Hero */
.ofs-hero {
  overflow: hidden; position: relative;
  background:
    radial-gradient(circle at 86% 8%, rgba(36,199,217,.18), transparent 32%),
    radial-gradient(circle at 9% 15%, rgba(30,99,255,.12), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
  padding: 90px 0 105px;
}
.ofs-hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 64px; }
.ofs-hero h1 { margin: 16px 0 22px; font-size: clamp(44px, 6vw, 76px); line-height: .98; letter-spacing: -.055em; max-width: 760px; }
.ofs-hero h1 span { color: var(--ofs-blue); }
.ofs-hero p { margin: 0; color: var(--ofs-muted); font-size: 19px; max-width: 680px; }
.ofs-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ofs-proof { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; color: #52647e; font-size: 14px; font-weight: 700; }
.ofs-proof span::before { content: "✓"; color: var(--ofs-success); margin-right: 7px; }

.ofs-dashboard {
  position: relative; background: #fff; border: 1px solid var(--ofs-line); border-radius: 24px;
  box-shadow: var(--ofs-shadow); overflow: hidden; transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}
.ofs-dashboard-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--ofs-line); background: #fbfcfe; }
.ofs-dots { display: flex; gap: 7px; }
.ofs-dot { width: 8px; height: 8px; border-radius: 50%; background: #c7d3e4; }
.ofs-dashboard-body { display: grid; grid-template-columns: 170px 1fr; min-height: 430px; }
.ofs-sidebar { background: var(--ofs-navy); padding: 22px 16px; color: #b9c9df; }
.ofs-side-item { padding: 10px 12px; border-radius: 9px; font-size: 12px; margin-bottom: 6px; }
.ofs-side-item.is-active { background: #163a67; color: white; }
.ofs-screen { padding: 24px; }
.ofs-screen-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.ofs-screen-title { font-weight: 900; font-size: 17px; }
.ofs-pill { font-size: 10px; font-weight: 800; background: #e9f0ff; color: var(--ofs-blue); padding: 7px 9px; border-radius: 999px; }
.ofs-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 18px; }
.ofs-metric { border: 1px solid var(--ofs-line); border-radius: 13px; padding: 14px; }
.ofs-metric b { display: block; font-size: 20px; }
.ofs-metric small { color: var(--ofs-muted); }
.ofs-table { border: 1px solid var(--ofs-line); border-radius: 14px; overflow: hidden; }
.ofs-row { display: grid; grid-template-columns: 1.2fr 1fr .8fr .7fr; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #edf2f7; font-size: 11px; }
.ofs-row:last-child { border-bottom: 0; }
.ofs-row--head { background: #f7f9fc; font-weight: 900; color: #5c6d85; }
.ofs-status { color: var(--ofs-success); font-weight: 800; }

/* Cards */
.ofs-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.ofs-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.ofs-card {
  background: white; border: 1px solid var(--ofs-line); border-radius: var(--ofs-radius); padding: 28px;
  box-shadow: 0 12px 35px rgba(7,26,51,.05);
}
.ofs-card-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #edf3ff; color: var(--ofs-blue); font-weight: 900; margin-bottom: 18px; }
.ofs-card h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.02em; }
.ofs-card p { margin: 0; color: var(--ofs-muted); }
.ofs-card ul { margin: 16px 0 0; padding: 0; list-style: none; color: var(--ofs-muted); }
.ofs-card li { margin: 9px 0; }
.ofs-card li::before { content: "✓"; color: var(--ofs-success); font-weight: 900; margin-right: 8px; }

.ofs-module-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.ofs-module-strip span { padding: 10px 14px; background: white; border: 1px solid var(--ofs-line); border-radius: 999px; font-weight: 800; font-size: 13px; }

.ofs-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.ofs-panel { border: 1px solid var(--ofs-line); background: white; border-radius: 24px; padding: 28px; box-shadow: var(--ofs-shadow); }
.ofs-flow { display: grid; gap: 12px; }
.ofs-flow-item { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--ofs-line); border-radius: 14px; }
.ofs-flow-num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ofs-navy); color: white; font-weight: 900; }
.ofs-flow-item strong { display: block; }
.ofs-flow-item small { color: var(--ofs-muted); }

/* CTA */
.ofs-cta-box {
  border-radius: 28px; padding: 54px; color: white;
  background: linear-gradient(135deg, var(--ofs-navy), #0f3b70 65%, #0d7595);
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  box-shadow: var(--ofs-shadow);
}
.ofs-cta-box h2 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.035em; }
.ofs-cta-box p { margin: 0; color: #c9d8ea; max-width: 650px; }

/* Page hero */
.ofs-page-hero { padding: 82px 0 66px; background: linear-gradient(180deg,#f7faff,#fff); border-bottom: 1px solid var(--ofs-line); }
.ofs-page-hero .ofs-lead { margin-bottom: 0; }

/* Pricing */
.ofs-pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.ofs-price-card { position: relative; background: #fff; border: 1px solid var(--ofs-line); border-radius: 22px; padding: 30px; }
.ofs-price-card.is-featured { border-color: var(--ofs-blue); box-shadow: 0 20px 50px rgba(30,99,255,.14); }
.ofs-badge { position: absolute; top: 18px; right: 18px; background: var(--ofs-blue); color: white; font-size: 11px; font-weight: 900; padding: 7px 10px; border-radius: 999px; }
.ofs-price-card h3 { margin: 0; font-size: 23px; }
.ofs-price { font-size: 34px; font-weight: 900; margin: 16px 0 4px; }
.ofs-price-sub { color: var(--ofs-muted); font-size: 14px; }
.ofs-price-card ul { list-style: none; padding: 0; margin: 22px 0 28px; }
.ofs-price-card li { padding: 8px 0; color: #52647e; }
.ofs-price-card li::before { content:"✓"; color: var(--ofs-success); margin-right: 8px; font-weight: 900; }

/* Forms */
.ofs-form { display: grid; gap: 16px; }
.ofs-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ofs-field label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 7px; }
.ofs-field input, .ofs-field textarea, .ofs-field select {
  width: 100%; border: 1px solid #cfd9e7; border-radius: 12px; padding: 13px 14px; background: white; color: var(--ofs-ink); outline: none;
}
.ofs-field input:focus, .ofs-field textarea:focus, .ofs-field select:focus { border-color: var(--ofs-blue); box-shadow: 0 0 0 3px rgba(30,99,255,.1); }
.ofs-field textarea { min-height: 140px; resize: vertical; }
.ofs-notice { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 700; }
.ofs-notice--success { background: #e9f8f2; color: #087a53; }
.ofs-notice--error { background: #fff1f1; color: #9d2b2b; }
.ofs-hp { position: absolute !important; left: -9999px !important; }

/* Footer */
.ofs-footer { background: #06162b; color: white; padding: 70px 0 28px; }
.ofs-footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 34px; }
.ofs-footer p, .ofs-footer a { color: #aebfd5; }
.ofs-footer h4 { margin: 0 0 14px; }
.ofs-footer-links { display: grid; gap: 9px; }
.ofs-footer-bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; color: #8194ad; font-size: 13px; }

/* Legal */
.ofs-content { max-width: 820px; }
.ofs-content h2 { margin-top: 34px; }
.ofs-content p, .ofs-content li { color: var(--ofs-muted); }

@media (max-width: 980px) {
  body.admin-bar .ofs-header { top: 46px; }
  .ofs-menu, .ofs-actions .ofs-btn--ghost { display: none; }
  .ofs-mobile-toggle { display: block; }
  .ofs-header.is-open .ofs-menu {
    display: flex; position: absolute; top: 78px; left: 0; right: 0; background: white; flex-direction: column; align-items: stretch; padding: 18px 22px 24px; border-bottom: 1px solid var(--ofs-line); box-shadow: 0 18px 40px rgba(7,26,51,.1);
  }
  .ofs-hero-grid, .ofs-split { grid-template-columns: 1fr; }
  .ofs-dashboard { transform: none; }
  .ofs-grid-3, .ofs-pricing { grid-template-columns: 1fr 1fr; }
  .ofs-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .ofs-container { width: min(100% - 28px, 1180px); }
  .ofs-section { padding: 68px 0; }
  .ofs-nav { height: 70px; }
  .ofs-header.is-open .ofs-menu { top: 70px; }
  .ofs-brand { font-size: 17px; }
  .ofs-brand-mark { width: 34px; height: 34px; }
  .ofs-actions > .ofs-btn--primary { display: none; }
  .ofs-hero { padding: 64px 0 74px; }
  .ofs-hero h1 { font-size: clamp(40px, 13vw, 58px); }
  .ofs-grid-3, .ofs-grid-2, .ofs-pricing, .ofs-form-row { grid-template-columns: 1fr; }
  .ofs-dashboard-body { grid-template-columns: 1fr; }
  .ofs-sidebar { display: none; }
  .ofs-metrics { grid-template-columns: 1fr; }
  .ofs-row { grid-template-columns: 1.2fr 1fr .8fr; }
  .ofs-row > :last-child { display: none; }
  .ofs-cta-box { padding: 34px 26px; flex-direction: column; align-items: flex-start; }
  .ofs-footer-grid { grid-template-columns: 1fr; }
  .ofs-footer-bottom { flex-direction: column; }
}
