/*----------------------------------*
  LUXURY PREMIUM CSS for SpletnaUčiteljica
  Author: Senior CSS Developer
  Brand: SpletnaUčiteljica (Luxury, Premium)
------------------------------------*/

/* RESET & BASELINE */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background-color: #FAFAFC;
  color: #21243B;
  font-size: 1rem;
  min-height: 100vh;
  line-height: 1.6;
}
img, picture, video, svg {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  list-style-type: none;
}
a {
  color: #204078;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #bc9b4b;
  text-decoration: underline;
}
button, .btn-primary {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  cursor: pointer;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #21243B;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; letter-spacing: 0.03em; }
p, li, blockquote, footer {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #31344C;
}
blockquote {
  font-family: 'Montserrat', serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #204078;
  margin-bottom: 12px;
  position: relative;
}
blockquote:before {
  content: '“';
  color: #bc9b4b;
  font-size: 2.5rem;
  line-height: 1;
  vertical-align: bottom;
  margin-right: 6px;
}
blockquote footer {
  color: #bc9b4b;
  margin-top: 12px;
  font-style: italic;
  font-family: 'Montserrat', serif;
}

/* LUXURY COLOR PALETTE */
:root {
  --lux-dark: #21243B;
  --lux-primary: #204078;
  --lux-light: #FAFAFC;
  --lux-accent: #78BF7A;
  --lux-gold: #bc9b4b;
  --lux-gold-deep: #96760e;
  --lux-bg: #f6f3ec;
  --lux-card: #ffffff;
  --lux-border: #e6e3dc;
  --lux-shadow: rgba(32,64,120,0.08);
}

/* CONTAINER & FLEX LAYOUTS */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--lux-bg);
  border-radius: 20px;
  box-shadow: 0 6px 32px -12px var(--lux-shadow);
}
/* Remove background for sections with .cta-banner or testimonials */
.cta-banner .section,
.section .testimonial-card {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--lux-card);
  border-radius: 16px;
  box-shadow: 0 4px 18px -7px var(--lux-shadow);
  margin-bottom: 20px;
  padding: 28px;
  position: relative;
  border: 1px solid var(--lux-border);
  transition: box-shadow 0.24s, border-color 0.24s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px -12px var(--lux-shadow);
  border-color: var(--lux-gold);
}
.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: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--lux-border);
  box-shadow: 0 2px 14px -6px var(--lux-shadow);
  transition: box-shadow 0.24s, border-color 0.24s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 28px -12px var(--lux-shadow);
  border-color: var(--lux-gold);
}
.testimonial-card .star-rating {
  color: var(--lux-gold);
  font-size: 1.1rem;
  margin-left: 8px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--lux-card);
  padding: 24px 20px;
  border-radius: 16px;
  border: 1px solid var(--lux-border);
  box-shadow: 0 2px 10px -8px var(--lux-shadow);
}

/* BUTTONS */
.btn-primary, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lux-primary);
  color: #FFF;
  border: 2px solid var(--lux-gold);
  border-radius: 30px;
  padding: 14px 34px;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 12px -4px var(--lux-shadow);
  transition: background 0.25s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  margin-top: 15px;
  margin-bottom: 5px;
}
.btn-primary:hover, .btn:hover, .btn-primary:focus-visible, .btn:focus-visible {
  background: var(--lux-gold);
  color: var(--lux-dark);
  box-shadow: 0 4px 24px -10px var(--lux-shadow);
  border-color: var(--lux-gold-deep);
  text-decoration: none;
}

/*--- GOLD TEXT ACCENT (Luxury Effect) ---*/
.gold, .emphasis-gold, em, strong {
  color: var(--lux-gold);
  font-weight: 600;
  letter-spacing: 0.02em;
}
em {
  font-style: italic;
}

/* HEADER & NAVIGATION */
header {
  width: 100%;
  background: var(--lux-card);
  border-bottom: 1px solid var(--lux-border);
  box-shadow: 0 2px 8px -4px var(--lux-shadow);
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-left: 32px;
}
.main-nav a {
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--lux-dark);
  position: relative;
  padding: 5px 0;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--lux-gold);
}
.main-nav a.active:after, .main-nav a:hover:after {
  content: '';
  display: block;
  height: 2px;
  width: 24px;
  background: var(--lux-gold);
  border-radius: 2px;
  margin: 3px auto 0 auto;
  transition: background 0.2s;
}

/* HIDE HEADER BUTTONS ON MOBILE BY DEFAULT (will be fixed via media) */
.btn-primary {
  margin-left: 24px;
}

