/*
Theme Name: swissbutler
Theme URI: https://swissbutler.ch
Author: Matthias Ruf
Author URI: https://swissbutler.ch
Description: Ein benutzerdefiniertes WordPress-Theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: swissbutler
*/

/* Critical CSS for LCP optimization */
.hero-title {
  font-family: 'EB Garamond', serif;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.1;
  color: #050505;
  margin-bottom: 1rem;
  font-display: swap;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
}

/* Global Colors and Variables */
:root {
  --color-green-dark: #081f19;
  --color-green-mid: #154b3c;
  --color-purple-dark: #1f2839;
  --color-gold-light: #eae2c6;
  --color-gold-mid: #b59630;
  --color-gold-dark: #917723;
  --color-background-light: #fcfbf8;
  --color-grey-light: #fcfbf8;
  --color-grey-mid: #f0f2f1;
  --color-grey-dark: #dce0de;
  --color-text: #222222;
}

/* General Body Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 80px; /* Adjust this value to match your header height */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: black;
  font-family: 'EB Garamond', serif;
  word-wrap: break-word;
}

h1 {
  font-size: 64px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 0.5em;
  word-wrap: break-word;
  hyphens: auto;
}

h2 {
  font-size: 39.81px;
  font-weight: 500;
  line-height: 39.81px;
}

h3 {
  font-size: 33.18px;
  font-weight: 500;
  line-height: 33.18px;
}

h4 {
  font-size: 27.65px;
  font-weight: 500;
  line-height: 27.65px;
}

h5 {
  font-size: 23.04px;
  font-weight: 500;
  line-height: 27.65px;
}

h6 {
  font-size: 18px;
  font-weight: 600;
  line-height: 21.6px;
}

/* Responsive Typography */
@media (max-width: 1024px) {
  h1 {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 28px;
    line-height: 1.2;
  }
}

/* Paragraph and Text Styles */
p {
  color: black;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 24px;
  word-wrap: break-word;
}

.small {
  color: black;
  font-size: 13.33px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 16px;
  word-wrap: break-word;
}

.xsmall {
  color: black;
  font-size: 11.11px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 11.11px;
  word-wrap: break-word;
}

/* Breadcrumbs */
.breadcrumbs {
  color: var(--color-text);
  font-size: 12px;
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  line-height: 20px;
  word-wrap: break-word;
}

/* Link Styles */
a {
  color: var(--color-green-mid);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: underline;
}

/* Content Wrapper and Container */
.page-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  position: relative;
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .page-wrapper {
    padding: 1.25em;
  }
}

/* Utility Classes */
.mt-1 {
  margin-top: 1.25em;
}
.mt-2 {
  margin-top: 2.5em;
}
.mb-1 {
  margin-bottom: 1.25em;
}
.mb-2 {
  margin-bottom: 2.5em;
}
.py-1 {
  padding-top: 1.25em;
  padding-bottom: 1.25em;
}
.py-2 {
  padding-top: 2.5em;
  padding-bottom: 2.5em;
}

.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-left {
  text-align: left;
}
.d-flex {
  display: flex;
}
.align-items-center {
  align-items: center;
}
.justify-content-between {
  justify-content: space-between;
}
.w-100 {
  width: 100%;
}
.position-relative {
  position: relative;
}

/* Mobile Menu Styles */
.mobile-menu-list li a {
  color: #081f19;
  font-size: 18px;
  font-family: 'EB Garamond', serif;
  font-weight: 600;
  line-height: 21.6px;
  word-wrap: break-word;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.mobile-menu-list li a img {
  width: 24px;
  height: 24px;
  margin-right: 12px;
}

/* Footer Styles */
.site-footer {
  background: #273b35;
  padding: 30px 20px;
  color: #fcfbf8;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.footer-container > * {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.footer-navigation {
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
}

/* Logo Section */
.footer-logo img {
  height: 22px;
  margin-bottom: 24px;
}

/* Contact Section */
.contact-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-info a {
  color: #fcfbf8;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.opening-hours div {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.opening-hours .day {
  color: #fcfbf8;
  font-size: 11.11px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 11.11px;
  margin-bottom: 4px;
}

.opening-hours .time {
  color: #fcfbf8;
  font-size: 13.33px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 16px;
  padding-left: 0;
}

/* Navigation Section */
.footer-navigation h3 {
  color: white;
  font-size: 13.33px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 16px;
  margin-bottom: 16px;
}

.footer-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 100%;
  width: 100%;
}

