/*
Theme Name: Dagis Nattis Sundsvall
Theme URI: https://www.dagisochnattis.se/
Description: Exklusivt, modernt och 100% responsivt tema med full-width nordisk design (Nordic Canine Haven) för Dagis Nattis Sundsvall AB. Inkluderar strukturerat innehåll för Hunddagis, Hundpensionat, Hundsalong, Om oss, Vanliga frågor, Kontakt och Integritet med lokala bildresurser, Schema.org JSON-LD och Yoast SEO.
Author: Dagis Nattis Sundsvall AB
Author URI: https://www.dagisochnattis.se/
Version: 3.5.6
License: GNU General Public License v2 or later
Text Domain: dagisnattis
Tags: custom-colors, custom-menu, responsive-layout, translation-ready, full-width-template
*/

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&display=swap');
@import url('assets/css/design-tokens.css');

/* ==========================================================================
   1. CSS RESET & GLOBAL FULL-WIDTH OVERRIDES
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--dn-font-body, 'Hanken Grotesk', -apple-system, sans-serif);
  font-size: 16px;
  line-height: 1.68;
  color: #141416;
  background-color: #fbf9fb;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Force Full Width (Neutralizes Hello Elementor and WordPress default box wrappers) */
html,
body,
body.page,
body.home,
body.wp-singular,
body.page-template,
body.page-template-front-page,
body.page-template-front-page-php,
body.page-template-page-service,
body.page-template-page-service-php,
body.page-template-page-om-oss,
body.page-template-page-om-oss-php,
body.page-template-page-kontakt,
body.page-template-page-kontakt-php,
body.page-template-page-vanliga-fragor,
body.page-template-page-vanliga-fragor-php,
body.hello-elementor-default,
body.hello-elementor,
#page,
.site,
#content,
.site-content,
.site-main,
main#primary,
.wp-site-blocks,
.entry-content,
:where(.is-layout-constrained) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Full Width Sections */
.dn-section,
.dn-site-header,
.dn-site-footer {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* Fluid Interior Container (1400px Max) */
.dn-container,
.dn-header-inner,
.dn-footer-grid,
.dn-footer-bottom {
  width: 100% !important;
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(16px, 4vw, 48px) !important;
  padding-right: clamp(16px, 4vw, 48px) !important;
  box-sizing: border-box !important;
}

/* Typography Headings */
h1, h2, h3, h4, .dn-display-title, .dn-section-title {
  font-family: var(--dn-font-headline, 'Libre Caslon Text', Georgia, serif) !important;
  color: #141416;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1, .dn-display-title {
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.15;
}

h2, .dn-section-title {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.22;
}

h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.dn-lead-text {
  font-size: clamp(16.5px, 1.8vw, 19px);
  line-height: 1.75;
  color: #454558;
}

a {
  color: #0001bb;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #000088;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* SVG Icon Helper */
.dn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.2em;
  fill: currentColor;
  flex-shrink: 0;
}

/* ==========================================================================
   2. HEADER & NAVIGATION (DESKTOP + FULL-WIDTH WOW MOBILE DRAWER)
   ========================================================================== */

.dn-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 20, 22, 0.08);
  width: 100%;
}

.dn-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.dn-logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
}

.dn-logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.dn-logo-text-group {
  display: flex;
  flex-direction: column;
}

.dn-logo-title {
  font-family: 'Libre Caslon Text', Georgia, serif !important;
  font-size: clamp(20px, 2.5vw, 23px) !important;
  font-weight: 700 !important;
  color: #0001bb !important;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.dn-logo-sub {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: #6c5c44;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Desktop Navigation */
@media (min-width: 992px) {
  .dn-navigation,
  #site-navigation {
    display: flex !important;
    align-items: center !important;
  }
}

.dn-nav-menu,
.dn-navigation ul,
#site-navigation ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dn-nav-menu li a,
.dn-navigation ul li a,
#site-navigation ul li a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #454558;
  border-radius: 9999px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.dn-nav-menu li a:hover,
.dn-navigation ul li a:hover,
#site-navigation ul li a:hover {
  color: #0001bb;
  background-color: rgba(0, 1, 187, 0.05);
}

.dn-nav-menu li.current-menu-item a,
.dn-navigation ul li.current-menu-item a,
#site-navigation ul li.current-menu-item a {
  color: #0001bb;
  background-color: rgba(0, 1, 187, 0.08);
  font-weight: 700;
}

.dn-header-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dn-phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #141416;
  text-decoration: none;
  transition: color 0.2s ease;
}

.dn-phone-link:hover {
  color: #0001bb;
}

