/* ═══════════════════════════════════════════════
   GLISNE.PL — Light Theme Stylesheet
   Framework: Drupal | Host: OVH
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Outfit:wght@200;300;400;500&display=swap');

/* ─── CUSTOM PROPERTIES ─── */
:root {
  --white:      #ffffff;
  --snow:       #f7f5f2;
  --cloud:      #eceae6;
  --mist:       #dcd9d4;
  --stone:      #a09b94;
  --bark:       #5c5651;
  --ink:        #1e1b18;
  --forest:     #2d5a3d;
  --forest-lt:  #3d7a52;
  --sky:        #4a8fa8;
  --sky-lt:     #e8f3f7;
  --gold:       #8a6e3e;
  --gold-lt:    #c9a86c;
  --gold-pale:  #f5efe6;
  --accent:     #5c8a5e;
  --shadow-sm:  0 2px 12px rgba(30,27,24,0.08);
  --shadow-md:  0 8px 40px rgba(30,27,24,0.12);
  --shadow-lg:  0 20px 80px rgba(30,27,24,0.16);
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --transition: cubic-bezier(0.23,1,0.32,1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ─── BASE ─── */
body {
  font-family: 'Outfit', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── PROGRESS BAR ─── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(to right, var(--forest), var(--gold-lt));
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(93,138,94,0.4);
}

/* ─── NAVIGATION ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.8rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s var(--transition),
              backdrop-filter 0.5s,
              padding 0.4s var(--transition),
              box-shadow 0.5s;
}

nav.scrolled {
  background: rgba(247,245,242,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 3rem;
  box-shadow: 0 1px 0 rgba(160,155,148,0.2), var(--shadow-sm);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: color 0.4s;
}

nav.scrolled .nav-logo { color: var(--ink); }
.nav-logo span { color: var(--gold-lt); }
nav.scrolled .nav-logo span { color: var(--forest); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--transition);
}

.nav-links a:hover::after { transform: scaleX(1); }

nav.scrolled .nav-links a { color: var(--bark); }
nav.scrolled .nav-links a:hover { color: var(--forest); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 100px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  transition: all 0.3s;
}

nav.scrolled .nav-cta {
  border-color: var(--forest);
  color: var(--forest);
}

.nav-cta:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white) !important;
}

/* ─── HERO ─── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-parallax {
  position: absolute;
  inset: -12%;
  background: url('../images/panorama-glisne.jpg') center/cover no-repeat;
  transform-origin: center bottom;
  will-change: transform;
  filter: brightness(0.75) saturate(1.05);
}

.hero-fog-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(247,245,242,1) 0%, rgba(247,245,242,0.5) 40%, transparent 100%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(30,27,24,0.25) 0%,
    rgba(30,27,24,0.1) 40%,
    rgba(30,27,24,0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
}

.hero-eyebrow {
  font-size: clamp(0.6rem, 1.2vw, 0.8rem);
  font-weight: 200;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s 0.3s forwards;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(5rem, 15vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: #fff;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s 0.5s forwards;
  text-shadow: 0 4px 40px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
}

.hero-title em {
  font-style: italic;
  color: rgba(255,255,255,0.85);
}

.hero-subtitle {
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.75);
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s 0.9s forwards;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s 1.5s forwards;
  cursor: pointer;
}

.scroll-label {
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(30,27,24,0.5);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--forest), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── INTRO STRIP ─── */
.intro-strip {
  background: var(--snow);
  padding: 7rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--cloud);
}

.intro-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(93,138,94,0.06), transparent);
}

.intro-strip blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.55;
  max-width: 860px;
  margin: 0 auto;
  color: var(--bark);
  position: relative;
  z-index: 1;
}

.intro-strip blockquote::before {
  content: '"';
  font-size: 10rem;
  color: rgba(93,138,94,0.1);
  position: absolute;
  top: -3rem; left: -1rem;
  line-height: 1;
  font-style: normal;
}

/* ─── SECTION TYPOGRAPHY ─── */
.section-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 400;
  margin-bottom: 0.8rem;
}

.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-heading em {
  font-style: italic;
  color: var(--stone);
}

/* ─── CARDS SECTION ─── */
.cards-section {
  padding: 7rem 3rem;
  background: var(--white);
}

.cards-header {
  max-width: 1200px;
  margin: 0 auto 4rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.cards-header-desc {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--stone);
  max-width: 280px;
  line-height: 1.75;
}

.cards-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card-3d {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--transition), box-shadow 0.5s;
  background: var(--snow);
  border: 1px solid var(--cloud);
  will-change: transform;
}

.card-3d:hover {
  box-shadow: var(--shadow-lg);
}

