/* Modern, simple styling (no Bootstrap needed) */

:root{
  --max: 1040px;
  --pad: 20px;

  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --bg: #ffffff;
  --surface: #ffffff;

  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 16px;

  --brand: #0f172a;
  --brand-2: #334155;

  --link: #84414A; /* preserved from your existing CSS */
  --link-hover: #666666;
}

*{ box-sizing:border-box; }

html, body{
  margin:0;
  padding:0;
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

/* Links (preserved behavior) */
a:link, a:visited{
  color: var(--link);
  text-decoration: underline;
}
a:hover{
  color: var(--link-hover);
  text-decoration: underline;
}
a:active{
  color: var(--link);
  text-decoration: underline;
}

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

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

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

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration: none;
  color: var(--brand);
}
.brand:hover{ text-decoration: none; }
.brand-mark{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--brand);
  display:inline-block;
}
.brand-name{
  font-weight: 750;
  letter-spacing: 0.2px;
}

.nav{
  display:flex;
  flex-wrap: wrap;
  gap: 14px;
}
.nav a{
  text-decoration: none;
  color: var(--brand-2);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 12px;
}
.nav a:hover{
  background: #f8fafc;
  text-decoration: none;
}

/* Hero */
.hero{
  border-bottom: 1px solid var(--border);
  padding: 46px 0;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 22px;
  align-items:center;
}
.logo{
  width: 100%;
  height: auto;
  display:block;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 18px;
}

h1{
  font-size: clamp(28px, 3vw, 40px);
  margin: 0 0 10px 0;
  line-height: 1.15;
}
.lead{
  color: var(--muted);
  margin: 0;
  max-width: 65ch;
}

.actions{
  margin-top: 18px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none !important; /* override link underline */
  color: var(--text) !important;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  font-weight: 650;
}
.btn:hover{
  background: #f8fafc;
}
.btn.primary{
  background: var(--brand);
  border-color: var(--brand);
  color: #fff !important;
}
.btn.primary:hover{
  background: #111827;
}
.btn.block{
  width: 100%;
}

.meta{
  margin-top: 14px;
  color: var(--muted);
}
.meta-sep{ margin: 0 8px; }

/* Sections */
.section{
  padding: 44px 0;
}
.section h2{
  font-size: 26px;
  margin: 0 0 14px 0;
}
.section-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.muted{ color: var(--muted); }

.grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card h3{
  margin: 0 0 8px 0;
  font-size: 18px;
}
.card p{
  margin: 0;
  color: var(--muted);
}

/* Slider */
.slider{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.slider-viewport{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f8fafc;
}
.slide{
  position:absolute;
  inset:0;
  opacity: 0;
  transform: scale(0.99);
  transition: opacity 200ms ease, transform 200ms ease;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px;
}
.slide.is-active{
  opacity: 1;
  transform: scale(1);
}
.slide img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display:block;
}

.slider-controls{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.icon-btn{
  width: 44px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.icon-btn:hover{ background: #f8fafc; }

.dots{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}
.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}
.dot[aria-selected="true"]{
  background: var(--brand);
  border-color: var(--brand);
}

/* Catalog */
.catalog-actions{
  display:grid;
  gap: 10px;
  max-width: 720px;
}
.form{
  display:grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
label{
  font-weight: 650;
  color: var(--text);
}
input[type="password"]{
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
}

.resource-list{
  margin-top: 16px;
  display:grid;
  gap: 10px;
  max-width: 720px;
}
.resource{
  display:block;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  text-decoration: none !important;
  color: var(--text) !important;
  font-weight: 650;
}
.resource:hover{
  background: #f8fafc;
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.footer-inner{
  display:flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 860px){
  .hero-inner{
    grid-template-columns: 1fr;
  }
  .nav{
    gap: 8px;
  }
  .grid-2{
    grid-template-columns: 1fr;
  }
  .slider-viewport{
    aspect-ratio: 4 / 3;
  }
}