.dn-phone-num {
  white-space: nowrap;
}

/* Mobile Toggle & Backdrop */
.dn-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.dn-hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #141416;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.dn-mobile-backdrop {
  display: none;
}

.dn-mobile-nav-header {
  display: none;
}

.dn-mobile-nav-actions {
  display: none;
}

/* FULL-WIDTH LUXURY MOBILE MENU (BUTTERY SMOOTH & GLITCH-FREE) */
@media (max-width: 991px) {
  body.dn-menu-open,
  html.dn-menu-open {
    overflow: hidden !important;
    touch-action: none !important;
  }

  .dn-site-header {
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .dn-mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f4f3f6 !important;
    border: 1px solid #d4d4dc !important;
    border-radius: 12px;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    transition: transform 0.2s ease, background-color 0.2s ease;
    touch-action: manipulation;
  }

  .dn-mobile-toggle:active {
    transform: scale(0.92);
  }

  .dn-mobile-toggle.is-active .dn-hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .dn-mobile-toggle.is-active .dn-hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .dn-mobile-toggle.is-active .dn-hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .dn-navigation,
  #site-navigation {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background-color: #ffffff !important;
    padding: 24px 24px 44px 24px !important;
    z-index: 9999999 !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .dn-navigation.is-open,
  #site-navigation.is-open {
    display: flex !important;
    animation: dnMenuSlideDown 0.28s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  }

  @keyframes dnMenuSlideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .dn-mobile-nav-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eae8ec;
    width: 100%;
    box-sizing: border-box;
  }

  .dn-mobile-nav-title {
    font-family: 'Libre Caslon Text', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: #0001bb;
    letter-spacing: -0.01em;
  }

  .dn-mobile-close-btn {
    background: #f4f3f6;
    border: 1px solid #d4d4dc;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #141416;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
  }

  .dn-mobile-close-btn:active {
    background: #0001bb;
    color: #ffffff;
    transform: rotate(90deg) scale(0.9);
  }

  /* Sleek, Clean Typography (No heavy box rectangles) */
  .dn-nav-menu,
  .dn-navigation ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    box-sizing: border-box;
  }

  .dn-nav-menu li,
  .dn-navigation ul li {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #f0edf2 !important;
  }

  .dn-nav-menu li:last-child,
  .dn-navigation ul li:last-child {
    border-bottom: none !important;
  }

  .dn-nav-menu li a,
  .dn-navigation ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 15px 6px !important;
    font-family: 'Libre Caslon Text', Georgia, serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #141416 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    letter-spacing: -0.01em;
  }

  .dn-nav-menu li a:hover,
  .dn-nav-menu li a:active,
  .dn-nav-menu li.current-menu-item a,
  .dn-navigation ul li.current-menu-item a {
    color: #0001bb !important;
    padding-left: 12px !important;
  }

  .dn-nav-menu li.current-menu-item a::after,
  .dn-navigation ul li.current-menu-item a::after {
    content: '•';
    color: #0001bb;
    font-size: 22px;
  }

  /* Staggered Cascading Animation when Unfolding */
  @keyframes dnMenuItemSlideUp {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .dn-navigation.is-open .dn-nav-menu li:nth-child(1) { animation: dnMenuItemSlideUp 0.32s 0.04s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .dn-navigation.is-open .dn-nav-menu li:nth-child(2) { animation: dnMenuItemSlideUp 0.32s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .dn-navigation.is-open .dn-nav-menu li:nth-child(3) { animation: dnMenuItemSlideUp 0.32s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .dn-navigation.is-open .dn-nav-menu li:nth-child(4) { animation: dnMenuItemSlideUp 0.32s 0.16s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .dn-navigation.is-open .dn-nav-menu li:nth-child(5) { animation: dnMenuItemSlideUp 0.32s 0.20s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .dn-navigation.is-open .dn-nav-menu li:nth-child(6) { animation: dnMenuItemSlideUp 0.32s 0.24s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .dn-navigation.is-open .dn-nav-menu li:nth-child(7) { animation: dnMenuItemSlideUp 0.32s 0.28s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .dn-navigation.is-open .dn-mobile-nav-actions { animation: dnMenuItemSlideUp 0.35s 0.32s cubic-bezier(0.16, 1, 0.3, 1) both; }

  .dn-mobile-nav-actions {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eae8ec;
    width: 100%;
    box-sizing: border-box;
  }

  .dn-header-cta {
    display: none !important;
  }
}

/* ==========================================================================
   3. BUTTONS & PILLS (HIGH SPECIFICITY FOR ALL ELEMENTS)
   ========================================================================== */

.dn-btn,
button.dn-btn,
a.dn-btn,
input[type="submit"].dn-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  font-family: 'Hanken Grotesk', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 13px 26px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  outline: none !important;
  line-height: 1.2 !important;
}

.dn-btn--primary,
button.dn-btn--primary,
a.dn-btn--primary,
input[type="submit"].dn-btn--primary {
  background-color: #0001bb !important;
  color: #ffffff !important;
  border-color: #0001bb !important;
  box-shadow: 0 4px 14px rgba(0, 1, 187, 0.3) !important;
}

.dn-btn--primary:hover,
button.dn-btn--primary:hover,
a.dn-btn--primary:hover,
input[type="submit"].dn-btn--primary:hover {
  background-color: #000088 !important;
  color: #ffffff !important;
  border-color: #000088 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 1, 187, 0.45) !important;
}

.dn-btn--secondary,
button.dn-btn--secondary,
a.dn-btn--secondary {
  background-color: #ffffff !important;
  color: #141416 !important;
  border: 1px solid #d4d4dc !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.dn-btn--secondary:hover,
button.dn-btn--secondary:hover,
a.dn-btn--secondary:hover {
  background-color: #f6dfc0 !important;
  border-color: #6c5c44 !important;
  color: #141416 !important;
  transform: translateY(-2px) !important;
}

.dn-btn--lg,
button.dn-btn--lg,
a.dn-btn--lg {
  padding: 16px 36px !important;
  font-size: 16px !important;
  border-radius: 14px !important;
}

/* Compact Inline Pills (Never stretches) */
.dn-pill {
  display: inline-flex !important;
  width: auto !important;
  max-width: max-content !important;
  align-self: flex-start !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Hanken Grotesk', sans-serif !important;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px !important;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: nowrap;
  box-sizing: border-box;
}

.dn-pill--sand {
  background-color: #f6dfc0 !important;
  color: #6c5c44 !important;
  border: 1px solid rgba(108, 92, 68, 0.15);
}

.dn-pill--blue {
  background-color: rgba(0, 1, 187, 0.08) !important;
  color: #0001bb !important;
  border: 1px solid rgba(0, 1, 187, 0.12);
}

/* ==========================================================================
   4. SECTIONS & GRID SYSTEM
   ========================================================================== */

.dn-section {
  padding: clamp(60px, 7vw, 100px) 0;
  position: relative;
}

.dn-section--hero {
  padding-top: clamp(40px, 5vw, 70px);
  padding-bottom: clamp(60px, 6vw, 90px);
  background: linear-gradient(180deg, #ffffff 0%, #fbf9fb 100%);
}

.dn-section--white {
  background-color: #ffffff;
}

.dn-section--soft {
  background-color: #f7f6f9;
}

.dn-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.dn-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 36px);
}

@media (max-width: 991px) {
  .dn-grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .dn-grid-3 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==========================================================================
   5. FEATURE STRIP (HERO BOTTOM HIGHLIGHTS)
   ========================================================================== */

.dn-feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 40px);
}

.dn-strip-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
}

.dn-strip-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background-color: #f6dfc0;
  border: 1px solid rgba(108, 92, 68, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0001bb;
  flex-shrink: 0;
}

.dn-strip-title {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #141416;
  margin-bottom: 4px;
  margin-top: 0;
}

.dn-strip-desc {
  font-size: 14px;
  color: #55556a;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 991px) {
  .dn-feature-strip {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================================================
   6. HERO MEDIA CARD
   ========================================================================== */

.dn-hero-media {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  height: clamp(380px, 42vw, 500px);
  position: relative;
  border: 1px solid rgba(20, 20, 22, 0.08);
}

.dn-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dn-floating-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  padding: 16px 22px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(20, 20, 22, 0.08);
}

/* ==========================================================================
   7. SERVICE CARDS (HOME)
   ========================================================================== */

.dn-service-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e2e2e8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dn-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 1, 187, 0.08);
  border-color: #f6dfc0;
}

.dn-service-card__media {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.dn-service-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dn-service-card:hover .dn-service-card__image {
  transform: scale(1.05);
}

.dn-service-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
  color: #0001bb;
  padding: 6px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 1, 187, 0.12);
}

.dn-service-card__body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dn-service-card__title {
  margin-bottom: 12px;
  font-size: 22px;
  margin-top: 0;
}

.dn-service-card__text {
  font-size: 15px;
  color: #55556a;
  margin-bottom: 22px;
  flex-grow: 1;
  line-height: 1.65;
}

.dn-feature-list {
  list-style: none !important;
  margin: 0 0 26px 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dn-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: #141416;
  font-weight: 500;
}

.dn-feature-item-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #0001bb;
  flex-shrink: 0;
  display: inline-block;
}

/* ==========================================================================
   8. PRICING CARDS & GRID (HARMONIZED 4-IN-A-ROW, EQUAL HEIGHT)
   ========================================================================== */

.dn-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 28px 0;
  align-items: stretch;
}

