/* Kings Group - Corporate minimal (no frameworks)
   Palette aligned to black + gold accents.
*/

:root{
  --bg:#ffffff;
  --bg2:#fafafa;
  --text:#0b0b0b;
  --muted:#4b5563;
  --line:#e5e7eb;
  --accent:#f2c94c;     /* gold */
  --accent2:#d4a017;    /* deep gold */
  --shadow: 0 14px 34px rgba(0,0,0,.10);
  --radius:18px;
  --max:1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: linear-gradient(180deg, var(--bg), var(--bg2));
}
/* Safari fallback: stable image sizing */
img{max-width:100%;}


a{color:inherit;text-decoration:none}
a:hover{opacity:.92}
p{line-height:1.7;margin:0 0 14px}
h1,h2,h3{line-height:1.15;margin:0 0 12px}
h1{font-size:clamp(2rem,3.4vw,3.25rem);letter-spacing:-.02em}
h2{font-size:clamp(1.55rem,2.2vw,2.15rem);letter-spacing:-.015em}
h3{font-size:1.12rem;letter-spacing:-.01em}
.muted{color:var(--muted)}

.container{width:min(var(--max), calc(100% - 40px)); margin-inline:auto}

.skip-link{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px; width:auto; height:auto;
  padding:10px 12px; background:#fff; border:1px solid var(--line);
  border-radius:12px; z-index:9999;
}

.site-header{
  position:sticky; top:0; z-index:1000;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand{display:flex; align-items:center; gap:12px}
.brand img{height:34px; width:auto; display:block}
.brand-name{font-weight:750; letter-spacing:.02em}

.nav{display:flex; align-items:center}
.nav-toggle{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
}
.burger{display:block;width:18px;height:2px;background:var(--text);margin:0 auto;position:relative}
.burger:before,.burger:after{content:"";position:absolute;left:0;width:18px;height:2px;background:var(--text)}
.burger:before{top:-6px}
.burger:after{top:6px}

.nav-menu{
  list-style:none;
  display:flex; align-items:center; gap:18px;
  margin:0; padding:0;
}
.nav-menu a{
  padding:10px 10px;
  border-radius:12px;
  color:var(--muted);
}
.nav-menu a:hover{color:var(--text); background: rgba(0,0,0,.04)}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#111;
  font-weight:750;
  border:1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 26px rgba(242,201,76,.28);
}
.btn:hover{transform: translateY(-1px); transition: transform .12s ease}
.btn:active{transform: translateY(0px)}
.btn-small{padding:10px 12px;border-radius:12px}
.btn-ghost{
  background: transparent;
  color: var(--text);
  border:1px solid var(--line);
  box-shadow:none;
}
.btn-ghost:hover{background: rgba(0,0,0,.03)}

.lang{
  border:1px solid var(--line);
  background:#fff;
  border-radius: 999px;
  padding: 7px 10px;
  font-weight:650;
  color: var(--muted);
}

.hero{
  padding: 52px 0 22px;
  position:relative;
  overflow:hidden;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items:stretch;
}
.eyebrow{
  display:inline-flex;
  gap:10px;
  font-size:.92rem;
  color: var(--muted);
  margin:0 0 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background:#fff;
}
.lead{font-size:1.06rem;color:var(--muted);margin:0 0 18px}
.hero-cta{display:flex; gap:12px; flex-wrap:wrap; margin: 14px 0 18px}

.hero-visual{
  border-radius: calc(var(--radius) + 6px);
  border:1px solid var(--line);
  background: radial-gradient(900px 400px at 20% 20%, rgba(242,201,76,.22), transparent 55%),
              radial-gradient(650px 320px at 75% 25%, rgba(0,0,0,.08), transparent 60%),
              linear-gradient(180deg, #ffffff, #f7f7f7);
  min-height: 360px;
  position:relative;
  overflow:hidden;
  box-shadow: var(--shadow);
}
.hero-visual::after{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(135deg, rgba(0,0,0,.02), rgba(0,0,0,0) 45%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.03) 0 1px, transparent 1px 90px);
  pointer-events:none;
}
.hero-card{
  position:absolute;
  left:18px; right:18px; bottom:18px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  padding: 14px 14px;
}
.hero-card-title{font-weight:750;margin:0 0 6px}
.hero-card-text{margin:0;color:var(--muted)}

.section{padding: 56px 0}
.section.alt{
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,0));
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.section-head{margin-bottom: 18px; max-width: 820px}

.two-col{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 20px;
  align-items:start;
}

.card{
  border:1px solid var(--line);
  background:#fff;
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: var(--shadow);
}

.pill-row{display:flex; gap:10px; flex-wrap:wrap; margin-top: 18px}
.pill{
  font-size:.9rem;
  color: var(--muted);
  border:1px solid var(--line);
  background: #fff;
  padding: 8px 10px;
  border-radius: 999px;
}

.checklist{padding-left: 18px; margin: 12px 0 0; color: var(--muted)}
.checklist li{margin: 8px 0}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.feature{
  border:1px solid var(--line);
  background:#fff;
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
}
.icon{
  width:40px;height:40px;
  display:grid;place-items:center;
  border-radius:14px;
  border:1px solid var(--line);
  background: #fff;
  margin-bottom: 10px;
  color:#111;
  font-size: 18px;
}
.icon.accent{ background: rgba(242,201,76,.28); border-color: rgba(0,0,0,.08); }

