/* =========================================================
   room601.css — Pico.css v2 overrides + ROOM 601 branding
   ========================================================= */

/* =========================================================
   1) Variables
   ========================================================= */

:root{
  --r601-brand:  #5bc0de;
  --r601-brand2: #337ab7;

  --r601-bg:      #070b12;
  --r601-surface: rgba(255,255,255,.04);
  --r601-border:  rgba(255,255,255,.10);
  --r601-nav-h: 88px;
  --r601-shadow: 0 12px 26px rgba(0,0,0,.22);

  /* Pico tokens */
  --pico-font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Ubuntu,
    Cantarell,
    "Noto Sans",
    Arial;

  --pico-font-size: 106%;
  --pico-line-height: 1.5;
}

/* =========================================================
   2) Base / Layout
   ========================================================= */

html, body{
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body{
  background:
    radial-gradient(1200px 700px at 18% 10%, rgba(91,192,222,.10), transparent 60%),
    radial-gradient(900px 600px at 85% 0%, rgba(51,122,183,.10), transparent 55%),
    var(--r601-bg);
}

/* Pico's .container exists; we only constrain and give padding */
.container{
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 34px);
}

/* =========================================================
   3) NAV (desktop first)
   ========================================================= */

.r601-nav{
  position: sticky;
  top: 0;
  z-index: 999;

  background: rgba(7,11,18,.80);
  backdrop-filter: blur(14px);

  border-bottom: 1px solid var(--r601-border);
}

.r601-nav__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;

  min-height: 52px;

  position: relative;
}

.r601-brand{
  font-weight:820;
  letter-spacing: -0.02em;
  font-size:26px;

  line-height: 1.08;

  font-size: clamp(30px, 3.6vw, 36px);
}

.r601-brand a{
  text-decoration:none;
  color: rgba(255,255,255,.92);
}

.r601-links{
  display:flex;
  align-items:center;
  gap: 6px;
}

.r601-links a{
  text-decoration:none;
  font-size:14px;
  font-weight:500;

  color: rgba(255,255,255,.74);

  padding: 8px 12px;
  border-radius: 10px;

  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.r601-links a:hover{
  color: #fff;
  background: rgba(255,255,255,.06);
}

.r601-cta{
  background: linear-gradient(135deg,var(--r601-brand),var(--r601-brand2));
  color: #041018 !important;

  font-weight: 800;
  font-size: 14px;

  padding: 9px 12px !important;
  border-radius: 14px;

  box-shadow: 0 12px 20px rgba(91,192,222,.14);
}

.r601-cta:hover{
  transform: translateY(-1px);
}

/* Burger (desktop hidden) */
.r601-burger{
  display:none;
  inline-size: 46px;
  block-size: 46px;
  padding: 0;

  border: 1px solid var(--r601-border);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  place-items:center;
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
}

.r601-burger__icon{
  display:block;
  width: 22px;
  height: 14px;
  position: relative;
  transform: translateY(.5px);

  background: linear-gradient(
    to bottom,
    transparent 0,
    transparent 6px,
    rgba(255,255,255,.82) 6px,
    rgba(255,255,255,.82) 8px,
    transparent 8px,
    transparent 100%
  );
}

.r601-burger__icon::before,
.r601-burger__icon::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height: 2px;
  background: rgba(255,255,255,.82);
  border-radius: 2px;
}

.r601-burger__icon::before{ top:0; }
.r601-burger__icon::after{ bottom:0; }

/* =========================================================
   4) HERO
   ========================================================= */

.r601-hero{
  margin: 18px 0 26px;
  padding: 26px 22px;

  border-radius: 18px;
  border: 1px solid var(--r601-border);

  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--r601-shadow);

  display:grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;

  column-gap: 28px;
  row-gap: 10px;
}

.r601-hero h1{
  grid-column: 1 / -1;

  font-weight: 820;
  letter-spacing: -0.02em;
  line-height: 1.08;

  font-size: clamp(30px, 3.6vw, 46px);
  margin-bottom: 10px;
}

.r601-hero-lead{
  grid-column: 1 / -1;

  font-size: 1.05rem;
  line-height: 1.6;

  color: rgba(255,255,255,.78);
}

.r601-hero-list{
  grid-column: 1 / 2;
  margin: 0;
  padding-left: 18px;
  opacity: .9;
}

.r601-hero-list li{ margin: 6px 0; }

/* =========================================================
   5) Sections / Helpers
   ========================================================= */

.r601-section{ margin: 26px 0 34px; }

section[id], article[id], [id].r601-section{
  scroll-margin-top: calc(var(--r601-nav-h) + 12px);
}

.r601-section h2{
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.r601-muted{ 
  opacity: .82;
  margin: 0; 
}

.r601-muted_service{ 
  opacity: .82;
}


.r601-hr{
  margin: 16px 0 14px;
  border: 0;
  border-top: 1px solid var(--r601-border);
  opacity: .9;
}

/* =========================================================
   6) Grid
   ========================================================= */

.r601-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;

  /* important: equal-height cards per row */
  align-items: stretch;
}

