/* ===============================
   ClearlinePDX — High Readability Glass
   (More contrast, larger type)
   Uses hero.jpg in repo root
   =============================== */

:root{
  --ink: rgba(6, 20, 20, 0.98);
  --text: rgba(10, 28, 28, 0.90);
  --muted: rgba(10, 28, 28, 0.74);

  --brand:#2f8f87;
  --brand2:#74b9b1;

  --bg:#eef3f1;

  --border: rgba(10, 28, 28, 0.12);
  --shadow: 0 18px 45px rgba(10, 28, 28, 0.10);
  --shadow2: 0 10px 28px rgba(10, 28, 28, 0.08);

  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 16px;

  --container: 1120px;

  --pad: 22px;
  --gap: 18px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  color:var(--text);
  background:var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  overflow-x:hidden;
}

.container{
  width:min(var(--container), calc(100% - 40px));
  margin:0 auto;
}

/* Background image + overlays */
body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    linear-gradient(180deg, rgba(238,243,241,.96) 0%, rgba(238,243,241,.86) 35%, rgba(238,243,241,.96) 100%),
    url("hero.jpg");
  background-size:cover;
  background-position:center;
  filter:blur(10px);
  transform:scale(1.08);
  z-index:-2;
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(1200px 600px at 50% 18%, rgba(255,255,255,.50), rgba(0,0,0,0)),
    radial-gradient(900px 520px at 18% 82%, rgba(47,143,135,.12), rgba(0,0,0,0));
  z-index:-1;
}

/* Navbar */
.navbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  background: rgba(255,255,255,0.78);
  border-bottom:1px solid var(--border);
}

.navbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:950;
  white-space:nowrap;
  color: var(--ink);
}

.brand-badge{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, rgba(47,143,135,.20), rgba(43,108,176,.10));
  border:1px solid rgba(47,143,135,.22);
}

.nav-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
}

.nav-links a{
  text-decoration:none;
  color: rgba(8, 22, 22, 0.86);
  font-weight:850;
  padding:8px 10px;
  border-radius:12px;
}

.nav-links a:hover{
  background: rgba(255,255,255,0.65);
}

.nav-cta{
  display:flex;
  gap:10px;
  align-items:center;
}

/* Buttons */
.btn{
  border:1px solid rgba(10, 28, 28, 0.14);
  background: rgba(255,255,255,0.88);
  color: var(--ink);
  font-weight:950;
  border-radius:999px;
  padding:12px 16px;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(10, 28, 28, 0.10);
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease, filter .12s ease;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  line-height:1;
  min-height:44px;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 30px rgba(10, 28, 28, 0.12);
  background: rgba(255,255,255,0.96);
}

.btn:active{
  transform:translateY(0);
  filter:saturate(.96);
}

.btn-primary{
  background:linear-gradient(135deg, rgba(47,143,135,0.98), rgba(116,185,177,0.94));
  color:#062020;
  border:1px solid rgba(47,143,135,0.32);
}

.btn-ghost{
  background: rgba(255,255,255,0.60);
}

/* Hero */
.hero{
  padding:54px 0 24px;
}

.hero-card{
  border-radius:var(--r-xl);
  background: rgba(255,255,255,0.82);
  border:1px solid rgba(10, 28, 28, 0.12);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:var(--shadow);
  padding:44px 26px 28px;
  position:relative;
  overflow:hidden;
  text-align:center;
}

.hero-card::before{
  content:"";
  position:absolute;
  inset:-120px -120px auto auto;
  width:340px;
  height:340px;
  background:radial-gradient(circle at 30% 30%, rgba(47,143,135,.22), rgba(0,0,0,0) 62%);
  transform:rotate(8deg);
}

.hero h1{
  margin:0;
  color: var(--ink);
  font-size:clamp(32px, 4.2vw, 54px);
  letter-spacing:-0.8px;
}

