/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2563EB;
  --blue-light: #EFF6FF;
  --red: #F03222;
  --red-light: #FEF2F2;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --max-w: 900px;
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.7;
  font-size: 17px;
}

/* === Typography === */
h1, h2, h3, h4 { line-height: 1.25; }
h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.25rem; margin: 1.5rem 0 .75rem; }
p  { margin-bottom: 1rem; }
a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 1rem 1.5rem; }
li { margin-bottom: .35rem; }

/* === Layout === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* === Header === */
.site-header {
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 0;
  background: #fff;
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
}
.site-logo {
  font-size: 1.1rem; font-weight: 700; color: var(--gray-900); text-decoration: none;
}
.site-logo:hover { text-decoration: none; }
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a { font-size: .9rem; color: var(--gray-700); }

/* === Hero === */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #1a1a2e 70%, #2d1b4e 100%);
  padding: 4.5rem 0 3.5rem;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(240,50,34,.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(37,99,235,.10) 0%, transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 2.6rem; color: #fff; letter-spacing: -.02em; font-weight: 800; }
.hero .subtitle { font-size: 1.15rem; color: rgba(255,255,255,.65); margin-top: .75rem; max-width: 640px; }
.hero .hero-search {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.5rem; padding: .65rem 1.25rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px; color: rgba(255,255,255,.5); font-size: .95rem;
  cursor: default; transition: background .2s;
}
.hero .hero-search:hover { background: rgba(255,255,255,.12); }
.hero .hero-search .arrow { color: var(--red); font-weight: 700; }

/* === Blog Hero === */
.blog-hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 60%, #1a1a2e 100%);
  padding: 3rem 0 2.5rem;
  position: relative;
}
.blog-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(37,99,235,.08) 0%, transparent 60%);
  pointer-events: none;
}
.blog-hero .container { position: relative; z-index: 1; }
.blog-hero h1 { font-size: 2rem; color: #fff; font-weight: 800; letter-spacing: -.01em; margin-bottom: .5rem; }
.blog-hero .article-meta { color: rgba(255,255,255,.45); font-size: .85rem; }
.blog-hero .breadcrumb { margin-bottom: .75rem; }
.blog-hero .breadcrumb, .blog-hero .breadcrumb a { color: rgba(255,255,255,.35); }
.blog-hero .breadcrumb a:hover { color: rgba(255,255,255,.7); }

/* === Breadcrumb === */
.breadcrumb { font-size: .85rem; color: var(--gray-500); margin: 1.25rem 0; }
.breadcrumb a { color: var(--gray-500); }

/* === Comparison Table === */
.table-wrap { overflow-x: auto; margin: 2rem 0; }
.comp-table {
  width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 680px;
}
.comp-table th {
  background: var(--gray-900); color: #fff; text-align: left;
  padding: .75rem .65rem; font-weight: 600; white-space: nowrap;
}
.comp-table td {
  padding: .7rem .65rem; border-bottom: 1px solid var(--gray-200); vertical-align: top;
}
.comp-table tr:hover td { background: var(--gray-50); }
.comp-table .highlight-row td { background: var(--red-light); font-weight: 500; }
.comp-table .highlight-row:hover td { background: #fde8e6; }
.comp-table .stars { color: #F59E0B; letter-spacing: 1px; }

/* === Studio Cards === */
.studio-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0;
  margin: 2.5rem 0;
  overflow: hidden;
  transition: box-shadow .2s;
}
.studio-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.studio-card .card-color-bar {
  height: 5px;
  background: var(--gray-300);
}
.studio-card .card-body { padding: 2rem; }
.studio-card.featured {
  border-color: var(--red);
  border-width: 2px;
  border-left-width: 4px;
  background: var(--red-light);
}
.studio-card.featured .card-color-bar { background: var(--red); height: 6px; }
.studio-card h2 { margin-top: 0; }
.studio-card .meta { font-size: .9rem; color: var(--gray-500); margin-bottom: 1rem; }
.studio-card .meta .meta-icon { margin-right: .3rem; }
.studio-card .badge {
  display: inline-block; font-size: .75rem; font-weight: 600; padding: .2rem .6rem;
  border-radius: 999px; margin-right: .5rem; margin-bottom: .25rem;
}
.badge-type { background: var(--blue-light); color: var(--blue); }
.badge-top { background: var(--red); color: #fff; }
.badge-featured { background: var(--red); color: #fff; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .75rem; }
.badge-rating { background: #FEF3C7; color: #92400E; }
.badge-editors-choice { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .75rem; }

/* === Large Rating Display === */
.rating-display {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem;
}
.rating-display .rating-number {
  font-size: 1.8rem; font-weight: 800; color: var(--gray-900); line-height: 1;
}
.rating-display .rating-stars { color: #F59E0B; font-size: 1.1rem; letter-spacing: 2px; }
.rating-display .rating-label { font-size: .75rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; }

/* === Feature Icons === */
.feature-tags {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0;
}
.feature-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .65rem; font-size: .8rem; border-radius: 6px;
  background: var(--gray-100); color: var(--gray-700); font-weight: 500;
}
.feature-tag.tag-24-7 { background: #ECFDF5; color: #065F46; }
.feature-tag.tag-price-low { background: #ECFDF5; color: #065F46; }
.feature-tag.tag-price-mid { background: #FEF3C7; color: #92400E; }
.feature-tag.tag-price-high { background: #FEF2F2; color: #991B1B; }
.feature-tag.tag-price-premium { background: #FEF2F2; color: #7F1D1D; }
.feature-tag.tag-location { background: var(--blue-light); color: var(--blue); }
.feature-tag.tag-atmos { background: #EDE9FE; color: #5B21B6; }

/* === What's Included Grid (TRC) === */
.whats-included {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem;
  margin: 1.25rem 0;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.whats-included .item {
  text-align: center; padding: .5rem;
}
.whats-included .item-icon {
  font-size: 1.5rem; margin-bottom: .25rem;
}
.whats-included .item-label {
  font-size: .75rem; color: var(--gray-700); font-weight: 600;
}

/* === CTA Button Large === */
.cta-btn-lg {
  display: inline-block; padding: 1rem 2.5rem;
  background: var(--red); color: #fff; border-radius: var(--radius);
  font-weight: 700; font-size: 1.15rem; text-decoration: none;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 14px rgba(240,50,34,.25);
}
.cta-btn-lg:hover { background: #d42a1c; text-decoration: none; transform: translateY(-1px); }

/* === Photo Gallery Placeholders === */
.photo-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin: 1.5rem 0;
}
.photo-placeholder {
  aspect-ratio: 4/3; border-radius: var(--radius);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 1rem; font-size: .85rem; font-weight: 600;
  color: rgba(255,255,255,.8);
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.photo-placeholder:nth-child(1) { background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%); }
.photo-placeholder:nth-child(2) { background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #4a1a6b 100%); }
.photo-placeholder:nth-child(3) { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%); }

/* === Comparison Table Feature Icons === */
.check-yes { color: #059669; font-weight: 700; }
.check-no  { color: #DC2626; font-weight: 700; }
.price-tier { font-weight: 600; letter-spacing: .5px; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1rem 0; }
.pros-cons h4 { font-size: .95rem; margin-bottom: .5rem; }
.pros-cons ul { margin-left: 1.2rem; font-size: .95rem; }
.pros h4 { color: #059669; }
.cons h4 { color: #DC2626; }

/* === CTA === */
.cta-btn, .cta-primary, a[href*="trc-landing-pages.pages.dev"] {
  display: inline-block;
  background: #F03222;
  color: white !important;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(240, 50, 34, 0.3);
}
.cta-btn:hover, .cta-primary:hover, a[href*="trc-landing-pages.pages.dev"]:hover {
  background: #d42a1c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(240, 50, 34, 0.4);
  text-decoration: none;
}
.cta-btn-blue { background: var(--blue); }
.cta-btn-blue:hover { background: #1d4ed8; }

/* === Blog / Article === */
.article-meta { font-size: .9rem; color: var(--gray-500); margin-bottom: 1.5rem; }
.article-body h2 { border-bottom: 1px solid var(--gray-200); padding-bottom: .5rem; }
.article-body blockquote {
  border-left: 3px solid var(--blue); padding: .75rem 1.25rem;
  background: var(--blue-light); margin: 1.5rem 0; font-style: italic;
}
.callout {
  background: var(--red-light); border-left: 3px solid var(--red);
  padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0;
}

/* === Footer === */
.site-footer {
  background: var(--gray-900); color: var(--gray-300);
  padding: 2.5rem 0 1.5rem; margin-top: 4rem; font-size: .85rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer h4 { color: #fff; margin-bottom: .75rem; font-size: .95rem; }
.site-footer a { color: var(--gray-300); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid var(--gray-700); padding-top: 1rem; text-align: center; color: var(--gray-500); }

/* === Gallery Images === */
.photo-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

/* === Hero Pill Link === */
.hero .hero-search {
  text-decoration: none;
}
.hero a.hero-search:hover {
  text-decoration: none;
  background: rgba(255,255,255,.15);
}

/* === Mobile Responsiveness === */
@media (max-width: 768px) {
  table { font-size: 0.85rem; }
  th, td { padding: 8px 6px; }
  .hero h1 { font-size: 1.8rem; }
  .studio-card .card-body { padding: 20px; }
}

/* === Responsive === */
@media (max-width: 700px) {
  h1 { font-size: 1.7rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .blog-hero h1 { font-size: 1.6rem; }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .studio-card .card-body { padding: 1.25rem; }
  .whats-included { grid-template-columns: repeat(2, 1fr); }
  .photo-gallery { grid-template-columns: 1fr; }
  .feature-tags { gap: .35rem; }
  body { font-size: 16px; }
}
