/* ===== CSS RESET & BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-size: 100%;
  background: #faf9f6;
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', Arial, sans-serif;
  background: #faf9f6;
  color: #222;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  vertical-align: middle;
  border: 0;
}

ul, ol {
  margin: 16px 0 16px 24px;
  padding: 0 0 0 16px;
  list-style-position: outside;
}
ul ul, ol ol, ul ol, ol ul {
  margin-bottom: 0;
}
li {
  margin-bottom: 8px;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  outline: none;
  appearance: none;
  color: inherit;
}
button { cursor: pointer; }
a { color: #216943; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: #8A6B2E; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  color: #173c2b;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; }
h4 { font-size: 1.125rem; }
h5, h6 { font-size: 1rem; }
p { margin-bottom: 16px; }
strong { font-weight: 700; }

.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BRAND COLORS ===== */
:root {
  --color-primary: #216943;
  --color-secondary: #ffffff;
  --color-accent: #8A6B2E;
  --color-gold: #B49A6B;
  --color-bg: #faf9f6;
  --color-dark: #162516;
  --color-neutral: #e7e2d0;
  --color-light-grey: #f4f1eb;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--color-secondary);
  box-shadow: 0 2px 8px 0 rgba(24, 22, 17, 0.04);
  padding: 0;
  border-bottom: 1px solid #ece4d9;
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}
.logo img {
  height: 42px;
  max-width: 195px;
  margin-right: 12px;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #173c2b;
  font-weight: 500;
  font-size: 1.07rem;
  padding: 10px 0;
  position: relative;
  transition: color .18s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-accent);
}

.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.1;
  background: var(--color-accent);
  color: var(--color-secondary);
  border-radius: 34px;
  padding: 12px 32px;
  margin-left: 20px;
  box-shadow: 0 2px 16px 0 rgba(138,107,46,.09);
  border: none;
  text-align: center;
  letter-spacing: 0.5px;
  transition: background .18s, transform .15s, box-shadow .18s;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: #b49a6b;
  color: #223;
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 6px 20px 0 rgba(138,107,46,.17);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: none;
  color: #173c2b;
  border: none;
  margin: 0 0 0 16px;
  padding: 8px 12px;
  z-index: 201;
  transition: color .18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-accent);
}


/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,34,34,0.82);
  z-index: 250;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.mobile-menu.active {
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--color-secondary);
  min-width: 82vw;
  max-width: 390px;
  padding: 48px 32px 32px 32px;
  height: 100vh;
  box-shadow: -2px 0 31px 0 rgba(34,34,34,0.06);
  transform: translateX(100%);
  will-change: transform;
  transition: transform .36s cubic-bezier(.7,0,.4,1.05);
}
.mobile-menu.active nav {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px; right: 38px;
  z-index: 1;
  background: none;
  font-size: 2.2rem;
  color: #173c2b;
  opacity: 0.68;
  border: none;
  transition: opacity .18s, color .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
  opacity: 1;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: #173c2b;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 8px;
  padding: 12px 0 12px 12px;
  display: block;
  transition: background .18s, color .18s;
}
.mobile-nav a:active, .mobile-nav a:focus {
  background: var(--color-neutral);
  color: var(--color-accent);
}