.hero p{
  margin:12px auto 0;
  max-width:820px;
  color: var(--muted);
  font-size: 18px;
  font-weight:700;
}

.hero-actions{
  display:flex;
  gap:12px;
  justify-content:center;
  margin-top:18px;
  flex-wrap:wrap;
}

.pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
  justify-content:center;
}

.pill{
  padding:9px 13px;
  border-radius:999px;
  border:1px solid rgba(10, 28, 28, 0.14);
  background: rgba(255,255,255,0.72);
  color: rgba(8, 22, 22, 0.86);
  font-weight:900;
  font-size:14px;
  text-decoration:none;
}

/* Grid */
.main-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:var(--gap);
  margin:22px 0 58px;
}

/* Panels */
.panel{
  border-radius:var(--r-xl);
  background: rgba(255,255,255,0.90);
  border:1px solid rgba(10, 28, 28, 0.12);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:var(--shadow2);
  padding:var(--pad);
}

.panel h2{
  margin:0 0 6px 0;
  font-size:24px;
  letter-spacing:-0.2px;
  color: var(--ink);
}

.sub{
  margin:0 0 18px 0;
  color: var(--muted);
  font-weight:700;
  font-size:16px;
}

/* Form */
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.field label{
  display:block;
  font-size:13px;
  color: rgba(8, 22, 22, 0.82);
  font-weight:950;
  margin-bottom:6px;
}

.input, select, textarea{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(10, 28, 28, 0.16);
  background: rgba(255,255,255,0.96);
  padding:12px 12px;
  outline:none;
  font-weight:800;
  color: rgba(8, 22, 22, 0.96);
  min-height:46px;
}

textarea{
  min-height:130px;
  resize:vertical;
}

.input:focus, select:focus, textarea:focus{
  border-color:rgba(47,143,135,.55);
  box-shadow:0 0 0 4px rgba(47,143,135,.14);
}

.slider-row{ grid-column:1 / -1; }

.range{ width:100%; }

.mini{
  display:flex;
  justify-content:space-between;
  color: rgba(8, 22, 22, 0.72);
  font-weight:800;
  font-size:13px;
  margin-top:6px;
  gap:12px;
}

/* Select arrow */
select{
  appearance:none;
  -webkit-appearance:none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(8,22,22,.55) 50%),
    linear-gradient(135deg, rgba(8,22,22,.55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 55%,
    calc(100% - 12px) 55%;
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
  padding-right:34px;
}

/* Add-ons */
.addons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(10, 28, 28, 0.14);
  background: rgba(255,255,255,0.90);
  min-height:70px;
}

.check input{
  margin-top:4px;
  width:20px;
  height:20px;
  flex:0 0 auto;
}

.check b{
  display:block;
  font-size:16px;
  font-weight:950;
  color: var(--ink);
}

.check span{
  display:block;
  color: rgba(8, 22, 22, 0.78);
  font-weight:750;
  font-size:13px;
  margin-top:2px;
}

/* Result */
.result{
  margin-top:14px;
  border-radius:var(--r-lg);
  background: rgba(255,255,255,0.96);
  border:1px solid rgba(10, 28, 28, 0.16);
  padding:14px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.price{
  font-size:30px;
  font-weight:1000;
  letter-spacing:-0.5px;
  color: var(--ink);
}

.meta{
  color: rgba(8, 22, 22, 0.78);
  font-weight:900;
  font-size:14px;
}

.est-strong{
  font-weight:1000;
  font-size:20px;
  color: var(--ink);
}

/* Right content */
.tip{
  background: rgba(255,255,255,0.92);
  border:1px solid rgba(10, 28, 28, 0.14);
  border-radius:var(--r-lg);
  padding:14px;
  color: rgba(8, 22, 22, 0.86);
  font-weight:800;
}

.right-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.hr{
  height:1px;
  background:rgba(10, 28, 28, 0.14);
  margin:14px 0;
  border:0;
}

.stack{ display:grid; gap:10px; }

.soft-item{
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(10, 28, 28, 0.12);
  background: rgba(255,255,255,0.92);
}

.soft-item b{
  display:block;
  color: var(--ink);
  font-weight:950;
}

.soft-item span{
  display:block;
  margin-top:3px;
  color: rgba(8, 22, 22, 0.78);
  font-weight:750;
  font-size:14px;
}

/* Footer */
.footer{
  padding:18px 0 36px;
  color: rgba(8, 22, 22, 0.72);
  font-weight:800;
  text-align:center;
}

/* Modal */
.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:80;
}