.footer-menu-list a {
  color: #fcfbf8;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
}

/* Locations Section */
.locations-section h3 {
  color: white;
  font-size: 13.33px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 16px;
  margin-bottom: 16px;
}

.locations-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.location p {
  color: white;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
}

/* Regions Section */
.regions-section h3 {
  color: white;
  font-size: 13.33px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 16px;
  margin-bottom: 16px;
}

.regions-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
}

.region-tag {
  padding: 4px 8px;
  background: #081f19;
  border-radius: 4px;
  color: #fcfbf8;
  font-size: 13.33px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 16px;
  white-space: nowrap;
  flex: 0 1 auto;
}

/* Social Media Section */
.social-section h3 {
  color: white;
  font-size: 13.33px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 16px;
  margin-bottom: 16px;
}

.social-icons {
  display: flex;
  gap: 24px;
}

.social-icons img {
  width: 24px;
  height: 24px;
}

/* Copyright */
.copyright {
  margin-top: 32px;
}

.copyright p {
  color: white;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
}

/* Desktop Footer Layout */
@media (min-width: 769px) {
  .site-footer {
    padding: 80px 20px 40px;
  }

  .footer-container {
    max-width: 80em;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }

  .footer-logo {
    grid-column: 1;
  }

  .footer-navigation {
    grid-column: 1;
  }

  .contact-section {
    grid-column: 2;
  }

  .regions-section {
    grid-column: 3;
  }

  .social-section {
    grid-column: 4;
  }

  .language-selector {
    grid-column: 5;
    color: white;
    font-size: 13.33px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .language-selector .dropdown-icon {
    width: 24px;
    height: 24px;
    background: #d9d9d9;
    position: relative;
    border-radius: 4px;
  }

  .language-selector .dropdown-icon::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 5px;
    background: white;
    left: 7px;
    top: 10px;
  }

  .copyright {
    grid-column: 1 / -1;
    margin-top: 40px;
  }
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  background: var(--color-background-light);
  z-index: 1000;
  width: 100%;
  transition: transform 0.3s ease;
}

.site-header.nav-up {
  transform: translateY(-100%);
}

.site-header.nav-down {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Header Container and Navigation */
.header-container {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 80em;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 40px;
  width: auto;
  display: block;
}

/* Desktop Menu Styles */
.desktop-menu {
  display: flex;
  align-items: center;
  height: 100%;
}

.desktop-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
  align-items: center;
  height: 100%;
}

.desktop-menu-list li a {
  color: #081f19;
  font-size: 18px;
  font-family: 'EB Garamond', serif;
  font-weight: 600;
  line-height: 21.6px;
  word-wrap: break-word;
  text-decoration: none;
  display: flex;
  align-items: center;
  position: relative;
}

.desktop-menu-list li a img {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.desktop-menu-list li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #081f19;
  transition: width 0.3s ease;
}

.desktop-menu-list li a:hover::after {
  width: 100%;
}

.desktop-menu-list li a:hover {
  text-decoration: none;
}

/* Post Title */
.hentry .entry-header h1 {
  text-shadow: none;
  box-shadow: none;
}

/* Franchise Template Styles */
.franchise-page {
  padding: 0;
}

/* Main Content */
.entry-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Franchise Content Sections */
.franchise-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.franchise-content section {
  margin-bottom: 60px;
}