.projects{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.project{
  border:1px solid var(--line);
  background:#fff;
  border-radius: calc(var(--radius) + 6px);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.project-media{
  height: 152px;
  background: linear-gradient(135deg, rgba(242,201,76,.30), rgba(0,0,0,.06));
}
.project-body{padding: 14px 14px 16px}
.tags{list-style:none;display:flex;gap:8px;flex-wrap:wrap;padding:0;margin: 12px 0 0}
.tags li{
  font-size:.85rem;
  color: var(--muted);
  border:1px solid var(--line);
  background:#fff;
  padding: 6px 8px;
  border-radius: 999px;
}

.note{
  margin-top: 16px;
  border:1px dashed rgba(0,0,0,.18);
  background: rgba(0,0,0,.01);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--muted);
}

.contact-cards{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}
.mini-card{
  border:1px solid var(--line);
  background:#fff;
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.mini-title{font-weight:750;margin-bottom:6px}
.mini-link{color: var(--text)}
.mini-note{color: var(--muted); font-size:.9rem; margin-top:4px}

.form label{display:block;font-size:.92rem;color: var(--muted);margin: 10px 0 10px}
input, textarea{
  width:100%;
  margin-top: 6px;
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: #fff;
  color: var(--text);
  outline:none;
}
input:focus, textarea:focus{border-color: rgba(242,201,76,.85); box-shadow: 0 0 0 4px rgba(242,201,76,.22)}
.form-hint{margin: 10px 0 0; font-size: .92rem}
.form-status{margin-top: 10px; font-size:.95rem}

.footer{
  border-top:1px solid var(--line);
  padding: 26px 0;
  background: #fff;
}
.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}
.footer-link{color: var(--muted); margin-left: 14px}
.footer-link:hover{color: var(--text)}
.brand-footer img{height:30px}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

@media (max-width: 960px){
  .hero-inner{grid-template-columns:1fr}
  .hero-visual{min-height: 300px}
  .two-col{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
  .projects{grid-template-columns:1fr}
  .nav-toggle{display:inline-flex; align-items:center; justify-content:center}
  .nav-menu{
    position:absolute;
    right: 20px;
    top: 66px;
    width: min(340px, calc(100vw - 40px));
    flex-direction:column;
    align-items:stretch;
    gap: 6px;
    padding: 10px;
    border-radius: 18px;
    border:1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
    display:none;
  }
  .nav-menu.open{display:flex}
  .nav-menu a{padding: 12px 12px}
}



/* --- Enhancements: imagery + richer contrast --- */
.hero-visual{ background: #111; }
.hero-img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.02);
}
.hero-visual::after{
  /* stronger overlay for legibility */
  background:
    linear-gradient(135deg, rgba(0,0,0,.55), rgba(0,0,0,.10) 55%),
    radial-gradient(700px 420px at 25% 20%, rgba(242,201,76,.22), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 96px);
}

.hero-card{
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.88);
}

.project-media{
  background-size: cover;
  background-position: center;
}
.project-media::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35));
  pointer-events:none;
}

.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.gallery-item{
  margin:0;
  border-radius: calc(var(--radius) + 6px);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  background:#fff;
}
.gallery-item img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.gallery-item:nth-child(1){ grid-column: span 7; aspect-ratio: 16/9; }
.gallery-item:nth-child(2){ grid-column: span 5; aspect-ratio: 4/5; }
.gallery-item:nth-child(3){ grid-column: span 6; aspect-ratio: 16/10; }
.gallery-item:nth-child(4){ grid-column: span 6; aspect-ratio: 16/10; }

@media (max-width: 860px){
  .gallery{ grid-template-columns: 1fr; }
  .gallery-item{ grid-column: auto !important; aspect-ratio: 16/10 !important; }
}

/* Honeypot hidden */
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }



/* --- Galleries & media sizing (2026-02) --- */
.project-media{
  position: relative;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: #f3f4f6;
}
.project-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.gallery-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.gallery-item{
  grid-column: span 4;
  border-radius: 18px;
  overflow:hidden;
  background:#f3f4f6;
  position: relative;
  box-shadow: var(--shadow);
}
.gallery-item img{
  width:100%;
  height: 240px;
  object-fit: cover;
  display:block;
  transform: scale(1.001);
  transition: transform .25s ease;
}
.gallery-item:hover img{ transform: scale(1.04); }

@media (max-width: 900px){
  .gallery-item{ grid-column: span 6; }
  .gallery-item img{ height: 220px; }
}
@media (max-width: 560px){
  .gallery-item{ grid-column: span 12; }
  .gallery-item img{ height: 210px; }
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 9999;
}
.lightbox.open{ display:flex; }
.lightbox img{
  max-width: min(1100px, 96vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
}
.lightbox .lb-close{
  position:absolute;
  top:14px; right:14px;
  width:44px; height:44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color:#fff;
  font-size: 22px;
  line-height: 1;
  cursor:pointer;
}

/* Safari fallback */
.gallery-item{height:260px;}
@media (max-width: 640px){.gallery-item{height:220px;}}
@supports (aspect-ratio: 1 / 1){.gallery-item{height:auto;}}