@media (max-width: 991px) and (min-width: 641px) {
  .dn-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .dn-pricing-grid {
    grid-template-columns: 1fr;
  }
}

.dn-price-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e2e8;
  border-radius: 20px;
  padding: 32px 24px 28px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.dn-price-card:hover {
  border-color: #0001bb;
  box-shadow: 0 12px 32px rgba(0, 1, 187, 0.08);
  transform: translateY(-4px);
}

.dn-price-card--featured {
  border: 2px solid #0001bb !important;
  background: #fafaff;
}

.dn-price-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #f6dfc0;
  color: #6c5c44;
  border: 1px solid rgba(108, 92, 68, 0.2);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(108, 92, 68, 0.15);
  white-space: nowrap;
  z-index: 2;
}

.dn-price-card__tag {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #141416;
  margin-bottom: 8px;
  margin-top: 0;
  line-height: 1.2;
}

.dn-price-card__amount {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 700;
  color: #0001bb;
  margin-bottom: 12px;
  line-height: 1.1;
}

.dn-price-card__desc {
  font-size: 14.5px;
  color: #55556a;
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
}

/* Price List Rows (Pensionat & Salong) */
.dn-price-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.dn-price-row {
  background: #ffffff;
  border: 1px solid #e2e2e8;
  border-radius: 14px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.2s ease;
}

