/*
Theme Name: RO Design Library
Theme URI: https://rodesignlibrary.com
Author: RO Design Library
Author URI: https://rodesignlibrary.com
Description: Expert Reverse Osmosis Engineering – Design Library WordPress Theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ro-design-library
Tags: engineering, library, professional, dark
*/

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

:root {
  --navy: #0b1f3a;
  --teal: #0f7b8c;
  --teal-light: #1aabb8;
  --gold: #c8972b;
  --gold-light: #f0c060;
  --white: #f7f9fb;
  --gray-100: #eef1f5;
  --gray-200: #d0d8e4;
  --gray-500: #7a8a99;
  --gray-700: #3a4a5a;
  --free-badge: #1e8c4a;
  --paid-badge: #c8401a;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(11,31,58,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--navy); }

/* ── NAV ── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
nav.main-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 80px;
  max-width: 1400px; margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo-circle {
  width: 56px; height: 56px; background: #c8234a; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-logo-circle span {
  font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700;
  color: #fff; line-height: 1; letter-spacing: -0.02em;
}
.nav-logo-text { display: flex; align-items: baseline; gap: 0; line-height: 1; }
.nav-logo-text .ro { font-family: 'DM Sans', sans-serif; font-size: 1.72rem; font-weight: 800; color: #c8234a; letter-spacing: -0.01em; }
.nav-logo-text .design-lib { font-family: 'DM Sans', sans-serif; font-size: 1.72rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: #c8d8e8; font-size: 0.88rem; font-weight: 500; padding: 8px 14px;
  border-radius: 6px; text-decoration: none; transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--navy); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); min-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28); overflow: hidden; z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 10px 18px; color: #b0c4d8; font-size: 0.85rem; }
.nav-dropdown-menu a:hover { background: var(--teal); color: #fff; border-radius: 0; }
.nav-cta { background: var(--gold) !important; color: var(--navy) !important; font-weight: 600 !important; padding: 8px 18px !important; border-radius: 6px !important; }
.nav-cta:hover { background: var(--gold-light) !important; }

/* ── HERO ── */
.hero {
  background: linear-gradient(120deg, var(--navy) 55%, #0e3355 100%);
  min-height: 540px; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg-pattern {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 0, transparent 50%);
  background-size: 28px 28px;
}
.hero-accent {
  position: absolute; right: -60px; top: -60px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(15,123,140,0.22) 0%, transparent 70%);
}
.hero-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 60px 40px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.hero-content { flex: 1; min-width: 280px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(15,123,140,0.25); border: 1px solid var(--teal);
  color: var(--teal-light); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 6px 14px; border-radius: 20px; text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 {
  font-family: 'Playfair Display', serif; font-size: 3rem; color: #fff;
  line-height: 1.18; max-width: 640px; margin-bottom: 20px;
}
.hero h1 em { color: var(--teal-light); font-style: normal; }
.hero p { color: #a8c0d6; font-size: 1.05rem; max-width: 520px; line-height: 1.7; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--teal); color: #fff; font-size: 0.92rem; font-weight: 600;
  padding: 13px 28px; border-radius: 8px; text-decoration: none;
  border: none; cursor: pointer; transition: background 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-1px); color: #fff; }
.btn-outline {
  background: transparent; color: #fff; font-size: 0.92rem; font-weight: 600;
  padding: 13px 28px; border-radius: 8px; text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.3); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.hero-stats { display: flex; gap: 40px; margin-top: 52px; flex-wrap: wrap; }
.hero-stat .num { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--gold); }
.hero-stat .lbl { color: #7a9ab8; font-size: 0.8rem; letter-spacing: 0.04em; }

/* Hero Gallery Panel */
.hero-gallery-panel {
  position: relative; width: 360px; height: 288px;
  border-radius: 14px; overflow: hidden;
  border: 1.5px solid rgba(15,123,140,0.35);
  background: rgba(6,15,28,0.7);
  box-shadow: 0 0 60px rgba(15,123,140,0.15), 0 0 0 1px rgba(15,123,140,0.08);
  flex-shrink: 0;
}
.hero-gallery-panel::before {
  content:''; position:absolute; top:0; left:0; width:28px; height:28px;
  border-top:2px solid var(--teal-light); border-left:2px solid var(--teal-light);
  z-index:10; border-radius:14px 0 0 0; pointer-events:none;
}
.hero-gallery-panel::after {
  content:''; position:absolute; bottom:0; right:0; width:28px; height:28px;
  border-bottom:2px solid var(--gold); border-right:2px solid var(--gold);
  z-index:10; pointer-events:none;
}
.hg-label {
  position:absolute; top:14px; left:14px; z-index:15;
  background: rgba(6,15,28,0.85); border: 1px solid rgba(15,123,140,0.4);
  padding:5px 12px; border-radius:20px;
  font-size:0.72rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--teal-light); display:flex; align-items:center; gap:7px;
}
.hg-dot {
  width:7px; height:7px; border-radius:50%; background:var(--gold);
  animation: hgpulse 1.6s ease infinite;
}
@keyframes hgpulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.65)} }
.hg-slides { position:absolute; inset:0; }
.hg-slide { position:absolute; inset:0; opacity:0; filter:blur(10px); transition: opacity 1.4s ease-in-out, filter 1.4s ease-in-out; }
.hg-slide.active { opacity:1; filter:blur(0); }
.hg-slide-placeholder {
  width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px;
  font-size:0.78rem; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; color:rgba(120,160,200,0.7);
}
.hg-slide-caption {
  position:absolute; bottom:0; left:0; right:0;
  background: linear-gradient(to top, rgba(6,15,28,0.96) 0%, rgba(6,15,28,0.4) 55%, transparent 100%);
  padding:44px 18px 14px; font-size:0.72rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--teal-light);
}
.hg-dots { position:absolute; bottom:16px; right:16px; z-index:15; display:flex; gap:5px; align-items:center; }
.hg-nav-dot { width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,0.22); border:none; cursor:pointer; transition:all 0.35s; padding:0; }
.hg-nav-dot.active { background:var(--teal-light); width:20px; border-radius:3px; }
.hg-progress { position:absolute; bottom:0; left:0; height:3px; background:var(--teal); width:0%; box-shadow:0 0 8px var(--teal); z-index:15; }