/* ===== MAIN LAYOUT & SECTIONS ===== */
main {
  background: var(--color-bg);
  flex: 1 0 auto;
}
.section, .features, .about-short, .about-details, .services, .cta, .testimonials, .contact-info, .footer-section {
  margin-bottom: 60px; padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero {
  background: linear-gradient(120deg, rgba(33,105,67,0.090) 0%, #ffffff 100%);
  padding: 68px 0 56px 0;
  box-shadow: 0 2px 21px 0 rgba(192, 183, 148, 0.08);
  margin-bottom: 0;
}
.hero .content-wrapper {
  align-items: flex-start;
}

.features .feature-grid, .features .club-list-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.feature {
  background: var(--color-secondary);
  border-radius: 20px;
  box-shadow: 0 2px 20px 0 rgba(33,105,67,.045), 0 1.5px 5px 0 rgba(136,106,28,0.04);
  padding: 32px 28px 28px 28px;
  min-width: 260px;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid #e4dacb;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .23s, border .18s, transform .2s;
}
.feature img {
  height: 38px;
  width: 38px;
}
.feature:hover {
  box-shadow: 0 4px 27px 0 rgba(138,107,46,.14);
  border-color: var(--color-accent);
  transform: translateY(-3px) scale(1.015);
}

/* Club list cards (Kluby Golfowe page) */
.club-list-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.club-item {
  background: var(--color-secondary);
  border: 1px solid #e4dacb;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(33,105,67,0.04);
  padding: 24px 26px 14px 24px;
  flex: 1 1 270px;
  margin-bottom: 20px;
  position: relative;
  min-width: 230px;
  transition: box-shadow .2s, border .16s, transform .17s;
}
.club-item:hover {
  box-shadow: 0 5px 24px 0 rgba(138,107,46,.09);
  border-color: var(--color-accent);
  transform: translateY(-3px) scale(1.012);
}

.services ul, .features ul, .about-details ul, .about-short ul {
  margin-top: 4px;
  margin-bottom: 24px;
  padding-left: 20px;
}
.services ul li, .features ul li, .about-details ul li, .about-short ul li {
  padding-left: 0;
  margin-bottom: 9px;
  font-size: 1.11rem;
  line-height: 1.7;
}

.cta {
  background: linear-gradient(100deg, #f8f4ec 0%, #fff 100%);
  border-radius: 20px;
  box-shadow: 0 2px 32px 0 rgba(138,107,46,0.07);
  margin-bottom: 40px;
  padding: 42px 20px 30px 20px;
}
.cta .content-wrapper {
  align-items: center;
  gap: 20px;
}
.cta .cta-btn {
  margin: 0 0 18px 0;
  font-size: 1.17rem;
  padding: 13px 42px;
}
.secondary-contact {
  display: flex;
  gap: 36px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2px;
}
.secondary-contact p {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  color: #174021;
  font-family: 'Lato', Arial, sans-serif;
}
.secondary-contact img {
  height: 22px;
  width: 22px;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.09rem;
  color: #174021;
  margin-bottom: 6px;
}
.contact-info img {
  height: 20px;
  width: 20px;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: #fbfaf7;
  border-radius: 21px;
}
.testimonials .content-wrapper {
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: var(--color-secondary);
  padding: 20px 32px 19px 32px;
  margin-bottom: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 18px 0 rgba(33,105,67,0.04), 0 4px 23px rgba(146,109,23,.04);
  border-left: 4px solid var(--color-accent);
  transition: box-shadow .2s, border .16s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(138,107,46,0.11);
  border-left: 4px solid var(--color-gold);
}
.testimonial-card p {
  color: #1c1c18;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.16rem;
  line-height: 1.6;
  font-weight: 470;
}
.testimonial-card .author {
  color: var(--color-accent);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: .03em;
}

/* ===== FOOTER ===== */
footer {
  background: #212d23;
  color: #fff;
  padding: 38px 0 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #e7e2d0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1.5px solid transparent;
  transition: border-color .16s, color .17s;
}
.footer-nav a:hover {
  color: var(--color-gold);
  border-bottom: 1.5px solid var(--color-gold);
}
.footer-contact {
  font-size: 1.05rem;
  color: #e4dacb;
  font-family: 'Lato', Arial, sans-serif;
}
.footer-legal {
  color: #b49a6b;
  font-size: 0.98rem;
  text-align: left;
  margin: 12px 0 0 0;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  z-index: 390;
  background: #fffbea;
  color: #222;
  box-shadow: 0 -2px 18px rgba(33,105,67,0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 22px 32px 22px 26px;
  font-size: 1.05rem;
  letter-spacing: .02em;
  border-top: 1.5px solid var(--color-accent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity .27s, transform .27s;
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner p {
  margin: 0;
  flex: 1 0 200px;
  color: #222;
}
.cookie-banner .cookie-buttons {
  display: flex;
  align-items: center;
  gap: 11px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.01rem;
  padding: 9px 24px;
  border-radius: 22px;
  margin-left: 2px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  transition: background .18s, box-shadow .15s, color .17s;
  box-shadow: 0 1px 9px rgba(138,107,46,0.07);
}
.cookie-banner button.cookie-reject {
  background: #dfdac9;
  color: #173c2b;
}
.cookie-banner button.cookie-settings {
  background: var(--color-secondary);
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: var(--color-gold);
  color: #222;
}

/* Cookie modal */
.cookie-modal-backdrop {
  position: fixed;
  top:0; left:0; width:100vw; height:100vh;
  z-index: 400;
  background: rgba(30,37,22,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.cookie-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-54%) scale(1);
  z-index: 401;
  background: #fff;
  padding: 34px 27px 28px 27px;
  border-radius: 18px;
  min-width: 305px;
  max-width: 94vw;
  box-shadow: 0 8px 38px 0 rgba(138,107,46,.13);
  opacity: 0;
  pointer-events: none;
  transition: opacity .27s, transform .27s;
}
.cookie-modal.active { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1.015); }

.cookie-modal h2 {
  font-size: 1.28rem;
  margin-bottom: 16px;
  color: #174021;
}
.cookie-modal form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 19px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.07rem;
  color: #1e3927;
  cursor: pointer;
}
.cookie-modal input[type='checkbox'] {
  accent-color: var(--color-accent);
  margin-right: 6px;
  width: 19px;
  height: 19px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 13px;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 9px 22px;
  border-radius: 22px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  transition: background .18s, color .15s;
}
.cookie-modal button.cookie-cancel {
  background: #dfdac9;
  color: #173c2b;
}
.cookie-modal button:hover,
.cookie-modal button:focus {
  background: var(--color-gold);
  color: #222;
}

/* ===== CARD, FLEX, SPACING STRUCTURES ===== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { background: #fff; border-radius: 12px; box-shadow: 0 2px 18px 0 rgba(33,105,67,0.045); margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ===== MISC ELEMENTS & EFFECTS ===== */
hr {
  border: 0; border-top: 1.5px solid #e7e4dc; margin: 36px 0 36px 0;
}

::-webkit-scrollbar {
  width: 10px; background: #efe8d7;
}
::-webkit-scrollbar-thumb {
  background: #B49A6B;
  border-radius: 8px;
}

/* ======= ANIMATION UTILITIES ======= */
.fade-in { opacity: 0; animation: fadeIn .98s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.slide-in {
  animation: slideIn .53s cubic-bezier(.6,-0.01,.6,1.08) forwards;
}
@keyframes slideIn {
  0% { opacity: 0; transform: translateY(78px); }
  100% { opacity: 1; transform: none; }
}

/* ======= FORM ELEMENTS ======= */
input, textarea, select {
  border-radius: 8px;
  border: 1.5px solid #dfdac9;
  padding: 11px 14px;
  margin-bottom: 17px;
  background: #f4f1eb;
  color: #162516;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .18s, box-shadow .14s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px #d9c9a6;
}

/* ======= MEDIA QUERIES ======= */
@media (max-width: 1140px) {
  .container { max-width: 99vw; padding: 0 13px; }
  .hero, .section, .features, .cta, .about-short, .about-details, .testimonials, .services, .contact-info, .footer-section { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 19px; }
}
@media (max-width: 768px) {
  h1{font-size:2rem;}
  h2{font-size:1.38rem;}
  .main-nav,
  .cta-btn { display: none; }
  .mobile-menu-toggle { display: inline-block; }
  header .container {
    gap: 8px;
    padding-top: 7px; padding-bottom: 7px;
    min-height: 64px;
  }
  .section, .features, .about-short, .about-details, .services, .cta, .testimonials, .contact-info, .footer-section {
    margin-bottom: 40px;
    padding: 32px 7px;
  }
  .hero {
    padding: 38px 0 29px 0;
  }
  .features .feature-grid, .features .club-list-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature, .club-item {
    min-width: unset;
    width: 100%;
    padding: 22px 16px 18px 16px;
  }
  .secondary-contact {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .cta .content-wrapper { align-items: flex-start; }
  .testimonial-card{
    padding: 16px 12px 14px 12px;
    gap: 8px;
  }
  .footer-contact, .footer-nav { font-size: 0.99rem; }
  .cookie-banner { flex-direction: column; gap: 15px; padding: 18px 7vw; align-items: flex-start; }
}
@media (max-width: 480px) {
  .logo img { height: 33px; }
  .cookie-modal { padding: 19px 7px; font-size: .98rem; }
}
