/*
Theme Name: KIPS Gradnja
Theme URI: https://kipsgradnja.me
Author: KIPS Gradnja
Description: Custom block theme for KIPS Gradnja, an investment-construction company from Podgorica, Montenegro. Modular ACF blocks, editable per-instance through fields.
Version: 0.1.0
Requires PHP: 8.0
Text Domain: kips-gradnja
*/

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-foreground: #faf8f5;
  --accent: #b8935a;
  --accent-foreground: #1a1a1a;
  --border: #e3ddd2;
  --muted: #f0ece3;
  --muted-foreground: #6b6560;
  --status-free: #4d9a6a;
  --status-reserved: #c99a4a;
  --status-sold: #8a8a86;

  --font-display: 'Cormorant Garamond', 'Playfair Display', ui-serif, Georgia, serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;

  --radius: 4px;
  --section-py: 96px;
  --container-max: 1280px;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0300-0301, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0300-0301, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
}
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container-wide {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) {
  .container-wide { padding-inline: 32px; }
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.kg-reveal {
  animation: kg-reveal-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes kg-reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .kg-reveal { animation: none; }
}

.kg-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.kg-btn--primary {
  background: var(--accent);
  color: var(--accent-foreground);
}
.kg-btn--primary:hover { background: color-mix(in srgb, var(--accent) 90%, white); }
.kg-btn--secondary {
  background: transparent;
  color: var(--ink-foreground);
  border-color: rgba(250, 248, 245, 0.7);
}
.kg-btn--secondary:hover {
  background: var(--ink-foreground);
  color: var(--ink);
}

.kg-hero {
  position: relative;
  width: 100%;
  min-height: 640px;
  height: 100vh;
  overflow: hidden;
  color: var(--ink-foreground);
}
.kg-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kg-hero__scrim { position: absolute; inset: 0; }
.kg-hero__scrim--full { background: rgba(10, 10, 10, 0.25); }
.kg-hero__scrim--horizontal {
  background: linear-gradient(to right, rgba(10, 10, 10, 0.75), rgba(10, 10, 10, 0.45), transparent);
}
.kg-hero__scrim--bottom {
  top: auto;
  height: 66%;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.85), transparent);
}
.kg-hero__content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 96px;
}
.kg-hero__title {
  margin-top: 24px;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  line-height: 1.05;
  max-width: 900px;
  color: var(--ink-foreground);
}
.kg-hero__accent {
  font-style: italic;
  color: var(--accent);
}
.kg-hero__subtext {
  margin-top: 32px;
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(250, 248, 245, 0.8);
}
.kg-hero__ctas {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.kg-hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.6);
}