/* HAMBURGER MENU (Mobile) */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: var(--lux-dark);
  cursor: pointer;
  margin-left: 22px;
  z-index: 1002;
  transition: color 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--lux-gold);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32, 40, 68, 0.96);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.54,.01,.53,1.07);
  z-index: 3000;
  overflow-y: auto;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: var(--lux-gold);
  font-size: 2.2rem;
  border: none;
  position: absolute;
  top: 18px;
  right: 32px;
  cursor: pointer;
  z-index: 3010;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fffbe4;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 72px;
  width: 100%;
  align-items: stretch;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.3rem;
  padding: 22px 38px;
  color: #fff;
  border-bottom: 1px solid rgba(188, 155, 75, 0.14);
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(188, 155, 75, 0.09);
  color: var(--lux-gold);
}

/*--- CTA BANNER ---*/
.cta-banner {
  background: var(--lux-primary);
  color: #FFF;
  border-radius: 20px;
  padding: 38px 22px;
  box-shadow: 0 4px 28px -12px var(--lux-shadow);
  text-align: center;
  margin-bottom: 46px;
}
.cta-banner h3 {
  color: var(--lux-gold);
  margin-bottom: 14px;
}
.cta-banner a.btn-primary {
  background: var(--lux-gold);
  color: var(--lux-dark);
  border-color: #fff;
  margin-top: 20px;
  margin-bottom: 0;
}

/*--- TEXT SECTION (Sections with text and ul lists) ---*/
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 10px;
}
.text-section ul, .content-wrapper ul {
  margin-left: 24px;
  margin-bottom: 14px;
}
.text-section ul li,
.content-wrapper ul li {
  list-style: disc;
  margin-bottom: 8px;
  color: #31344c;
  padding-left: 2px;
  font-size: 1.03rem;
}
.text-section h3 {
  margin-bottom: 8px;
  color: var(--lux-primary);
  font-size: 1.15rem;
}

/*--- ARTICLE/BLOG SNIPPETS ---*/
.text-section article {
  background: var(--lux-card);
  border-radius: 15px;
  box-shadow: 0 2px 12px -7px var(--lux-shadow);
  padding: 24px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--lux-border);
  transition: box-shadow 0.16s, border 0.16s;
}
.text-section article:hover {
  border-color: var(--lux-gold);
  box-shadow: 0 6px 22px -8px var(--lux-shadow);
}
.categories-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 18px 0;
  justify-content: flex-start;
}
.categories-menu a {
  color: var(--lux-primary);
  font-weight: 500;
  font-size: 0.97rem;
  transition: color 0.17s;
}
.categories-menu a:hover, .categories-menu a.active {
  color: var(--lux-gold);
  text-decoration: underline;
}

/*--- SERVICE PRICE TEXT ---*/
.text-section span {
  color: var(--lux-gold);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.01rem;
  letter-spacing: 0.01em;
  margin-right: 7px;
}

/*--- FOOTER ---*/
footer {
  background: var(--lux-card);
  border-top: 1px solid var(--lux-border);
  padding: 0 0 32px 0;
  margin-top: 30px;
}
footer .container {
  flex-direction: column;
  gap: 0;
}
footer .content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 24px 0 0 0;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 52px;
}
.footer-nav nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-nav a {
  color: var(--lux-dark);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.95rem;
  transition: color 0.2s;
  opacity: 0.8;
  padding: 2px 0;
}
.footer-nav a:hover {
  color: var(--lux-gold);
  opacity: 1;
}
.brand-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  margin-top: 8px;
}
.brand-info img {
  width: 39px;
  height: 39px;
  border-radius: 11px;
  box-shadow: 0 2px 7px -2px var(--lux-shadow);
  background: #fff7e6;
}
.brand-info p {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.95rem;
  color: #7A7A7A;
}

/*--- STAR RATING ---*/
.star-rating {
  font-size: 1rem;
  color: var(--lux-gold);
  letter-spacing: 3px;
  margin-top: 4px;
}

/*--- FORMS (newsletter, contact etc) ---*/
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  border-radius: 8px;
  border: 1px solid var(--lux-border);
  padding: 12px 14px;
  font-size: 1rem;
  background: #fff;
  transition: box-shadow 0.18s, border-color 0.18s;
  width: 100%;
  max-width: 480px;
  margin-bottom: 14px;
  color: #21243B;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--lux-gold);
  box-shadow: 0 2px 8px -2px rgba(188, 155, 75, 0.08);
  outline: none;
}

/*--- SPACING CLASSES for templates and requirements ---*/
.mt-8 {margin-top: 8px !important;}
.mb-12 {margin-bottom: 12px !important;}
.mb-24 {margin-bottom: 24px !important;}
.mt-32 {margin-top: 32px !important;}
.gap-24 {
  gap: 24px !important;
}