.dn-price-row:hover {
  border-color: #0001bb;
}

.dn-price-row__label {
  font-weight: 600;
  color: #141416;
  font-size: 15.5px;
}

.dn-price-row__sub {
  font-size: 13px;
  color: #757589;
  display: block;
  margin-top: 2px;
}

.dn-price-row__val {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #0001bb;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .dn-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==========================================================================
   9. SCHEDULE TIMELINE & OPENING HOURS
   ========================================================================== */

.dn-schedule-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}

.dn-schedule-block {
  background: #ffffff;
  border: 1px solid #e2e2e8;
  border-left: 4px solid #0001bb;
  border-radius: 12px;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
  transition: all 0.2s ease;
}

.dn-schedule-block:hover {
  box-shadow: 0 6px 18px rgba(0, 1, 187, 0.06);
}

.dn-schedule-time {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: #0001bb;
  white-space: nowrap;
}

.dn-schedule-text {
  font-size: 15px;
  color: #454558;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .dn-schedule-block {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Opening Hours Widget */
.dn-hours-widget {
  background: #ffffff;
  border: 1px solid #e2e2e8;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.dn-hours-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.dn-hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e2e8;
  font-size: 15px;
}

.dn-hours-row:last-child {
  border-bottom: none;
}

.dn-hours-label {
  font-weight: 600;
  color: #141416;
}

.dn-hours-time {
  font-weight: 700;
  color: #0001bb;
}

/* ==========================================================================
   10. CONTACT FORM
   ========================================================================== */

.dn-form-container {
  background: #ffffff;
  border: 1px solid #e2e2e8;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.dn-form-group {
  margin-bottom: 20px;
}

.dn-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #141416;
  margin-bottom: 8px;
}

.dn-input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #d4d4dc;
  border-radius: 12px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  color: #141416;
  background-color: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.dn-input:focus {
  outline: none;
  border-color: #0001bb;
  box-shadow: 0 0 0 3px rgba(0, 1, 187, 0.12);
}

/* ==========================================================================
   11. ACCORDION (FAQ)
   ========================================================================== */

.dn-accordion {
  background: #ffffff;
  border: 1px solid #e2e2e8;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.dn-accordion[open] {
  border-color: #0001bb;
  box-shadow: 0 8px 24px rgba(0, 1, 187, 0.06);
}

.dn-accordion__summary {
  padding: 20px 24px;
  font-size: 16.5px;
  font-weight: 700;
  color: #141416;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  user-select: none;
}

.dn-accordion__summary::-webkit-details-marker {
  display: none;
}

.dn-accordion__arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid #0001bb;
  border-bottom: 2px solid #0001bb;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.dn-accordion[open] .dn-accordion__arrow {
  transform: rotate(-135deg);
}

.dn-accordion__content {
  padding: 0 24px 22px 24px;
  font-size: 15.5px;
  line-height: 1.75;
  color: #454558;
}