.franchise-content h2 {
  margin-bottom: 30px;
  text-align: center;
}

/* Family Section */
.family-content {
  margin-bottom: 30px;
}

.family-image {
  margin: 30px 0;
  width: 100%;
}

.family-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* Start Section */
.start-content {
  line-height: 1.6;
}

/* Contact Form */
.franchise-contact {
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .entry-content,
  .franchise-content {
    padding: 60px 20px;
  }
}

/* Footer Logos Component */
.footer-logos-section {
  width: 100%;
  padding: 2rem 0 1rem 0;
  background: none;
}
.footer-logos-track {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  scrollbar-width: thin;
  scrollbar-color: #ccc #f9f9f9;
  padding: 0 1rem;
  justify-content: flex-start;
}
.footer-logo-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  max-width: 140px;
  height: 70px;
  background: none;
}
.footer-logo-item img {
  max-height: 60px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.2);
  transition:
    filter 0.2s,
    transform 0.2s;
}
.footer-logo-item img:hover {
  filter: grayscale(0) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
  transform: scale(1.05);
}
@media (min-width: 700px) {
  .footer-logos-track {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2.5rem;
    overflow-x: visible;
    justify-items: center;
    align-items: center;
    padding: 0 2rem;
  }
  .footer-logo-item {
    min-width: 0;
    max-width: 160px;
    height: 80px;
  }
  .footer-logo-item img {
    max-height: 70px;
    max-width: 140px;
  }
}

.footer-logos-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Seal Button Styles */
.seal-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
  display: inline-block;
  outline: none;
  box-shadow: none;
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.seal-button:hover {
  opacity: 0.8;
}

.seal-button:focus {
  outline: none;
  box-shadow: none;
}

/* New Guarantee Popup Styles */
.guarantee-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.guarantee-popup.popup-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  cursor: pointer;
  z-index: 1;
}

.popup-container {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  width: 500px;
  z-index: 2;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: auto;
}

.guarantee-popup.popup-active .popup-container {
  transform: scale(1) translateY(0);
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 10;
  color: #666;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.popup-close:hover {
  background-color: #f5f5f5;
  color: #333;
  transform: scale(1.1);
}

.popup-close:focus {
  outline: 2px solid #007cba;
  outline-offset: 2px;
}

.popup-content {
  padding: 0;
}

.popup-header {
  padding: 32px 32px 0 32px;
}

.popup-header h2 {
  color: var(--color-green-dark);
  font-family: 'EB Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.popup-body {
  padding: 24px 32px 32px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.popup-text {
  flex: 1;
}

.popup-text p {
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.popup-seal {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 1px solid #dee2e6;
}

.popup-seal-image {
  width: 80px;
  height: auto;
  max-width: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Responsive Popup */
@media (max-width: 768px) {
  .popup-container {
    width: 90vw;
    max-width: 400px;
    margin: 20px;
  }

  .popup-header {
    padding: 24px 24px 0 24px;
  }

  .popup-header h2 {
    font-size: 24px;
  }

  .popup-body {
    flex-direction: column;
    padding: 20px 24px 24px 24px;
    gap: 20px;
    text-align: center;
  }

  .popup-text p {
    font-size: 15px;
  }

  .popup-seal {
    align-self: center;
    padding: 12px;
  }

  .popup-seal-image {
    width: 70px;
  }
}

@media (max-width: 480px) {
  .popup-container {
    width: 95vw;
    max-width: 350px;
    margin: 10px;
  }

  .popup-header {
    padding: 20px 20px 0 20px;
  }

  .popup-header h2 {
    font-size: 22px;
  }

  .popup-body {
    padding: 16px 20px 20px 20px;
    gap: 16px;
  }

  .popup-text p {
    font-size: 14px;
  }

  .popup-seal {
    padding: 10px;
  }

  .popup-seal-image {
    width: 60px;
  }

  .popup-close {
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    padding: 6px;
  }
}