/*--- COOKIES CONSENT BANNER ---*/
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #21243B;
  color: #FFF;
  padding: 22px 18px 22px 24px;
  border-top: 3px solid var(--lux-gold);
  z-index: 5000;
  box-shadow: 0 -2px 16px -6px var(--lux-shadow);
  font-size: 1rem;
  opacity: 1;
  transition: opacity 0.38s, bottom 0.38s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  bottom: -200px;
}
.cookie-message {
  flex: 1 1 auto;
  padding-right: 18px;
}
.cookie-controls {
  display: flex;
  flex-direction: row;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn, .cookie-consent-banner button {
  background: var(--lux-gold);
  color: var(--lux-dark);
  border: none;
  border-radius: 20px;
  padding: 10px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-right: 2px;
  margin-bottom: 2px;
  transition: background 0.19s, color 0.19s;
  cursor: pointer;
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-consent-banner button:hover, .cookie-consent-banner button:focus {
  background: var(--lux-gold-deep);
  color: #FFF;
}

/*--- COOKIE MODAL ---*/
.cookie-modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 5020;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(33,36,59,0.84);
  transition: opacity 0.27s;
}
.cookie-modal {
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 8px 32px -10px rgba(33,36,59,0.16);
  max-width: 430px;
  width: 90vw;
  padding: 38px 28px 28px 28px;
  color: var(--lux-dark);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 5030;
}
.cookie-modal h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--lux-primary);
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 12px;
  gap: 11px;
}
.cookie-modal .toggle {
  width: 42px;
  height: 24px;
  border-radius: 15px;
  background: var(--lux-border);
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-modal .toggle-active {
  background: var(--lux-gold);
}
.cookie-modal .toggle::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px -2px #c7b07755;
  transition: transform 0.19s;
}
.cookie-modal .toggle-active::before {
  transform: translateX(18px);
}
.cookie-modal .category-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--lux-primary);
}
.cookie-modal .category-essential {
  color: #5f5f65;
  font-size: 0.95rem;
  font-style: italic;
  margin-left: 8px;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 9px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--lux-gold);
  cursor: pointer;
}

/*------ RESPONSIVE DESIGN ------*/
@media (max-width: 1060px) {
  .main-nav { gap: 13px; }
  .footer-nav { gap: 24px; }
}
@media (max-width: 960px) {
  .section {padding: 32px 10px;} 
}
@media (max-width: 900px) {
  footer .content-wrapper { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-nav { flex-direction: column; gap: 16px; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }
  .section { margin-bottom: 36px; padding: 20px 4px; }
  .testimonial-card, .card, .feature-item { padding: 16px 10px; }
  .brand-info { margin-top: 12px; }
  .container { padding: 0 7px; }
  .cta-banner { padding: 22px 7px; font-size: 1rem; }
  .footer-nav nav { gap: 2px; }
  .main-nav, .btn-primary { display: none !important; }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  header .container { flex-wrap: nowrap; }
  .content-grid, .card-container { gap: 14px; }
  .text-image-section { flex-direction: column; gap: 20px; }
  .content-wrapper { gap: 10px; }
}

@media (max-width: 580px) {
  .cookie-consent-banner { flex-direction: column; gap: 17px; align-items: flex-start; padding: 16px 3vw; }
  .cookie-message { padding-right: 0; margin-bottom: 10px; }
  .cookie-controls { gap: 8px; }
  .cookie-modal {
    max-width: 97vw;
    padding: 16vw 6vw 8vw 6vw;
    font-size: 0.97rem;
  }
}

/*--- ANIMATIONS (Hover, Transitions) ---*/
.btn-primary, .btn, .main-nav a, .footer-nav a, .categories-menu a, .card, .testimonial-card, .cookie-btn, .cookie-modal-close {
  transition: background 0.2s, color 0.17s, box-shadow 0.2s, border-color 0.18s;
}

.testimonial-card:hover, .card:hover, .feature-item:hover {
  box-shadow: 0 8px 36px -16px rgba(188,155,75,0.13);
  border-color: var(--lux-gold);
}

/*--- UTILITY CLASSES & DETAILS ---*/
::-webkit-scrollbar { width: 8px; background: #f2efea; }
::-webkit-scrollbar-thumb { background: #dfc79c; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #bc9b4b; }

hr {
  border: none;
  border-bottom: 1px solid var(--lux-border);
  margin: 29px 0;
}

/*--- ACCESSIBILITY FOCUS STYLES ---*/
a:focus, .btn-primary:focus, .cookie-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--lux-gold);
  outline-offset: 2px;
}

/*--- VISIBILITY UTILITIES ---*/
.hide { display: none !important; }

/*--- Z-INDEX LAYERING ---*/
.mobile-menu, .cookie-consent-banner, .cookie-modal-overlay, .cookie-modal { z-index: 6000; }
