/* =====================
   FROSTY BASTION NIERUCHOMOŚCI
   CREATIVE_ARTISTIC STYLE CSS
   ===================== */

/* ====== FONT IMPORTS ====== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

:root {
  --color-primary: #163055;
  --color-secondary: #E3EAF2;
  --color-accent: #04A777;
  --color-accent-dark: #03845E;
  --color-bg: #ffffff;
  --color-bg-alt: #f7fafd;
  --color-hero-gradient: linear-gradient(135deg, #E3EAF2 0%, #04A777 100%);
  --color-card-gradient: linear-gradient(120deg, #E3EAF2 60%, #ffffff 100%);
  --color-shadow: rgba(22, 48, 85, 0.08);
  --color-shadow-strong: rgba(22, 48, 85, 0.18);
  --color-text: #163055;
  --color-text-light: #ffffff;
  --color-link: #04A777;
  --color-link-hover: #03845E;
  --color-error: #e74c3c;
  --color-success: #04A777;
  --radius: 18px;
  --radius-lg: 32px;
  --transition: 0.3s cubic-bezier(.77,.2,.05,1.0);
  --shadow: 0 4px 24px var(--color-shadow);
  --shadow-strong: 0 8px 32px var(--color-shadow-strong);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

html {
  box-sizing: border-box;
  font-size: 18px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
  background-image: url('../assets/bg-artistic.svg'), linear-gradient(120deg, #E3EAF2 0%, #ffffff 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top right;
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 0.7em;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(90deg, #163055 60%, #04A777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5em;
  position: relative;
  display: inline-block;
}
h2:after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #04A777 0%, #163055 100%);
  margin-top: 0.3em;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3em;
}
p, ul, ol, li, blockquote, cite {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
}
blockquote {
  font-style: italic;
  color: var(--color-primary);
  border-left: 4px solid var(--color-accent);
  padding-left: 16px;
  margin: 0 0 0.5em 0;
  font-size: 1.1rem;
}
cite {
  display: block;
  font-size: 0.95rem;
  color: var(--color-accent-dark);
  margin-top: 0.2em;
  font-style: normal;
  letter-spacing: 0.01em;
}
a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--color-link-hover);
  text-decoration: underline;
}

/* ====== CONTAINER & LAYOUT ====== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-card-gradient);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
}

/* ====== HEADER & NAVIGATION ====== */
header {
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: 0;
  box-shadow: 0 2px 12px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  min-height: 80px;
}
header img {
  height: 48px;
  margin-right: 24px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
header nav a {
  color: var(--color-text-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
header nav a:hover, header nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}
.cta-button {
  background: linear-gradient(90deg, #04A777 60%, #03845E 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 32px;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--color-shadow);
  cursor: pointer;
  margin-left: 24px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  z-index: 1;
  letter-spacing: 0.03em;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, #03845E 60%, #04A777 100%);
  transform: translateY(-2px) scale(1.04) rotate(-1deg);
  box-shadow: 0 6px 24px var(--color-shadow-strong);
}

/* ====== MOBILE NAVIGATION ====== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2.2rem;
  cursor: pointer;
  margin-left: 24px;
  transition: color var(--transition), transform var(--transition);
}
.mobile-menu-toggle:active {
  color: var(--color-link-hover);
  transform: scale(1.1) rotate(10deg);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(22,48,85,0.97);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.77,.2,.05,1.0);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2.5rem;
  margin: 24px 32px 0 0;
  cursor: pointer;
  align-self: flex-end;
  transition: color var(--transition), transform var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-link-hover);
  transform: scale(1.1) rotate(-10deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  margin: 40px 0 0 40px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}

/* ====== HERO SECTION ====== */
.hero {
  background: var(--color-hero-gradient);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 8px 32px var(--color-shadow-strong);
  margin-bottom: 60px;
  padding: 60px 0 40px 0;
  position: relative;
  overflow: hidden;
}
.hero .container {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero .content-wrapper {
  gap: 24px;
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5em;
  background: linear-gradient(90deg, #163055 60%, #04A777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 1.2em;
}
.hero .cta-button {
  margin-left: 0;
  margin-top: 12px;
}

/* ====== FLEXBOX LAYOUTS ====== */
.features-grid, .property-gallery, .district-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.features-grid > div, .property-gallery > div, .district-gallery > div {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  flex: 1 1 260px;
  min-width: 220px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
  border-left: 6px solid var(--color-accent);
}
.features-grid > div:hover, .property-gallery > div:hover, .district-gallery > div:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
  border-left: 6px solid var(--color-primary);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-3px) scale(1.02);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border-left: 6px solid var(--color-accent);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-strong);
  border-left: 6px solid var(--color-primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ====== LISTS ====== */
ul, ol {
  padding-left: 1.3em;
  margin-bottom: 1em;
}
ul li, ol li {
  margin-bottom: 0.5em;
  position: relative;
  font-size: 1rem;
}
ul li::before {
  content: '•';
  color: var(--color-accent);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* ====== FOOTER ====== */
footer {
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: 40px 0 20px 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -2px 12px var(--color-shadow);
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  align-items: center;
}
footer .content-wrapper {
  align-items: center;
  gap: 18px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  border-bottom: 2px solid #fff;
}
footer p {
  font-size: 0.95rem;
  color: #E3EAF2;
  margin: 0;
}
.social-links {
  margin-top: 8px;
  font-size: 1rem;
  color: var(--color-accent);
  font-family: var(--font-display);
}

/* ====== TEAM PHOTOS (About) ====== */
.team-photos {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  margin-top: 20px;
}
.team-photos p {
  font-style: italic;
  color: var(--color-accent-dark);
}

/* ====== COOKIE CONSENT BANNER ====== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: linear-gradient(90deg, #E3EAF2 80%, #04A777 100%);
  color: var(--color-primary);
  box-shadow: 0 -2px 16px var(--color-shadow-strong);
  padding: 24px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 1;
  transition: opacity var(--transition), transform var(--transition);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-text {
  flex: 1 1 60%;
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  padding: 10px 22px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  box-shadow: 0 2px 8px var(--color-shadow);
}
.cookie-btn.accept {
  background: linear-gradient(90deg, #04A777 60%, #03845E 100%);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: linear-gradient(90deg, #03845E 60%, #04A777 100%);
  transform: scale(1.04);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-accent);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

/* ====== COOKIE MODAL ====== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(22,48,85,0.7);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  padding: 36px 32px 28px 32px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: modalIn 0.5s cubic-bezier(.77,.2,.05,1.0);
}
@keyframes modalIn {
  from { transform: translateY(60px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-modal .cookie-toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--color-secondary);
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
  margin-right: 8px;
}
.cookie-modal .cookie-toggle input {
  display: none;
}
.cookie-modal .cookie-toggle .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  transition: left var(--transition), background var(--transition);
}
.cookie-modal .cookie-toggle input:checked + .slider {
  left: 22px;
  background: var(--color-accent);
}
.cookie-modal .cookie-category.essential label {
  color: var(--color-accent-dark);
  font-weight: 700;
}
.cookie-modal .cookie-category.essential .cookie-toggle {
  background: #e0e0e0;
  cursor: not-allowed;
}
.cookie-modal .cookie-category.essential .slider {
  background: var(--color-accent-dark);
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .cookie-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-accent);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
}
.cookie-modal .cookie-close:hover, .cookie-modal .cookie-close:focus {
  color: var(--color-link-hover);
  transform: scale(1.1) rotate(-10deg);
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
  .features-grid > div, .property-gallery > div, .district-gallery > div {
    min-width: 180px;
    padding: 20px 12px;
  }
}
@media (max-width: 900px) {
  .features-grid, .property-gallery, .district-gallery {
    gap: 16px;
  }
  .features-grid > div, .property-gallery > div, .district-gallery > div {
    flex: 1 1 100%;
    min-width: 100%;
  }
  .section {
    padding: 32px 10px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    padding: 0 10px;
    min-height: 64px;
  }
  header nav {
    display: none;
  }
  .cta-button {
    margin-left: 0;
    padding: 10px 18px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero {
    padding: 36px 0 24px 0;
    margin-bottom: 36px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .features-grid, .property-gallery, .district-gallery {
    flex-direction: column;
    gap: 16px;
  }
  .features-grid > div, .property-gallery > div, .district-gallery > div {
    min-width: 0;
    width: 100%;
    padding: 18px 10px;
  }
  .section {
    margin-bottom: 36px;
    padding: 24px 6px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .team-photos {
    flex-direction: column;
    gap: 12px;
  }
  footer .content-wrapper {
    gap: 10px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 8px;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .cookie-modal {
    padding: 18px 8px 14px 8px;
    min-width: 0;
    width: 98vw;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  .hero {
    padding: 18px 0 10px 0;
  }
  .section {
    padding: 12px 2px;
  }
  .cookie-modal {
    padding: 10px 2px 8px 2px;
  }
}

/* ====== ARTISTIC DECORATIVE ELEMENTS ====== */
.section:before {
  content: '';
  position: absolute;
  top: -24px; left: -24px;
  width: 80px; height: 80px;
  background: radial-gradient(circle at 30% 30%, #04A77733 0%, transparent 80%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.section:after {
  content: '';
  position: absolute;
  bottom: -24px; right: -24px;
  width: 60px; height: 60px;
  background: radial-gradient(circle at 70% 70%, #16305522 0%, transparent 80%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.features-grid > div:after, .property-gallery > div:after, .district-gallery > div:after {
  content: '';
  position: absolute;
  bottom: 12px; right: 12px;
  width: 24px; height: 24px;
  background: radial-gradient(circle, #04A77722 0%, transparent 80%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* ====== MICRO-INTERACTIONS ====== */
.cta-button:active {
  transform: scale(0.98);
}
.features-grid > div:active, .property-gallery > div:active, .district-gallery > div:active {
  transform: scale(0.98);
}

/* ====== ACCESSIBILITY ====== */
:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ====== PRINT STYLES ====== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  body {
    background: #fff !important;
  }
}