.r601-grid--top{ align-items: stretch; }

.r601-col-6{ grid-column: span 6; }
.r601-col-12{ grid-column: span 12; }

/* =========================================================
   7) Cards
   ========================================================= */

.r601-card{
  border-radius: 18px;
  border: 1px solid var(--r601-border);

  background: var(--r601-surface);
  box-shadow: var(--r601-shadow);

  padding: 18px;

  /* let CSS Grid stretch them */
  height: 100%;
}

.r601-card h3{
  margin-top: 0;
  font-weight: 800;
}

/* =========================================================
   8) Services
   ========================================================= */

.r601-service{
  display:flex;
  gap: 12px;

  padding: 12px;
  border-radius: 14px;

  background: rgba(255,255,255,.03);
  transition: transform .15s ease, background .15s ease;
  align-items: center;
  position: relative;
}

.r601-service + .r601-service{ margin-top: 12px; }

.r601-service:hover{
  transform: translateY(-2px);
  background: rgba(91,192,222,.08);
  z-index: 1;
}

.r601-service__ico{
  width: 34px;
  height: 34px;
  flex: 0 0 34px;

  border-radius: 12px;

  display:flex;
  align-items:center;
  justify-content:center;

  background: rgba(91,192,222,.12);
  border: 1px solid rgba(91,192,222,.20);

  color: #a8ecff;

  font-size: 16px;
  line-height: 1;

  font-family:
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Noto Color Emoji",
    ui-sans-serif,
    system-ui;

  transform: translateY(1px);
}

.r601-service strong{ display:block; }

.r601-service p{
  margin: 6px 0 0;
  opacity: .85;
}

/* =========================================================
   9) Projects / Tiles
   ========================================================= */

.r601-projectSections{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.r601-projectSection{
  grid-column: span 6;

  border-radius: 18px;
  border: 1px solid var(--r601-border);

  background: rgba(255,255,255,.03);
  box-shadow: var(--r601-shadow);

  padding: 14px;
}

.r601-projectSection__head{
  display:flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.r601-projectSection__head h3{
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}



.r601-tile{
  display:block;

  border-radius: 16px;
  overflow:hidden;

  border: 1px solid var(--r601-border);
  background: rgba(255,255,255,.03);
  box-shadow: var(--r601-shadow);

  text-decoration:none;
  position:relative;

  transition: transform .15s ease, border-color .15s ease;
}

.r601-tile:hover{
  transform: translateY(-3px);
  border-color: rgba(91,192,222,.28);
}

.r601-tile img{
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: top;
}

.r601-tile::after{
  content:"";
  position:absolute;
  inset:0;

  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.35) 100%);
}

.r601-tile__body{
  position:relative;
  z-index:1;
  padding: 12px;
}

.r601-tile__body h4{
  margin: 0 0 6px;
  font-weight: 800;
}

.r601-tile__body p{
  margin: 0;
  font-size: .95rem;
  opacity: .78;
}



.r601-status-badges{
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.r601-status-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--r601-border);
}

.r601-status-row span{
  font-size: .95rem;
  opacity: .9;
}

.r601-status-row img{
  height: 20px;
}




/* =========================================================
   10) Footer
   ========================================================= */

.r601-footer{
  margin: 44px 0 28px;
  text-align:center;
  opacity: .85;

  border-top: 1px solid var(--r601-border);
  padding-top: 16px;
}

/* =========================================================
   11) Responsive (mobile at the end)
   ========================================================= */

@media (max-width:800px){
  .r601-status-badges{
    grid-template-columns: 1fr;
  }
}

@media (max-width:980px){
  .r601-projectSection{ grid-column: span 12; }
}

@media (max-width:900px){
  .r601-col-6{ grid-column: span 12; }
}

@media (max-width:720px){
  .r601-hero{ grid-template-columns: 1fr; }
}

/* NAV mobile: menu in normal flow (simple, instant) */
@media (max-width:760px){

  /* show burger */
  .r601-burger{
    display:grid;
    place-items:center;
  }

  /* menu becomes second row and is hidden by default */
  .r601-nav__inner{
    flex-wrap: wrap;
    align-items: center;
  }

  .r601-links{
    width: 100%;
    margin-top: 10px;

    padding: 8px;

    background: rgba(255,255,255,.03);
    border: 1px solid var(--r601-border);
    border-radius: 14px;

    display:none;            /* closed */
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .r601-links.is-open{
    display:flex;            /* open */
  }

  .r601-links a{
    display:block;
    width:100%;
    padding: 12px 10px;
    border-radius: 10px;
  }

  .r601-links .r601-cta{
    width:100%;
    text-align:center;
    margin-top: 6px;
    display:block;
  }
}