/* Dubai Storage Rated — main.css */
:root {
  --c-bg: #fafafa;
  --c-surface: #ffffff;
  --c-text: #1a1a1a;
  --c-text-soft: #555;
  --c-muted: #888;
  --c-line: #e5e7eb;
  --c-accent: #c9a55c;
  --c-accent-dark: #b18a3b;
  --c-success: #1f8a47;
  --c-warn: #c25b00;
  --c-rank1-bg: linear-gradient(135deg, #fef9ec 0%, #fff 80%);
  --c-rank1-border: #c9a55c;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 18px rgba(15, 23, 42, 0.07);
  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1180px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Source Serif Pro", "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: #0c5ec9; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #0846a0; }

img { max-width: 100%; height: auto; }

/* ─── Layout ─── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ─── Top nav ─── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--max-w); margin: 0 auto;
}
.brand { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--c-text); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #c9a55c 0%, #8c6a23 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 14px;
}
.nav-toggle { display: none; background: none; border: 0; font-size: 20px; cursor: pointer; }
.nav {
  display: flex; gap: 4px; flex-wrap: wrap; align-items: center;
}
.nav a {
  text-decoration: none; color: var(--c-text-soft);
  padding: 6px 10px; border-radius: 6px;
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
}
.nav a:hover { background: #f1f5f9; color: var(--c-text); }
.nav a.active { background: #fef9ec; color: var(--c-accent-dark); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 12px 0; gap: 2px; }
  .nav.open { display: flex; }
  .topbar-inner { flex-wrap: wrap; }
}

/* ─── Hero ─── */
.hero {
  padding: 56px 0 32px;
  background: linear-gradient(180deg, #ffffff 0%, var(--c-bg) 100%);
  border-bottom: 1px solid var(--c-line);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.hero .lede {
  font-size: 18px; color: var(--c-text-soft); margin: 0 0 22px;
  max-width: 760px;
}
.byline {
  display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--c-muted);
  border-top: 1px solid var(--c-line); padding-top: 14px; margin-top: 22px;
}
.byline strong { color: var(--c-text-soft); font-weight: 600; }

/* ─── Breadcrumbs ─── */
.crumbs { font-size: 13px; color: var(--c-muted); padding: 18px 0 0; }
.crumbs a { color: var(--c-muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-text); text-decoration: underline; }
.crumbs span { margin: 0 8px; }

/* ─── At-a-glance summary box ─── */
.summary-box {
  background: white; border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 30px 0;
  box-shadow: var(--shadow-sm);
}
.summary-box h2 {
  margin: 0 0 12px; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--c-muted); font-weight: 700;
}
.summary-box ol { margin: 0; padding-left: 22px; }
.summary-box ol li { margin-bottom: 6px; font-size: 15px; }
.summary-box ol li strong { color: var(--c-text); }
.summary-box ol li small { color: var(--c-muted); margin-left: 6px; font-size: 13px; }

/* ─── Section headings ─── */
section { padding: 30px 0; }
h2 { font-family: var(--font-serif); font-size: clamp(22px, 3vw, 30px); margin: 36px 0 18px; letter-spacing: -0.01em; }
h3 { font-size: 20px; margin: 22px 0 10px; }

/* ─── Comparison table ─── */
.comparison-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0 30px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: white; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.comparison-table th, .comparison-table td {
  padding: 12px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--c-line);
}
.comparison-table thead th {
  background: #f8fafc; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--c-muted); font-weight: 700;
  position: sticky; top: 0;
}
.comparison-table tbody tr:hover { background: #fafafa; }
.comparison-table tbody tr:last-child td { border-bottom: 0; }
.comparison-table td .rank { display: inline-block; min-width: 24px; height: 24px;
  background: var(--c-line); color: var(--c-text); border-radius: 50%;
  font-weight: 700; text-align: center; font-size: 12px; line-height: 24px; }
.comparison-table tbody tr:first-child td .rank {
  background: linear-gradient(135deg, #c9a55c 0%, #8c6a23 100%); color: white;
}
.comparison-table td .name { font-weight: 600; color: var(--c-text); }
.comparison-table .yes { color: var(--c-success); font-weight: 600; }
.comparison-table .no { color: var(--c-muted); }

/* ─── Company card ─── */
.companies { display: flex; flex-direction: column; gap: 22px; margin: 18px 0; }
.card {
  background: white; border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 80px;
}
.card.rank-1 {
  background: var(--c-rank1-bg);
  border: 2px solid var(--c-rank1-border);
  box-shadow: 0 6px 26px rgba(201,165,92,0.18);
}

.card-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-line); color: var(--c-text);
  font-weight: 800; font-size: 18px;
  flex-shrink: 0;
}
.card.rank-1 .rank-badge {
  background: linear-gradient(135deg, #c9a55c 0%, #8c6a23 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(201,165,92,0.4);
}

.logo {
  width: 70px; height: 70px; border-radius: 12px;
  background: white; border: 1px solid var(--c-line);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.logo img { max-width: 90%; max-height: 90%; object-fit: contain; }
.logo .placeholder {
  font-family: var(--font-serif); font-weight: 700; font-size: 26px;
  color: var(--c-accent-dark);
}

.card-title { flex: 1; min-width: 240px; }
.card-title h3 { margin: 0; font-size: 22px; font-family: var(--font-serif); letter-spacing: -0.01em; }
.card-title .tagline { color: var(--c-text-soft); font-size: 14px; margin: 4px 0 0; }
.card-title .editors-pick {
  display: inline-block; margin-top: 6px; padding: 3px 10px;
  background: linear-gradient(135deg, #c9a55c 0%, #8c6a23 100%);
  color: white; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; border-radius: 12px;
}

.score {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 16px; background: white; border: 1px solid var(--c-line);
  border-radius: 12px; min-width: 96px;
}
.score-num { font-size: 28px; font-weight: 800; line-height: 1; color: var(--c-text); }
.score-num small { font-size: 14px; color: var(--c-muted); font-weight: 600; }
.score-stars { color: var(--c-accent); font-size: 14px; margin-top: 4px; letter-spacing: 1px; }
.score-reviews { font-size: 11px; color: var(--c-muted); margin-top: 2px; }

.card-body { margin-top: 20px; }
.summary-text { color: var(--c-text-soft); font-size: 15px; }
.best-for { margin: 14px 0; padding: 10px 14px; background: #f8fafc; border-left: 3px solid var(--c-accent); border-radius: 4px; font-size: 14px; }
.best-for strong { color: var(--c-text); }

.specs { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.spec {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 5px 10px; border-radius: 999px;
  background: #f1f5f9; color: var(--c-text-soft); font-weight: 500;
}
.spec.on { background: #ecfdf5; color: var(--c-success); }
.spec.off { background: #fafafa; color: var(--c-muted); text-decoration: line-through; }

.feature-list { padding-left: 18px; margin: 12px 0; }
.feature-list li { margin-bottom: 4px; font-size: 14px; color: var(--c-text-soft); }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.proscons h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); }
.pros ul, .cons ul { margin: 0; padding-left: 18px; }
.pros li { color: var(--c-success); font-size: 14px; margin-bottom: 4px; }
.cons li { color: var(--c-warn); font-size: 14px; margin-bottom: 4px; }
.pros li::marker, .pros li::before { color: var(--c-success); }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px 18px; margin: 14px 0; font-size: 13px; }
.facts dt { color: var(--c-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.facts dd { margin: 0 0 6px; font-weight: 500; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px;
  font-weight: 600; font-size: 14px;
  text-decoration: none; transition: all 0.15s ease;
}
.btn-primary { background: linear-gradient(135deg, #c9a55c 0%, #b18a3b 100%); color: white; box-shadow: 0 2px 6px rgba(178,138,59,0.25); }
.btn-primary:hover { background: linear-gradient(135deg, #b18a3b 0%, #8c6a23 100%); color: white; }
.btn-secondary { background: #f1f5f9; color: var(--c-text); }
.btn-secondary:hover { background: #e2e8f0; }

@media (max-width: 640px) {
  .proscons { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .card-head { gap: 14px; }
  .score { min-width: 80px; }
}

/* ─── TOC ─── */
.toc {
  margin: 18px 0 30px; padding: 18px 22px;
  background: #f8fafc; border-left: 3px solid var(--c-accent);
  border-radius: 6px;
}
.toc h2 { margin: 0 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); font-family: var(--font-sans); font-weight: 700; }
.toc ol { margin: 0; padding-left: 22px; }
.toc ol li { margin-bottom: 4px; }
.toc a { text-decoration: none; color: var(--c-text-soft); }
.toc a:hover { color: var(--c-text); text-decoration: underline; }

/* ─── FAQ ─── */
.faq { margin: 30px 0; }
.faq details {
  background: white; border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  padding: 0 18px;
}
.faq summary {
  list-style: none; cursor: pointer;
  padding: 16px 0; font-weight: 600;
  font-size: 16px; position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 14px;
  font-size: 22px; font-weight: 300; color: var(--c-muted);
  transition: transform 0.15s;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--c-line); }
.faq details p { margin: 12px 0 18px; color: var(--c-text-soft); font-size: 15px; }

/* ─── Methodology / Disclosure box ─── */
.disclosure {
  margin: 36px 0; padding: 24px;
  background: white; border: 1px dashed var(--c-line);
  border-radius: var(--radius);
  color: var(--c-text-soft); font-size: 14px;
}
.disclosure h3 { margin-top: 0; font-family: var(--font-sans); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); }

/* ─── Footer ─── */
footer {
  margin-top: 60px; padding: 40px 0 30px;
  background: #0f172a; color: #cbd5e1; font-size: 14px;
}
footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
footer h4 { color: white; font-size: 14px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.06em; }
footer a { color: #cbd5e1; text-decoration: none; }
footer a:hover { color: white; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 6px; font-size: 13px; }
footer .legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid #1e293b; color: #94a3b8; font-size: 12px; grid-column: 1/-1; }

@media (max-width: 820px) {
  footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  footer .wrap { grid-template-columns: 1fr; }
}

/* ─── Schema-only / SR helpers ─── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