.card-inner { padding: 2.5rem; position: relative; z-index: 1; }

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  display: block;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  color: var(--ink);
}

.card-desc {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--stone);
}

.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(93,138,94,0.08), transparent 60%);
  pointer-events: none;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity 0.4s;
}

.card-3d:hover .card-glow { opacity: 1; }

/* ─── PARALLAX SECTION ─── */
.parallax-section {
  position: relative;
  height: 75vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-bg {
  position: absolute;
  inset: -15%;
  background: url('../images/panorama-glisne.jpg') center/cover no-repeat;
  will-change: transform;
  filter: brightness(0.6) saturate(0.95);
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(247,245,242,0.6),
    rgba(247,245,242,0.1),
    rgba(247,245,242,0.6)
  );
}

.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
}

.parallax-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.parallax-content p {
  font-size: clamp(0.8rem, 1.3vw, 0.9rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
  margin-top: 1rem;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* ─── STATS ─── */
.stats-section {
  padding: 5rem 3rem;
  background: var(--snow);
  border-top: 1px solid var(--cloud);
  border-bottom: 1px solid var(--cloud);
}

.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item { position: relative; }

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%;
  height: 60%;
  width: 1px;
  background: var(--mist);
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--forest);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 300;
  margin-top: 0.5rem;
  display: block;
}

/* ─── ATRAKCJE ─── */
.attractions-section {
  padding: 7rem 3rem;
  background: var(--white);
}

.attractions-inner { max-width: 1200px; margin: 0 auto; }
.attractions-header { margin-bottom: 3.5rem; }

.attr-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--cloud);
  border: 1px solid var(--cloud);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.attr-item {
  padding: 3rem;
  background: var(--white);
  transition: background 0.4s;
  position: relative;
}

.attr-item:hover { background: var(--gold-pale); }

.attr-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(138,110,62,0.15);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.attr-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.attr-desc {
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--stone);
}

/* ─── AKTUALNOŚCI ─── */
.news-section {
  padding: 7rem 3rem;
  background: var(--snow);
}

.news-section-inner { max-width: 1200px; margin: 0 auto; }

.news-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
}

.news-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--cloud);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--transition), box-shadow 0.4s;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.news-img {
  height: 200px;
  background: linear-gradient(135deg, var(--sky-lt), #d8ecd3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.news-card:first-child .news-img { height: 240px; }

.news-body { padding: 1.8rem; }

.news-date {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 400;
  margin-bottom: 0.6rem;
  display: block;
}

.news-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 0.8rem;
}

.news-excerpt {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--stone);
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 400;
  margin-top: 1rem;
  transition: gap 0.3s;
}

.news-link:hover { gap: 0.7rem; }

/* ─── KONTAKT ─── */
.contact-section {
  padding: 8rem 3rem;
  background: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: 'GLISNE';
  position: absolute;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22vw;
  font-weight: 300;
  color: rgba(93,138,94,0.04);
  white-space: nowrap;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  letter-spacing: -0.02em;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 0 auto;
}

.contact-inner p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--stone);
  margin: 1.5rem 0 2.5rem;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: transparent;
  border: 1.5px solid var(--forest);
  color: var(--forest);
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s var(--transition);
  margin: 0.4rem;
}

.btn-primary:hover {
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 8px 30px rgba(45,90,61,0.25);
  transform: translateY(-2px);
}

.btn-primary.filled {
  background: var(--forest);
  color: var(--white);
}

.btn-primary.filled:hover {
  background: var(--forest-lt);
  box-shadow: 0 8px 30px rgba(45,90,61,0.3);
}

/* ─── TECH BADGES ─── */
.tech-badges { margin-top: 3rem; }

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--cloud);
  border-radius: 100px;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0.3rem;
  background: var(--snow);
}

/* ─── FOOTER ─── */
footer {
  padding: 3rem;
  background: var(--snow);
  border-top: 1px solid var(--cloud);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--bark);
}

.footer-logo span { color: var(--forest); }

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--forest); }

.footer-copy {
  font-size: 0.68rem;
  color: var(--mist);
  font-weight: 300;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(36px) rotateX(8deg);
  transition: opacity 0.9s var(--transition), transform 0.9s var(--transition);
  transform-origin: center top;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── KEYFRAMES ─── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ─── MOBILE ─── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  nav { padding: 1.2rem 1.5rem; }
  nav.scrolled { padding: 0.8rem 1.5rem; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .cards-section,
  .attractions-section,
  .news-section,
  .contact-section { padding: 5rem 1.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .stat-item::after { display: none; }
  .attr-list { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .cards-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 4.5rem; }
  .intro-strip { padding: 5rem 1.5rem; }
}