.modal{
  width:min(720px, 100%);
  border-radius:var(--r-xl);
  background: rgba(255,255,255,0.92);
  border:1px solid rgba(10, 28, 28, 0.14);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:var(--shadow);
  padding:18px;
}

.modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:6px 6px 12px;
}

.modal-title{
  font-size:18px;
  font-weight:1000;
  color: var(--ink);
}

.icon-btn{
  border:1px solid rgba(10, 28, 28, 0.16);
  background: rgba(255,255,255,0.92);
  border-radius:999px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:1000;
  min-height:44px;
}

.modal-body{ padding:6px; }

/* Reviews */
.reviews-grid{
  grid-template-columns: 1.1fr .9fr;
}

.review-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.review-card{
  border-radius:var(--r-xl);
  background: rgba(255,255,255,0.92);
  border:1px solid rgba(10, 28, 28, 0.12);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:var(--shadow2);
  padding:18px;
}

.review-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}

.review-name{
  font-weight:1000;
  color: var(--ink);
}

.review-date{
  color: rgba(8, 22, 22, 0.70);
  font-weight:900;
  font-size:13px;
}

.review-text{
  margin-top:10px;
  color: rgba(8, 22, 22, 0.86);
  font-weight:750;
  font-size:16px;
}

.stars{
  letter-spacing:1px;
  font-size:14px;
  font-weight:1000;
  color: rgba(10, 28, 28, 0.90);
}

.small-note{
  color: rgba(8, 22, 22, 0.72);
  font-weight:750;
  font-size:13px;
}

/* =================== Responsive =================== */
@media (max-width: 980px){
  :root{ --pad:20px; --gap:16px; }
  .main-grid{ grid-template-columns:1fr; }
  .reviews-grid{ grid-template-columns:1fr; }
  .hero{ padding:44px 0 18px; }
  .hero-card{ padding:34px 18px 22px; }
}

@media (max-width: 720px){
  .container{ width:calc(100% - 28px); }

  .navbar-inner{
    flex-wrap:wrap;
    justify-content:center;
    padding:12px 0;
    gap:10px;
  }
  .brand{ flex:1 1 100%; justify-content:center; }
  .nav-links{ flex:1 1 100%; justify-content:center; gap:8px; }
  .nav-cta{ flex:1 1 100%; justify-content:center; }

  .hero h1{ font-size:clamp(26px, 7vw, 40px); }
  .hero p{ font-size:16px; }

  .form-grid{ grid-template-columns:1fr; gap:12px; }
  .addons{ grid-template-columns:1fr; }
  .mini{ flex-direction:column; align-items:flex-start; }
  .right-actions .btn{ flex:1 1 auto; }
}

@media (max-width: 480px){
  :root{ --pad:16px; --gap:14px; }
  .container{ width:calc(100% - 22px); }
  .hero{ padding:32px 0 14px; }
  .hero-card{ border-radius:22px; padding:26px 14px 16px; }
  .panel{ border-radius:22px; padding:16px; }

  .hero-actions .btn{ width:100%; }
  .right-actions .btn{ width:100%; }

  .result{ flex-direction:column; align-items:flex-start; }
  .price{ font-size:28px; }
}

@media (prefers-reduced-motion: reduce){
  .btn{ transition:none; }
}