/* ── EARLY SUBSCRIBER BANNER ── */
.early-sub-bar {
  background: linear-gradient(90deg, #0a1a0f 0%, #0d2015 35%, #061a0a 100%);
  border-top: 2px solid #1a7a35; border-bottom: 1px solid rgba(26,122,53,0.3);
  overflow: hidden; position: relative;
}
.early-sub-inner { display: flex; align-items: stretch; max-width: 1300px; margin: 0 auto; }
.early-sub-badge {
  background: #1a7a35; color: #fff;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 14px 20px; display:flex; align-items:center; gap:8px; white-space:nowrap; flex-shrink:0;
}
.early-sub-content { flex:1; display:flex; align-items:center; gap:28px; padding:12px 24px; flex-wrap:wrap; }
.early-sub-text { font-size:0.9rem; font-weight:600; color:#c8f0d4; line-height:1.5; }
.early-sub-text strong { color:#4ade80; }
.sub-count-box { background:rgba(26,122,53,0.25); border:1px solid rgba(74,222,128,0.3); border-radius:8px; padding:8px 16px; text-align:center; }
.sub-count-num { font-family:'Playfair Display',serif; font-size:1.6rem; font-weight:700; color:#4ade80; line-height:1; }
.sub-count-lbl { font-size:0.65rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:#6bbd8a; margin-top:2px; }
.early-sub-btn {
  background:#1a7a35; color:#fff; font-size:0.82rem; font-weight:800; letter-spacing:0.06em; text-transform:uppercase;
  padding:10px 22px; border-radius:6px; border:none; cursor:pointer; text-decoration:none; white-space:nowrap;
  transition:background 0.2s; display:inline-flex; align-items:center; gap:8px; flex-shrink:0;
}
.early-sub-btn:hover { background:#22a044; }

/* ── WORD-BY-WORD BANNER ── */
.wbw-bar {
  background: var(--navy); border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07); padding: 16px 40px;
  overflow: hidden; position: relative;
}
.wbw-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 20px; }
#wbwStage {
  flex:1; font-family:'Playfair Display',serif; font-size:1.1rem; font-weight:600; color:#8aaccc;
  display:flex; flex-wrap:wrap; gap:8px; align-items:center; min-height:38px;
}
.wbw-word { opacity:0; transform:translateY(8px); transition:opacity 0.32s, transform 0.32s; }
.wbw-word.visible { opacity:1; transform:translateY(0); }
.wbw-word.em { color:var(--teal-light); }
.wbw-cursor { display:inline-block; width:2px; height:1.1em; background:var(--teal-light); border-radius:1px; vertical-align:middle; animation:blink 0.7s step-end infinite; margin-left:2px; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.wbw-pips { display:flex; gap:5px; flex-shrink:0; }
.wbw-pip { width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,0.15); transition:all 0.3s; }
.wbw-pip.on { background:var(--teal-light); width:18px; border-radius:3px; }
.yt-pill {
  display:inline-flex; align-items:center; gap:6px;
  background:#c00; color:#fff; padding:4px 10px; border-radius:12px; font-size:0.78rem; font-weight:700;
  font-family:'DM Sans',sans-serif; cursor:pointer;
}
.yt-pill svg { width:14px; height:14px; fill:#fff; }

/* ── SECTION COMMON ── */
.site-content section { padding: 72px 40px; max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 10px;
}
h2.section-title { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--navy); margin-bottom: 12px; }
.section-sub { color: var(--gray-500); font-size: 0.97rem; line-height: 1.65; max-width: 560px; margin-bottom: 42px; }

/* ── LIBRARY TABS ── */
.library-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--gray-200); margin-bottom: 36px; }
.tab-btn {
  padding: 12px 26px; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  border: none; background: none; color: var(--gray-500);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.tab-btn.active { color: var(--teal); border-bottom-color: var(--teal); }
.tab-btn:hover { color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── FILTER BAR ── */
.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.filter-btn {
  padding: 7px 18px; border-radius: 20px; font-size: 0.83rem; font-weight: 600;
  border: 1.5px solid var(--gray-200); background: #fff; cursor: pointer; transition: all 0.18s;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--teal); color: var(--teal); background: rgba(15,123,140,0.06); }
.filter-btn.free-active { border-color: var(--free-badge); color: var(--free-badge); background: rgba(30,140,74,0.06); }
.filter-btn.paid-active { border-color: var(--paid-badge); color: var(--paid-badge); background: rgba(200,64,26,0.06); }
.search-input {
  margin-left: auto; padding: 8px 16px; border-radius: 8px;
  border: 1.5px solid var(--gray-200); font-size: 0.85rem; font-family: inherit;
  outline: none; width: 220px; transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--teal); }

/* ── DOCUMENT CARDS ── */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.doc-card {
  background: #fff; border-radius: var(--radius); border: 1.5px solid var(--gray-200);
  padding: 22px 24px; transition: box-shadow 0.2s, border-color 0.2s;
  display: flex; flex-direction: column; gap: 12px; position: relative;
}
.doc-card:hover { box-shadow: var(--shadow); border-color: var(--teal); }
.doc-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.doc-icon { width: 44px; height: 44px; background: var(--gray-100); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-icon svg { width: 24px; height: 24px; }
.badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 12px; }
.badge-free { background: rgba(30,140,74,0.12); color: var(--free-badge); }
.badge-paid { background: rgba(200,64,26,0.12); color: var(--paid-badge); }
.doc-title { font-size: 0.97rem; font-weight: 600; color: var(--navy); line-height: 1.4; }
.doc-desc { font-size: 0.82rem; color: var(--gray-500); line-height: 1.55; flex: 1; }
.doc-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: var(--gray-500); }
.doc-category { background: var(--gray-100); padding: 3px 9px; border-radius: 8px; }
.doc-card-btn {
  display: block; width: 100%; text-align: center; padding: 10px;
  border-radius: 7px; font-size: 0.85rem; font-weight: 600; text-decoration: none;
  border: none; cursor: pointer; transition: all 0.18s; margin-top: 4px;
}
.doc-card-btn.free-btn { background: rgba(15,123,140,0.08); color: var(--teal); border: 1.5px solid rgba(15,123,140,0.25); }
.doc-card-btn.free-btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.doc-card-btn.paid-btn { background: rgba(200,64,26,0.1); color: var(--paid-badge); border: 1.5px solid transparent; }
.doc-card-btn.paid-btn:hover { background: var(--paid-badge); color: #fff; }

/* ── VIEW TOGGLE ── */
.view-toggle-bar { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.view-btn {
  padding: 6px 14px; border-radius: 7px; border: 1.5px solid var(--gray-200);
  background: #fff; cursor: pointer; font-size: 0.82rem; font-weight: 600;
  color: var(--gray-500); transition: all 0.18s; display: flex; align-items: center; gap: 6px;
}
.view-btn.active { border-color: var(--teal); color: var(--teal); background: rgba(15,123,140,0.06); }

/* ── SCROLLABLE DOC CONTAINER ── */
.doc-scroll-wrap {
  max-height: 560px; overflow-y: auto; padding-right: 10px;
  scrollbar-width: thin; scrollbar-color: var(--teal) #e2eaf2;
  border: 1.5px solid var(--gray-200); border-radius: 10px; padding: 12px 14px; background: #fafcff;
}
.doc-scroll-wrap::-webkit-scrollbar { width: 9px; }
.doc-scroll-wrap::-webkit-scrollbar-track { background: #e2eaf2; border-radius: 6px; }
.doc-scroll-wrap::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 6px; border: 2px solid #e2eaf2; }

/* ── LIST VIEW ── */
.doc-list { display: flex; flex-direction: column; gap: 0; }
.doc-list-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border-bottom: 1px solid var(--gray-200); transition: background 0.15s;
}
.doc-list-item:nth-child(even) { background: rgba(240,246,252,0.7); }
.doc-list-item:hover { background: rgba(15,123,140,0.05); }
.doc-list-num { width: 28px; height: 28px; border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: var(--gray-500); flex-shrink: 0; }
.doc-list-name { flex: 1; font-size: 0.94rem; font-weight: 700; color: #0a6e7e; cursor: pointer; }
.doc-list-item:hover .doc-list-name { color: var(--teal); }
.doc-list-cat { font-size: 0.75rem; color: var(--gray-500); background: var(--gray-100); padding: 3px 9px; border-radius: 8px; white-space: nowrap; }
.doc-list-badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; padding: 3px 9px; border-radius: 10px; white-space: nowrap; }
.doc-list-action { font-size: 0.78rem; font-weight: 700; padding: 6px 14px; border-radius: 6px; border: none; cursor: pointer; white-space: nowrap; text-decoration: none; transition: all 0.15s; }
.list-free-btn { background: rgba(15,123,140,0.1); color: var(--teal); }
.list-free-btn:hover { background: var(--teal); color: #fff; }
.list-paid-btn { background: rgba(200,64,26,0.1); color: var(--paid-badge); }
.list-paid-btn:hover { background: var(--paid-badge); color: #fff; }

/* ── SOFTWARE LIBRARY ── */
.software-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.sw-card {
  background: var(--navy); border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px; transition: transform 0.2s, box-shadow 0.2s;
}
.sw-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(11,31,58,0.20); }
.sw-icon { width: 48px; height: 48px; background: rgba(15,123,140,0.25); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.sw-icon svg { width: 26px; height: 26px; stroke: var(--teal-light); fill: none; }
.sw-title { font-size: 1rem; font-weight: 700; color: #fff; }
.sw-desc { font-size: 0.82rem; color: #7a9ab8; line-height: 1.55; flex: 1; }
.sw-access { display: flex; align-items: center; justify-content: space-between; }
.sw-badge-free { font-size: 0.72rem; font-weight: 700; color: #4dd690; text-transform: uppercase; letter-spacing: 0.06em; }
.sw-link { font-size: 0.82rem; color: var(--teal-light); text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.sw-link:hover { color: var(--gold); }

/* ── PRICING ── */
.pricing-band { background: var(--gray-100); padding: 80px 40px; }
.pricing-inner { max-width: 1200px; margin: 0 auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-bottom: 36px; }
.plan-card {
  background: #fff; border-radius: 14px; border: 1.5px solid var(--gray-200);
  padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.plan-card:hover { box-shadow: 0 8px 32px rgba(11,31,58,0.12); border-color: var(--teal); }
.plan-card.featured { border: 2px solid var(--teal); box-shadow: 0 8px 40px rgba(15,123,140,0.15); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 14px; border-radius: 12px;
}
.plan-name { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price .amount { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: var(--teal); }
.plan-price .period { color: var(--gray-500); font-size: 0.9rem; }
.plan-desc { color: var(--gray-700); font-size: 0.88rem; line-height: 1.6; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-features li { font-size: 0.88rem; color: var(--gray-700); display: flex; align-items: flex-start; gap: 8px; }
.plan-features .chk { color: var(--teal); font-weight: 700; flex-shrink: 0; }
.plan-btn {
  padding: 13px; border-radius: 8px; font-size: 0.9rem; font-weight: 700;
  border: none; cursor: pointer; transition: all 0.2s; text-align: center;
}
.plan-btn-outline { background: transparent; border: 1.5px solid var(--teal); color: var(--teal); }
.plan-btn-outline:hover { background: var(--teal); color: #fff; }
.plan-btn-gold { background: var(--gold); color: var(--navy); }
.plan-btn-gold:hover { background: var(--gold-light); }
.plan-btn-solid { background: var(--navy); color: #fff; }
.plan-btn-solid:hover { background: var(--teal); }
.per-doc-box {
  background: #fff; border-radius: 14px; border: 1.5px solid var(--gray-200);
  padding: 28px 32px; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.per-doc-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--navy); margin-bottom: 6px; }
.per-doc-sub { color: var(--gray-700); font-size: 0.88rem; line-height: 1.6; max-width: 500px; }

/* ── ABOUT BAND ── */
.about-band { background: var(--gray-100); padding: 64px 40px; }
.about-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img-placeholder {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  border-radius: 14px; height: 320px; display: flex; align-items: center; justify-content: center;
}
.about-img-placeholder svg { width: 90px; height: 90px; fill: rgba(255,255,255,0.2); }
.about-text h2 { font-family: 'Playfair Display', serif; font-size: 1.9rem; color: var(--navy); margin-bottom: 16px; }
.about-text p { color: var(--gray-700); font-size: 0.95rem; line-height: 1.75; margin-bottom: 14px; }
.about-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.about-features li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--gray-700); }
.about-features li::before { content: '✓'; color: var(--teal); font-weight: 700; font-size: 1rem; }

/* ── CONSULTANCY ── */
.consult-band { background: var(--navy); padding: 80px 40px; }
.consult-inner { max-width: 1200px; margin: 0 auto; }
.consult-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 44px; }
.consult-card {
  background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 30px 26px; display: flex; flex-direction: column; gap: 14px;
  transition: background 0.2s, border-color 0.2s;
}
.consult-card:hover { background: rgba(15,123,140,0.12); border-color: var(--teal); }
.consult-icon { width: 52px; height: 52px; background: rgba(15,123,140,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.consult-icon svg { width: 28px; height: 28px; stroke: var(--teal-light); fill: none; stroke-width: 1.8; }
.consult-title { font-size: 1.05rem; font-weight: 700; color: #fff; }
.consult-desc { font-size: 0.85rem; color: #7a9ab8; line-height: 1.65; flex: 1; }
.consult-link { font-size: 0.83rem; color: var(--teal-light); font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 5px; }
.consult-link:hover { color: var(--gold); }
.consult-cta {
  background: rgba(200,151,43,0.1); border: 1.5px solid var(--gold);
  border-radius: 14px; padding: 36px 32px; margin-top: 32px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px;
}
.consult-cta-text h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: #fff; margin-bottom: 8px; }
.consult-cta-text p { color: #8aaccc; font-size: 0.9rem; line-height: 1.6; max-width: 480px; }
.consult-cta-btn {
  background: var(--gold); color: var(--navy); font-size: 0.92rem; font-weight: 700;
  padding: 14px 28px; border-radius: 8px; text-decoration: none; white-space: nowrap;
  transition: background 0.2s; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.consult-cta-btn:hover { background: var(--gold-light); }

/* ── CONTACT ── */
.contact-band { background: var(--navy); padding: 64px 40px; }
.contact-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 { font-family: 'Playfair Display', serif; color: #fff; font-size: 1.9rem; margin-bottom: 16px; }
.contact-info p { color: #7a9ab8; font-size: 0.95rem; line-height: 1.7; margin-bottom: 24px; }
.contact-detail { display: flex; align-items: center; gap: 10px; color: #a8c0d6; font-size: 0.88rem; margin-bottom: 12px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-input, .form-select, .form-textarea {
  padding: 12px 16px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06); color: #fff; font-family: inherit; font-size: 0.9rem;
  outline: none; transition: border-color 0.2s; width: 100%;
}
.form-input::placeholder, .form-textarea::placeholder { color: #5a7a9a; }
.form-input:focus, .form-textarea:focus { border-color: var(--teal); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit {
  background: var(--teal); color: #fff; font-size: 0.92rem; font-weight: 600;
  padding: 13px; border-radius: 8px; border: none; cursor: pointer; transition: background 0.2s;
}
.form-submit:hover { background: var(--teal-light); }

/* ── CART ── */
.cart-overlay {
  display: none; position: fixed; inset: 0; z-index: 900;
  background: rgba(6,15,28,0.55); backdrop-filter: blur(4px);
}
.cart-overlay.open { display: flex; justify-content: flex-end; }
.cart-panel {
  background: #fff; width: 420px; max-width: 100vw; height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column; box-shadow: -8px 0 40px rgba(0,0,0,0.24);
}
.cart-header {
  background: var(--navy); padding: 20px 24px; display: flex;
  align-items: center; justify-content: space-between; flex-shrink: 0;
}
.cart-header h3 { color: #fff; font-family: 'Playfair Display', serif; font-size: 1.1rem; }
.cart-close { background: none; border: none; color: #a8c0d6; cursor: pointer; font-size: 1.3rem; }
.cart-body { flex: 1; padding: 20px 24px; overflow-y: auto; }
.cart-empty { color: var(--gray-500); font-size: 0.9rem; text-align: center; padding: 40px 0; line-height: 1.6; }
.cart-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--gray-200); }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.9rem; font-weight: 600; color: var(--navy); line-height: 1.4; }
.cart-item-price { font-size: 0.82rem; color: var(--teal); font-weight: 700; margin-top: 4px; }
.cart-item-del { background: #fff; border: 1.5px solid #e0e0e0; border-radius: 50%; width: 28px; height: 28px; color: #999; cursor: pointer; font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all 0.15s; flex-shrink: 0; }
.cart-item-del:hover { background: #ffeaea; border-color: var(--paid-badge); color: var(--paid-badge); }
.cart-footer { padding: 20px 24px; border-top: 1.5px solid var(--gray-200); flex-shrink: 0; }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1rem; color: var(--navy); margin-bottom: 14px; }
.cart-checkout-form { display: flex; flex-direction: column; gap: 10px; }
.cart-input {
  padding: 10px 14px; border-radius: 7px; border: 1.5px solid var(--gray-200);
  font-family: inherit; font-size: 0.88rem; outline: none; transition: border-color 0.2s; width: 100%;
}
.cart-input:focus { border-color: var(--teal); }
.cart-pay-btn {
  background: var(--teal); color: #fff; font-size: 0.9rem; font-weight: 700;
  padding: 13px; border-radius: 8px; border: none; cursor: pointer;
  transition: background 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
}
.cart-pay-btn:hover { background: var(--teal-light); }
.cart-notice { font-size: 0.76rem; color: var(--gray-500); text-align: center; margin-top: 8px; line-height: 1.5; }
.cart-count {
  background: var(--gold); color: var(--navy); border-radius: 50%;
  width: 18px; height: 18px; font-size: 0.68rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 4px; vertical-align: middle;
}

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  background: var(--teal); color: #fff; padding: 12px 22px; border-radius: 8px;
  font-size: 0.88rem; font-weight: 600; box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ── YOUTUBE SCROLL BAR ── */
.yt-scroll-bar {
  background: #0d0d0d; overflow: hidden; position: relative; padding: 0;
  border-top: 1px solid #1a1a1a; border-bottom: 1px solid #1a1a1a;
}
.yt-scroll-fade-l, .yt-scroll-fade-r {
  position:absolute; top:0; bottom:0; width:80px; z-index:2; pointer-events:none;
}
.yt-scroll-fade-l { left:0; background:linear-gradient(to right, #0d0d0d, transparent); }
.yt-scroll-fade-r { right:0; background:linear-gradient(to left, #0d0d0d, transparent); }
.yt-scroll-track {
  display: flex; width: max-content;
  animation: ytscroll 40s linear infinite;
}
.yt-scroll-track:hover { animation-play-state: paused; }
@keyframes ytscroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.yt-scroll-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 24px;
  white-space: nowrap; font-size: 0.82rem; color: #aaa;
}
.yt-icon svg { width: 18px; height: 18px; fill: #ff0000; vertical-align: middle; }
.yt-sep { color: #444; font-size: 1rem; }
.yt-channel { color: #fff; font-weight: 700; }
.yt-highlight { color: #4ade80; font-weight: 700; }
.yt-sub-btn {
  background: #ff0000; color: #fff; padding: 5px 14px; border-radius: 4px;
  font-size: 0.78rem; font-weight: 700; text-decoration: none; transition: background 0.2s;
}
.yt-sub-btn:hover { background: #cc0000; }

/* ── FOOTER ── */
footer.site-footer {
  background: #060f1c; padding: 32px 40px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
footer.site-footer p { color: #4a6070; font-size: 0.82rem; }
footer.site-footer a { color: var(--teal-light); text-decoration: none; font-size: 0.82rem; }

/* ── MODALS ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,15,28,0.7); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 16px; width: 460px; max-width: 95vw;
  overflow: hidden; box-shadow: 0 16px 60px rgba(0,0,0,0.3);
}
.modal-header {
  background: var(--navy); padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { color: #fff; font-family: 'Playfair Display', serif; font-size: 1.15rem; }
.modal-close { background: none; border: none; color: #a8c0d6; cursor: pointer; font-size: 1.3rem; }
.modal-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.modal-body p { font-size: 0.9rem; color: var(--gray-700); line-height: 1.6; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav.main-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero-inner { flex-direction: column; }
  .hero-gallery-panel { width: 100%; height: 220px; }
  .hero h1 { font-size: 2rem; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .consult-grid { grid-template-columns: 1fr; }
  .early-sub-inner { flex-direction: column; }
  footer.site-footer { flex-direction: column; text-align: center; }
}
