/* =========================
   LM Tattoo Studio - Styles
   Mobile-first, clean, dark, gallery-focused
   ========================= */

/* ---- CSS Variables ---- */
:root{
  --bg: #0b0b0f;
  --bg2:#0f0f15;
  --card:#11111a;
  --card2:#141423;
  --text:#f2f2f6;
  --muted:#b7b7c6;
  --border: rgba(255,255,255,.10);
  --shadow: 0 12px 30px rgba(0,0,0,.45);

  --accent:#d70f28; /* LM red */
  --accent2:#ff2241;

  --radius:18px;
  --radius2:24px;

  --max: 1600px;
}

/* ---- Logo ---- */
.brand-logo{
  display:flex;
  align-items:center;
  flex: 0 0 auto;
}
.brand-logo img{
  height: 500px;
  width: auto;
  max-width: none;
  display:block;
  object-fit: contain;
}

/* Tablet */
@media (min-width:720px){
  .brand-logo img{
    height: 72px;
    max-width: 260px;
  }
}

/* Desktop (bigger logo, per request) */
@media (min-width:1200px){
  .brand-logo img{
    height: 140px;
    max-width: none;
  }
}

/* icon links (Facebook / TikTok) */
.icon-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  overflow:hidden;
}
.icon-link img{
  width: 20px;
  height: 20px;
  object-fit: contain;
  display:block;
}

/* ---- Reset ---- */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 20% 0%, rgba(215,15,40,.10), transparent 55%),
              radial-gradient(900px 650px at 85% 20%, rgba(255,34,65,.08), transparent 55%),
              var(--bg);
  color:var(--text);
  line-height:1.55;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.92; }

.container{
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.section{ padding: 22px 0; }

.h2{
  margin:0;
  font-size: 22px;
  letter-spacing: .2px;
}
.p{
  margin: 8px 0 0 0;
  color: var(--muted);
}

.kicker{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

/* ---- Header ---- */
.header{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(11,11,15,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 14px 0;
}

/* Actions row (single source of icons + menu) */
.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Desktop: nav visible, menu hidden, icons far right */
.nav{
  display:none;
  gap: 14px;
  align-items:center;
  flex-wrap:wrap;
}
.nav a{
  font-size: 13px;
  color: rgba(255,255,255,.88);
  padding: 8px 10px;
  border-radius: 10px;
}
.nav a.active{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}

.menu-btn{
  padding: 9px 12px;
}

/* Mobile nav panel */
.mobile-nav{
  display:none;
  padding: 10px 0 16px 0;
  border-top: 1px solid var(--border);
}
.mobile-nav.open{ display:block; }
.mobile-nav a{
  display:block;
  padding: 12px 8px;
  border-radius: 12px;
  color: rgba(255,255,255,.92);
}
.mobile-nav a:hover{
  background: rgba(255,255,255,.06);
}
.mobile-nav a.active{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}

/* ---- Buttons ---- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  font-weight: 650;
  font-size: 13px;
  cursor:pointer;
  user-select:none;
  transition: transform .08s ease, background .15s ease, border .15s ease;
}
.btn:hover{ background: rgba(255,255,255,.09); }
.btn:active{ transform: translateY(1px); }

.btn-accent{
  background: linear-gradient(180deg, var(--accent2), var(--accent));
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
}
.btn-accent:hover{ filter: brightness(1.03); }

.btn-outline{
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
}

/* ---- Cards ---- */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card.form{ padding: 18px; }

.intro-card{ padding: 18px; }

/* ---- Hero / Media ---- */
.hero-media-section{ padding-top: 0; }

.hero-media{
  position:relative;
  overflow:hidden;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  background: var(--bg2);
}
.hero-media{
  position:relative;
  overflow:hidden;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-media img{
  width:100%;
  height:320px;              /* mobile height */
  object-fit: cover;       /* prevents destructive cropping */
  object-position:center;
  display:block;
}

/* Tablet */
@media (min-width:720px){
  .brand-logo{
    margin-left: 10px; /* slight right shift on desktop/tablet */
  }
  .brand-logo img{
    height: 96px !important; /* bigger (you WILL see this) */
    max-width: 3250px !important;
    width: auto;
  }
}

/* Desktop */
/* Desktop logo — larger, professional size */
@media (min-width:1200px){
    .brand-logo{margin-left:25px;
    }
    .brand-logo img{
    height: 160px; /* increase from 58px → 110px */
    width: auto;
    max-width: none; /* removes restriction */
  }

  .header-inner{
    padding: 12px 0; /* ensures header balances new size */
  }
}

.hero-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.40) 40%, rgba(0,0,0,.15) 70%, rgba(0,0,0,0) 100%);
  display:flex;
  align-items:flex-end;
}
.hero-content{
  padding: 18px;
  max-width: 640px;
}
.hero-title{
  margin: 8px 0 6px 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: .2px;
}
.hero-sub{
  margin: 0;
  color: rgba(255,255,255,.85);
}
.hero-actions{
  margin-top: 14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* ---- Grid / Tiles ---- */
.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.grid.work{
  grid-template-columns: repeat(2, 1fr);
}

.tile{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform .12s ease, border .15s ease;
}
.tile:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
}
.tile img{
  width:100%;
  height: 180px;
  object-fit: cover;
  display:block;
}

/* ---- Studio Details (brand-heavy image) ---- */
.studio-card{ padding: 18px; }

.studio-details{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.studio-details-media{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
}
.studio-details-media img{
  width:100%;
  height: 3000px;
  object-fit: cover;
  object-position: center;
  display:block;
}

/* ---- Forms ---- */
.field{ margin-bottom: 12px; }
label{
  display:block;
  font-size: 12px;
  color: rgba(255,255,255,.86);
  margin-bottom: 6px;
}
input, select, textarea{
  width:100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline:none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(255,255,255,.28);
}
textarea{
  min-height: 120px;
  resize: vertical;
}
.form-row{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* ---- Mobile action bar ---- */
.mobile-bar{
  position: fixed;
  left:0;
  right:0;
  bottom:0;
  padding: 10px 0;
  background: rgba(11,11,15,.86);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  z-index: 60;
}
.mobile-bar-inner{
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display:flex;
  gap:10px;
}
.mobile-bar-inner .btn{
  flex:1;
  padding: 12px 12px;
  border-radius: 16px;
}

/* Spacer so content doesn’t hide behind fixed mobile bar */
.spacer-for-bar{ height: 78px; }

/* ---- Footer ---- */
.footer{
  margin-top: 26px;
  padding: 26px 0 100px 0;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.18);
}
.footer-inner{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.footer h4{
  margin: 0 0 8px 0;
  font-size: 14px;
  letter-spacing: .03em;
}
.footer small{ color: var(--muted); }
.footer a{ color: rgba(255,255,255,.88); }
.footer a:hover{ opacity:.92; }
.footer-bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.70);
  font-size: 12px;
}

/* ---- Lightbox ---- */
.lightbox-overlay{
  position: fixed;
  inset: 0;
  display:none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.86);
  z-index: 999;
}
.lightbox-overlay.open{ display:flex; }