/* ==========================================================================
   12. PHOTO GALLERY (DESKTOP BENTO + MOBILE HORIZONTAL SLIDER)
   ========================================================================== */

.dn-gallery-wrapper {
  position: relative;
  width: 100%;
}

.dn-gallery-bento {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

@media (min-width: 992px) {
  .dn-gallery-bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
  }
  .dn-bento-item--wide {
    grid-column: span 2;
  }
  .dn-bento-item--tall {
    grid-row: span 2;
  }
  .dn-slider-controls {
    display: none;
  }
}

.dn-gallery-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #141416;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 220px;
}

.dn-gallery-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 20px 48px rgba(0, 1, 187, 0.15);
}

.dn-gallery-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dn-gallery-card:hover .dn-gallery-card__img {
  transform: scale(1.06);
}

.dn-gallery-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(20,20,22,0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 18px 20px;
  opacity: 0.92;
  transition: opacity 0.3s ease;
}

.dn-gallery-card__title {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Mobile Photo Slider */
@media (max-width: 768px) {
  .dn-gallery-bento {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 16px !important;
    padding: 10px 4px 16px 4px !important;
    scrollbar-width: none !important;
    margin: 0 -16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  .dn-gallery-bento::-webkit-scrollbar {
    display: none;
  }

  .dn-gallery-card {
    flex: 0 0 82vw !important;
    max-width: 320px !important;
    height: 280px !important;
    scroll-snap-align: center !important;
    border-radius: 20px !important;
  }

  .dn-bento-item--wide,
  .dn-bento-item--tall {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  /* Slider Navigation Arrows on Mobile */
  .dn-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
  }

  .dn-slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #d4d4dc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0001bb;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
  }

  .dn-slider-btn:active {
    background: #0001bb;
    color: #ffffff;
    transform: scale(0.95);
  }
}

/* Lightbox Modal */
.dn-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 14, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dn-lightbox.is-active {
  display: flex;
  opacity: 1;
}

.dn-lightbox__content {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dn-lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8);
  object-fit: contain;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dn-lightbox.is-active .dn-lightbox__img {
  transform: scale(1);
}

.dn-lightbox__caption {
  color: #f6dfc0;
  font-size: 15px;
  font-weight: 600;
  margin-top: 14px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.dn-lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 26px;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 100000;
}

.dn-lightbox__close:hover {
  background: #0001bb;
  transform: scale(1.08);
}

/* ==========================================================================
   13. FOOTER (CENTERED IN MOBILE)
   ========================================================================== */

.dn-site-footer {
  background-color: #12131a;
  color: #a0a3b5;
  padding: clamp(60px, 7vw, 90px) 0 30px 0;
  border-top: 1px solid #202234;
}

.dn-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.dn-footer-heading {
  color: #ffffff;
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  margin-top: 0;
}

.dn-footer-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dn-footer-list a {
  color: #a0a3b5;
  font-size: 15px;
  text-decoration: none;
}

.dn-footer-list a:hover {
  color: #ffffff;
}

.dn-footer-bottom {
  border-top: 1px solid #202234;
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  color: #717387;
}

@media (max-width: 991px) {
  .dn-footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  /* 100% Centered Footer in Mobile */
  .dn-site-footer {
    text-align: center !important;
  }

  .dn-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
    text-align: center !important;
  }

  .dn-footer-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .dn-footer-nap > div:first-child {
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .dn-footer-list {
    align-items: center !important;
    text-align: center !important;
  }

  .dn-footer-bottom {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 12px !important;
  }
}

/* ==========================================================================
   14. MOBILE CENTERING & STICKY BOTTOM BAR (CONVERSION MAGNET)
   ========================================================================== */

.dn-mobile-sticky-bar {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 74px !important;
  }

  /* Center all main action buttons on mobile */
  .dn-hero-actions,
  .dn-section-cta,
  .dn-header-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .dn-hero-actions .dn-btn,
  .dn-section .dn-btn,
  .dn-form-container .dn-btn {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .dn-service-card__body .dn-btn {
    width: 100%;
    justify-content: center;
  }

  /* Sticky Mobile Bottom Bar */
  .dn-mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 997;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(20, 20, 22, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 16px;
    gap: 12px;
    box-sizing: border-box;
  }

  .dn-sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform 0.15s ease;
    line-height: 1;
  }

  .dn-sticky-btn:active {
    transform: scale(0.97);
  }

  .dn-sticky-btn--call {
    background-color: #f6dfc0;
    color: #6c5c44 !important;
    border: 1px solid rgba(108, 92, 68, 0.2);
  }

  .dn-sticky-btn--book {
    background-color: #0001bb;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 1, 187, 0.28);
  }
}
