:root{
  --site-width: 1400px;
  --text-width: 860px;

  --paper: #F7F1E6;
  --sand: #E8D7C2;

  --gold: #B58A2A;
  --accent: #90241d;

  --text-dark: #2C2218;
  --text-soft: #5A4D40;

  --line: rgba(181,138,42,.22);
  --line-accent: rgba(144,36,29,.20);

  --shadow-card: 0 18px 42px rgba(44,34,24,.08);
  --shadow-hover: 0 24px 55px rgba(44,34,24,.12);

  --radius-lg: 22px;
}

/* =========================
   RESET
   ========================= */

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:Arial, sans-serif;
  background:linear-gradient(to bottom,var(--paper),var(--sand));
  color:var(--text-dark);
}

/* =========================
   HEADER
   ========================= */

#header{
  width:100%;
  background:var(--paper);
}

#header > div{
  max-width:var(--site-width);
  margin:0 auto;
}

#header .logo{
  display:block;
  width:100%;
  height:520px;
  background:url("../images/header.jpg") center no-repeat;
  background-size:cover;
}

/* =========================
   NAVIGATION
   ========================= */

#header ul{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 28px;
  list-style:none;
  border-bottom:2px solid var(--accent);
  margin:0;
}

#header ul .nav-logo img{
  height:56px;
}

#header ul li a{
  display:inline-block;
  text-decoration:none;
  color:var(--text-dark);
  font-size:14px;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:10px 8px;
  border-bottom:2px solid transparent;
  transition:color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

#header ul li a:hover{
  color:var(--accent);
  transform:translateY(-1px);
}

#header ul li.current a{
  color:var(--accent);
  border-bottom:2px solid var(--accent);
  font-weight:700;
}

/* =========================
   UVOD
   ========================= */

#background{
  padding:80px 0;
  text-align:center;
}

#background > div{
  max-width:var(--site-width);
  margin:0 auto;
  padding:0 20px;
}

#background h1{
  font-family:Georgia, serif;
  font-size:52px;
  margin-bottom:20px;
}

#background h3{
  font-weight:normal;
  font-size:20px;
  color:var(--text-soft);
  margin-bottom:20px;
}

#background p{
  max-width:var(--text-width);
  margin:0 auto 14px;
  font-size:20px;
  line-height:1.7;
  color:var(--text-soft);
}

/* =========================
   GLAVNE KARTICE
   ========================= */

#section{
  padding:80px 0 40px;
}

#section ul{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
  list-style:none;
  padding:0 20px;
}

#section ul li{
  background:white;
  padding:30px;
  border-radius:var(--radius-lg);
  border:1px solid var(--line);
  box-shadow:var(--shadow-card);
  transition:0.2s;
}

#section ul li:hover{
  transform:translateY(-5px);
  box-shadow:var(--shadow-hover);
}

#section h2{
  font-family:Georgia, serif;
  font-size:30px;
  margin-bottom:16px;
}

#section p{
  font-size:16px;
  margin-bottom:12px;
  color:var(--text-soft);
  line-height:1.7;
}

#section a{
  display:inline-block;
  margin-top:10px;
  padding:10px 14px;
  border:1px solid var(--accent);
  border-radius:20px;
  text-decoration:none;
  color:var(--accent);
  font-size:13px;
  transition:0.2s;
}

#section a:hover{
  background:var(--accent);
  color:white;
}

/* =========================
   FEATURED EVENTS (HOME)
   ========================= */

.featured-events{
  max-width:1100px;
  margin:20px auto 70px;
  padding:0 20px;
}

.featured-events h2{
  font-family:Georgia, serif;
  font-size:36px;
  margin-bottom:30px;
}

.featured-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.featured-card{
  background:rgba(255,255,255,0.85);
  border:1px solid rgba(181,138,42,0.22);
  border-radius:20px;
  padding:24px;
  box-shadow:0 14px 32px rgba(0,0,0,0.08);
  transition:transform 0.2s;
}

.featured-card:hover{
  transform:translateY(-4px);
}

.featured-card h3{
  font-family:Georgia, serif;
  font-size:22px;
  margin-bottom:12px;
}

.featured-card p{
  font-size:16px;
  line-height:1.7;
  margin-bottom:16px;
  color:var(--text-soft);
}

.featured-links a{
  display:inline-block;
  margin-right:10px;
  margin-bottom:8px;
  padding:8px 14px;
  border:1px solid var(--accent);
  border-radius:999px;
  text-decoration:none;
  font-size:12px;
  text-transform:uppercase;
  color:var(--accent);
  transition:0.2s;
}

.featured-links a:hover{
  background:var(--accent);
  color:#fff;
}

/* =========================
   FOOTER
   ========================= */

#footer{
  text-align:center;
  padding:40px 20px;
  border-top:1px solid var(--line-accent);
}

#footer .logo img{
  height:60px;
  margin-bottom:10px;
}

#footer ul{
  display:flex;
  justify-content:center;
  gap:20px;
  list-style:none;
  padding:0;
  margin:15px 0;
  flex-wrap:wrap;
}

#footer ul li a{
  text-decoration:none;
  color:var(--text-dark);
  font-size:14px;
}

#footer ul li a:hover{
  color:var(--accent);
}

#footer p{
  font-size:14px;
  color:var(--text-soft);
}

/* =========================
   MOBILE NAV
   ========================= */

.nav-toggle,
.nav-overlay,
.nav-panel{
  display:none;
}

.nav-panel a.current{
  border-color: rgba(181,138,42,0.55);
  background: rgba(181,138,42,0.12);
  color: var(--accent);
  font-weight:700;
}

/* =========================
   RESPONSIVE
   ========================= */

@media(max-width:900px){

  #header .logo{
    height:260px;
  }

  #section ul{
    grid-template-columns:1fr;
  }

  .featured-grid{
    grid-template-columns:1fr;
  }

  #background h1{
    font-size:34px;
  }

  #background p{
    font-size:17px;
  }

  .featured-events h2{
    font-size:30px;
  }
}