/* Beluga POS — corporate site styles */

:root {
  --navy: #0B2545;
  --deep-blue: #13315C;
  --teal: #00B4D8;
  --light-teal: #90E0EF;
  --ice: #CAF0F8;
  --white: #FFFFFF;
  --bg: #F5F8FA;
  --text: #1B263B;
  --muted: #5C6B7A;
  --border: #E1E8ED;
  --success: #2A9D8F;
  --danger: #D64550;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 37, 69, 0.14);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 16px; color: var(--navy); }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 16px; color: var(--muted); }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--white); padding: 8px 16px; z-index: 200;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: #00a0c2; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,180,216,.35); }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: var(--deep-blue); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; }
.brand-mark img { display: block; }
.brand-word { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.brand-word-dark { color: var(--white); }
.brand-word-accent { color: var(--teal); }

.main-nav { display: flex; align-items: center; gap: 26px; margin-left: 12px; flex: 1; }
.main-nav a { color: var(--text); font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--teal); text-decoration: none; }
.main-nav a.active { color: var(--teal); }
.header-cta { display: flex; align-items: center; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--navy); border-radius: 2px; }

/* Hero */
.hero {
  background: radial-gradient(circle at 80% 20%, rgba(0,180,216,0.18), transparent 55%), var(--navy);
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 30px;
  width: 560px;
  height: 560px;
  background: url('/assets/img/logo-watermark.png') no-repeat center / contain;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}
/* Compact heroes (subpages without the two-column layout) are much shorter,
   so the watermark needs to scale down to match or it overflows the box. */
.hero.hero-compact::before {
  width: 320px;
  height: 320px;
  right: 20px;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.hero .eyebrow {
  display: inline-block; background: rgba(0,180,216,0.15); color: var(--light-teal);
  padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 { color: var(--white); }
.hero p.lead { color: rgba(255,255,255,0.82); font-size: 1.15rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.6rem; color: var(--white); }
.hero-stats div span { color: rgba(255,255,255,0.7); font-size: 0.85rem; }

.hero-art { display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 640px; height: auto; }

/* Feature showcase rows (features.php, driven by the admin Features CMS) */
.showcase-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 88px; }
.showcase-row:last-child { margin-bottom: 0; }
.showcase-row.reverse .showcase-art { order: -1; }
.showcase-row.no-art { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.showcase-row.no-art .showcase-text ul { display: inline-block; text-align: left; }
.showcase-tag { color: var(--teal); font-weight: 700; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.05em; }
.showcase-text ul { list-style: none; padding: 0; margin: 18px 0 0; }
.showcase-text ul li { padding: 6px 0; font-size: 0.92rem; color: var(--text); display: flex; gap: 10px; }
.showcase-text ul li::before { content: "✓"; color: var(--teal); font-weight: 800; }

.screenshot-frame {
  background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.screenshot-frame img { display: block; width: 100%; height: auto; }

@media (max-width: 860px) {
  .showcase-row { grid-template-columns: 1fr; margin-bottom: 56px; }
  .showcase-row.reverse .showcase-art { order: 0; }
}

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow-sm { color: var(--teal); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }
.bg-light { background: var(--bg); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.75); }

/* Grids & cards */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon-badge {
  width: 48px; height: 48px; border-radius: 12px; background: var(--ice);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 1.4rem;
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; }

.feature-detail {
  display: grid; grid-template-columns: 60px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--border);
}
.feature-detail:last-child { border-bottom: none; }
.feature-detail .icon-badge { width: 52px; height: 52px; border-radius: 12px; background: var(--ice); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }

/* Logo / trust strip */
.trust-strip { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; opacity: 0.7; padding: 28px 0; }
.trust-strip span { font-weight: 700; color: var(--muted); letter-spacing: 0.03em; }

/* Industries */
.industry-card { position: relative; border-radius: var(--radius); overflow: hidden; padding: 32px; color: var(--white); min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow); }
.industry-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--navy), var(--deep-blue)); z-index: 0; }
.industry-card > * { position: relative; z-index: 1; }
.industry-card h3 { color: var(--white); margin-bottom: 6px; }
.industry-card p { color: rgba(255,255,255,0.8); margin-bottom: 0; font-size: 0.92rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.price-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--teal); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.price-card .tag { align-self: flex-start; background: var(--teal); color: var(--white); font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; text-transform: uppercase; }
.price-amount { font-size: 2.6rem; font-weight: 800; color: var(--navy); margin: 6px 0 2px; }
.price-amount span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 24px 0; flex: 1; }
.price-card li { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; display: flex; gap: 10px; }
.price-card li:last-child { border-bottom: none; }
.price-card li::before { content: "✓"; color: var(--teal); font-weight: 800; }

/* Testimonials */
.testimonial-card { background: var(--white); border-left: 4px solid var(--teal); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.testimonial-card p.quote { color: var(--text); font-size: 1.05rem; font-style: italic; }
.testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ice); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--deep-blue); }
.testimonial-person strong { display: block; color: var(--navy); }
.testimonial-person span { font-size: 0.85rem; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--deep-blue)); color: var(--white); border-radius: var(--radius); padding: 56px; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-grid strong { display: block; font-size: 2.2rem; color: var(--navy); font-weight: 800; }
.stat-grid span { color: var(--muted); font-size: 0.9rem; }

/* Values / about */
.value-card { text-align: center; padding: 20px; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post-card .post-thumb { height: 150px; background: linear-gradient(135deg, var(--navy), var(--teal)); }
.post-card .post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card .post-meta { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px; }
.post-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.post-card p { flex: 1; }
.post-card .read-more { font-weight: 700; }

.post-single { max-width: 760px; margin: 0 auto; }
.post-single .post-hero-meta { color: var(--muted); margin-bottom: 8px; }
.post-single .post-content p { color: var(--text); font-size: 1.05rem; }
.post-single .post-content { margin-top: 32px; }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; color: var(--navy); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 0.95rem; color: var(--text); background: var(--white);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 22px; font-size: 0.92rem; }
.alert-success { background: #E5F6F1; color: #1B6E5B; border: 1px solid #BFE9DC; }
.alert-error { background: #FCEBEC; color: #A22233; border: 1px solid #F4C6CB; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer-brand p { color: rgba(255,255,255,0.6); max-width: 280px; margin-top: 12px; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero::before { width: 420px; height: 420px; right: 10px; }
  .hero.hero-compact::before { width: 260px; height: 260px; right: 10px; }
  .grid-4, .grid-3, .pricing-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav, .header-cta { display: none; }
  .main-nav.open { display: flex; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px 24px; border-bottom: 1px solid var(--border); gap: 16px; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4, .pricing-grid, .post-grid, .form-grid-2 { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 60px 0; }
  .hero { padding: 60px 0 70px; }
  .hero::before { width: 240px; height: 240px; right: 10px; top: 14px; transform: none; }
  .hero.hero-compact::before { width: 180px; height: 180px; right: 10px; top: 12px; }
  .cta-band { padding: 40px 24px; }
}