.lightbox-img{
  max-width: min(100%, 980px);
  max-height: 84vh;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  background: #000;
}
.lightbox-close{
  position: fixed;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 26px;
  cursor:pointer;
}

/* =========================
   Responsive upgrades
   ========================= */
@media (min-width: 720px){
  .nav{ display:flex; }

  /* Desktop: hide menu button */
  .menu-btn{ display:none; }

  /* Desktop hero sizing */
  .hero-media img{ height: 360px; }

  .hero-title{ font-size: 38px; }

  .grid.work{
    grid-template-columns: repeat(3, 1fr);
  }
  .tile img{ height: 210px; }

  .footer-inner{
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .form-row{
    grid-template-columns: 1fr 1fr;
  }

  /* Studio details: image on RIGHT */
  .studio-details{
    grid-template-columns: 1.6fr 1fr;
    align-items: stretch;
  }
  .studio-details-media{ order: 2; }
  .studio-details-body{ order: 1; }
  .studio-details-media img{
    height: 100%;
    min-height: 260px;
  }
}

@media (min-width: 980px){
  .hero-content{ padding: 22px; }
  .hero-title{ font-size: 44px; }
  .grid.work{
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .tile img{ height: 240px; }
  .hero-media img{ height: 420px; }
}

/* =========================
   Mobile fit fixes (header + index)
   ========================= */
@media (max-width: 719px){

  /* Stack header: logo centered, then a row with menu left + icons */
  .header-inner{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .header-actions{
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 0 12px 0;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .hero-actions{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hero-actions .btn{
    width:100%;
    padding: 12px 12px;
    border-radius: 16px;
    white-space: nowrap;
  }
  .hero-actions .btn.btn-accent{
    grid-column: 1 / -1;
  }

  .intro-card{ padding: 14px; }

  .spacer-for-bar{ height: 92px; }
}
/* Desktop fix — compact right image and align properly */
@media (min-width: 720px){

    .studio-details{
        grid-template-columns: 1.9fr 0.9fr;
        align-items: start;
        gap: 16px;
    }

    .studio-details-media img{
        height: 240px;   /* smaller, compact */
        min-height: 0;
        max-height: 240px;
        object-fit: contain;
        background: rgba(0,0,0,.25);
    }

}