/* --- Base --- */
* { box-sizing: border-box; }

:root{
  --bg1: #1c1717;
  --bg2: #2d2828;
  --card: rgba(94, 94, 94, 0.08);
  --card-border: rgba(255,255,255,0.14);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --accent: #ab8d28;
  --accent2: #eca61a;
  --danger: #ff4d6d;
  --ok: #e5d62e;
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
}

html, body { height: 100%; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1500px 1600px at 30% 10%, #D3AF37, transparent 20%),
    radial-gradient(900px 500px at 80% 30%, rgb(43, 26, 22), transparent 55%),
    linear-gradient(160deg, var(--bg1), var(--bg2));  /* ozadje */
  display: flex;
  place-items: center;
  padding: 24px;
}

/* --- Layout --- */
.container{
  width: min(600px, 100%);
  margin: 0 auto;
}

@media (max-width: 700px){
  .container{ grid-template-columns: 1fr; }
}

.card{
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  border-radius: 16px;

  padding: 20px;
  width: min(420px, 90%);

  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 10px;
}

p{
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.side{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap: 14px;
}

.kicker{
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  margin: 0;
}

.small{
  font-size: 13px;
  color: rgba(255,255,255,0.62);
}

/* --- Form --- */
form{
  margin-top: 8px;
  display:flex;
  gap: 8px;
}

@media (max-width: 520px){
  form{ flex-direction: column; }
}

input[type="email"]{
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.18);
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  font: inherit;
}

input[type="email"]::placeholder{
  color: rgba(255,255,255,0.48);
}

input[type="email"]:focus{
  border-color: rgba(250, 255, 92, 0.65);
  box-shadow: 0 0 0 4px rgba(250, 255, 92, 0.18);
  transform: translateY(-1px);
}

button{
  padding: 8px 14px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-size-adjust: 0.45;
  font-weight: 600;
  color: #0b1020;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 14px 30px rgba(35,213,171,0.18);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}

button:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 40px rgba(235, 255, 145, 0.16);
}

button:active{
  transform: translateY(0px);
}

/* --- Message --- */
.message{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.9);
  min-height: 44px;
  display:flex;
  align-items:center;
}

.message.is-success{
  border-color: rgba(46,229,157,0.35);
  background: rgba(46,229,157,0.12);
}

.message.is-error{
  border-color: rgba(255,77,109,0.35);
  background: rgba(255,77,109,0.12);
}

/* --- Tiny footer --- */
.footer{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}

.logo img {
  height: 60px;   /* adjust size */
  width: auto;
  position: absolute;
  top: 10px;
  left: 10px;
}

/* ===== TOP NAVIGATION ===== */
.top-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 60px;

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

  background: rgba(0, 0, 0, 0.85); /* dark background */
  backdrop-filter: blur(10px);

  z-index: 1000;
}

/* Logo */
.logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* Navigation Links */
.top-nav a {
  margin-left: 40px;
  text-decoration: none;
  font-family: inherit;       /* uses same font as page */
  font-size: 16px;
  font-weight: 500;
  color: #D3AF37;             /* uses your existing text color */
  letter-spacing: 1px;
  transition: 0.3s ease;
}

/* Hover effect */
.top-nav a:hover {
  color: #ffffff;             /* lighter color on hover */
}

.hero {
  text-align: center;
  max-width: 900px;
  margin: -200px auto 0 auto;  /* space below top nav */
  padding: 0 20px;
}

.main-title {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 20px;
  color:#f4d05b;
}

.main-text {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.85;
}

/* ===== 2-column page layout ===== */
.page{
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 60px 60px; /* top padding leaves space for fixed top nav */
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* left bigger, right reserved for image */
  gap: 60px;
  align-items: start;
}

.left{
  display: flex;
  flex-direction: column;
  gap: 26px; /* space between hero and card */
  max-width: 560px;
}

.right{
  min-height: 520px;              /* space for picture */
  border-radius: 20px;
  background: rgba(0,0,0,0.12);   /* placeholder “image area” */
  border: 1px solid rgba(255,255,255,0.08);
}

/* If you put an actual image inside .right */
.hero-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

/* ===== Hero styling (left) ===== */
.hero-title{
  margin: 0 0 12px 0;
  font-size: 54px;
  font-weight: 600;
  color: var(--accent);
}

.hero-text{
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.6;
  font-size: 18px;
}

