/**************************************
 * R35 For Sale – Site Styles
 * File: /assets/style.css
 * File version: 1.0.3
 * Last updated: 2025-12-24
 *
 * Notes:
 *  - Forces gallery thumbnails to a fixed height using object-fit: cover
 *  - Prevents global img rules from overriding thumbnail sizing
 **************************************/

:root{
  --bg: #0b0d10;
  --bg2:#0f1217;
  --card:#121621;
  --text:#f2f4f8;
  --muted:#b6c0d0;
  --line: rgba(255,255,255,.10);
  --line2: rgba(255,255,255,.06);
  --accent:#4ea1ff;
  --accent2:#7cc5ff;
  --radius: 16px;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --max: 1100px;
  --thumbH: 160px; /* change to 120px or 100px if you want smaller thumbs */
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 20% -10%, rgba(78,161,255,.25), transparent 60%),
              radial-gradient(1000px 700px at 90% 10%, rgba(124,197,255,.18), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{ color:inherit; text-decoration:none; }
a:hover{ color:var(--accent2); }

.wrap{
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.header{
  padding: 44px 0 26px;
  border-bottom: 1px solid var(--line2);
}

.badge{
  display:inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .3px;
  color: var(--muted);
  background: rgba(255,255,255,.03);
}

h1{
  margin: 14px 0 6px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
}

.subhead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}

.callouts{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 16px 0 18px;
}

.callout{
  padding: 14px 14px;
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
}

.callout-title{
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.callout-text{
  font-size: 15px;
}

.cta{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-weight: 600;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}

.btn:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-1px);
}

.btn.primary{
  background: linear-gradient(180deg, rgba(78,161,255,.35), rgba(78,161,255,.18));
  border-color: rgba(78,161,255,.45);
}

.fineprint{
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 0;
}

.main{
  padding: 24px 0 40px;
}

.section{
  padding: 22px 0;
  border-bottom: 1px solid var(--line2);
}

.section:last-child{
  border-bottom: none;
}

h2{
  margin: 0 0 10px;
  font-size: 24px;
}

.muted{ color: var(--muted); }

.video{
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

.video iframe{
  width: 100%;
  aspect-ratio: 16 / 9;
  display:block;
  border:0;
}

/* ==========================
   GALLERY (THUMBNAILS)
   ========================== */

/* Grid container */
.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

/* Each thumbnail card/link */
.gallery a{
  display:block;
  border-radius: 14px;
  overflow:hidden;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line2);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* CRITICAL: force thumbnails to fixed height */
.gallery img{
  width: 100% !important;
  height: var(--thumbH) !important;    /* forces thumbnail size */
  object-fit: cover !important;        /* crops instead of stretching */
  display:block !important;
}

/* Optional hover effect */
.gallery a:hover{
  border-color: rgba(78,161,255,.35);
  transform: translateY(-1px);
}

/* Spec cards */
.spec-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.spec-card{
  padding: 14px 14px;
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
}

.spec-card h3{
  margin: 0 0 10px;
  font-size: 16px;
}

.spec-card ul{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.note{
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.02);
  color: var(--text);
}

.contact{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.footer{
  padding: 18px 0 30px;
  border-top: 1px solid var(--line2);
  color: var(--muted);
  font-size: 13px;
}

/* Mobile tweaks */
@media (max-width: 520px){
  :root{ --thumbH: 140px; }
  .cta{ flex-direction: column; }
  .btn{ width: 100%; }
}