/* ===== Card: make it normal flow, compact, not fixed ===== */
.card{
  position: static;       /* IMPORTANT: stops fixed floating */
  width: 100%;
  right: auto;
  bottom: auto;
  transform: none;

  border-radius: 16px;
  padding: 18px 18px;
}

/* Make the subscribe row more horizontal/compact */
.card form{
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.card input[type="email"]{
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  font: inherit;
}

.card button{
  padding: 12px 16px;
  border-radius: 12px;
}

/* ===== Mobile responsive ===== */
@media (max-width: 900px){
  .page{
    grid-template-columns: 1fr;
    padding: 120px 20px 40px;
  }
  .left{ max-width: 100%; }
  .right{ min-height: 260px; }
}

/* =========================
   2-COLUMN LAYOUT FIX
   Put this at the VERY END of styles.css
   ========================= */

/* Stop the old centering layout from breaking the page */
body{
  display: block !important;     /* overrides your old display:flex */
  place-items: unset !important;
  padding: 0 !important;
}

/* Main grid: left content + right image space */
.page{
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 60px 60px; /* space for fixed top nav */
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

/* Left column: hero above card */
.left{
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 620px;
}

/* Right column: reserved space for image */
.right{
  min-height: 520px;
  border-radius: 20px;
  background: rgba(0,0,0,0.12); /* placeholder */
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

/* If you add an actual image inside .right */
.right img,
.hero-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero text styles */
.hero{
  text-align: left;
}

.hero-title{
  margin: 0 0 12px 0;
  font-size: 35px;
  font-weight: 600;
  color: #fff36a;
}

.hero-text{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
  max-width: 60ch;
}

/* Make your card part of the left column (NOT fixed) */
.card{
  position: static !important;   /* overrides old fixed positioning */
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;

  width: 100%;
  max-width: 620px;
}

/* Make the form compact and horizontal */
.card form{
  display: flex;
  gap: 12px;
  align-items: center;
}

.card input[type="email"]{
  flex: 1;
  font: inherit;                 /* fixes your broken "font:" line */
}

/* Mobile responsive: stack columns */
@media (max-width: 900px){
  .page{
    grid-template-columns: 1fr;
    padding: 110px 20px 40px;
    gap: 24px;
  }
  .left{ max-width: 100%; }
  .right{ min-height: 260px; }
}

/* ===== Layout overrides for 2-column page ===== */

/* Stop the old body centering from breaking the grid */
body{
  display: block;
  padding: 0;
}

/* The card must NOT be fixed if it should sit under the hero */
.card{
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  max-width: 560px; /* matches your .left max-width */
}
/* === FIX HERO VISIBILITY (override old negative margin) === */
.hero{
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  text-align: left !important;
}

/* Remove the visible placeholder box on the right */
.right{
  background: transparent !important;
  border: none !important;
}

html, body {
  min-height: 100%;
}

body {
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Make sure P2 Funding button is visible in the left column */
/* ===== P2 Funding button (single source of truth) ===== */
.navigation{
  position: absolute;
  bottom: 50px;
  right: 47px;
  margin-top: 15px;
}

.navigation .nav-link{
  display: inline-block;
  color: #D3AF37;
  text-decoration: none;
}

/* =========================
   P2 FUNDING PAGE (match main vibe)
   ========================= */

.p2-body{
  /* uses same global background + fonts from body */
}

/* Layout container */
.p2-page{
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 60px 60px; /* same idea as .page, leaves space for fixed top nav */
}

/* Title area */
.p2-hero{
  max-width: 900px;
  margin-bottom: 28px;
}

.p2-title{
  margin: 0 0 10px 0;
  font-size: 42px;
  font-weight: 600;
  color: #fff36a; /* same gold-ish heading vibe as your hero-title */
}

.p2-subtitle{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
  max-width: 70ch;
}

/* Two images row */
.p2-gallery{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0 22px 0;
}

.p2-img{
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow);
  background: rgba(0,0,0,0.18);
}

/* Text card */
.p2-content{
  max-width: 900px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  border-radius: 20px;
  padding: 22px;
}

.p2-heading{
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

.p2-content p{
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Back link */
.p2-actions{
  margin-top: 18px;
}

.p2-back{
  display: inline-block;
  text-decoration: none;
  color: #D3AF37;
}

.p2-back:hover{
  color: #ffffff;
}

/* Mobile */
@media (max-width: 900px){
  .p2-page{
    padding: 120px 20px 40px;
  }
  .p2-gallery{
    grid-template-columns: 1fr;
  }
  .p2-img{
    height: 240px;
  }
}