/* styles.css - Global Reset and Base Styles */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Typography */
html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: -15px;
}

.col-lg-6 {
  flex: 0 0 50%;
  padding: 15px;
}

/* Utility Classes */
.section-padding {
  padding: 80px 0;
}

.bg-light {
  background-color: #f8f9fa;
}

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.align-items-center {
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  outline: none;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f7931e, #ff6b35);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.btn-light {
  background: white;
  color: #333;
}

.btn-light:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid #ff6b35;
  color: #ff6b35;
}

.btn-outline:hover {
  background: #ff6b35;
  color: white;
}

.btn-lg {
  padding: 15px 40px;
  font-size: 18px;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.5rem;
  color: #222;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #ff6b35, #f7931e);
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
}

/* Top Bar */
.top-bar {
  background: #222;
  color: #fff;
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left span,
.top-bar-right span {
  margin-right: 20px;
}

.social-links {
  display: inline-flex;
  gap: 15px;
}

.social-links a {
  color: #fff;
  font-size: 14px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #ff6b35;
}

/* Header */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 28px;
  font-weight: 700;
  color: #ff6b35;
}

.logo img {
  width: 140px;
  height: auto;
  margin-right: 10px;
}

/* Navigation */
.nav-menu ul {
  display: flex;
  gap: 35px;
}

.nav-menu a {
  color: #333;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #ff6b35;
}

.nav-menu a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff6b35;
  transition: width 0.3s;
}

.nav-menu a:hover:after,
.nav-menu a.active:after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  padding: 15px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 15px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  padding: 10px 20px;
  display: block;
  color: #333;
}

.dropdown-menu a:hover {
  background: #f8f9fa;
  color: #ff6b35;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Footer */
.footer {
  background: #222;
  color: #fff;
  margin-top: 50px;
}

.footer-top {
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-column h3 {
  color: #ff6b35;
  margin-bottom: 20px;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-column a:hover {
  color: #ff6b35;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: #ff6b35;
  transform: translateY(-3px);
}

.footer-contact li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.footer-bottom {
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 30px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeInUp 1s ease-out;
}

/* Reveal on Scroll */
.reveal-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .col-lg-6 {
    flex: 0 0 100%;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .section-padding {
    padding: 50px 0;
  }

  .top-bar-content {
    flex-direction: column;
    gap: 10px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 0;
  }

  .nav-menu li {
    margin-bottom: 20px;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
    margin-top: 10px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}


/* --- Fix CHF rendering in Featured price badge --- */
.arch-price-amount,
.arch-price-amount * {
  text-transform: none !important;
  font-variant: normal !important;
  font-variant-caps: normal !important;
}

/* Neutralize the first-letter shrink that makes "C" look like "c" */
.arch-price-amount::first-letter {
  font-size: inherit !important;
  margin-right: 0 !important;
  top: 0 !important;
  opacity: 1 !important;
  text-transform: none !important;
}

/* === Mobile sidebar CTAs (Book / Buy) === */
@media (max-width: 768px) {

  /* Show the CTAs inside the slide-out menu; header-cta stays hidden on mobile */
  .nav-menu .nav-cta {
    display: grid;
    gap: 12px;
    padding: 16px 30px 30px;
    /* matches your .nav-menu ul padding */
    border-top: 1px solid rgba(0, 0, 0, .06);
    background: #fff;
  }

  /* Make buttons big, easy to tap, and full width */
  .nav-menu .nav-cta .btn {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border-radius: 10px;
  }

  /* Primary and outline variants already exist — keep brand colors */
  .nav-menu .nav-cta .btn-primary {
    box-shadow: 0 8px 22px rgba(255, 107, 53, 0.22);
  }

  .nav-menu .nav-cta .btn-outline {
    border-width: 2px;
  }

  /* Optional: stick the CTAs to the bottom of the sidebar for long menus */
  .nav-menu {
    display: flex;
    flex-direction: column;
  }

  .nav-menu ul {
    flex: 1 1 auto;
    /* list scrolls */
    overflow-y: auto;
  }

  .nav-menu .nav-cta {
    flex: 0 0 auto;
    /* CTAs pinned at bottom */
  }
}

/* Hide the sidebar CTAs on tablet/desktop */
@media (min-width: 769px) {
  .nav-menu .nav-cta {
    display: none;
  }
}

/* === Force navbar to start on the left (desktop) === */
.header .header-content {
  justify-content: flex-start;
  /* was space-between */
  gap: 28px;
  /* space between logo and nav */
}

/* Nav sits after the logo, not pushed to the right */
.header .nav-menu {
  flex: 0 1 auto;
  margin-inline-start: 0;
  /* kill any auto-push */
  margin-inline-end: 0;
  direction: ltr;
  /* ensure left-start even if page dir flips */
  text-align: left;
}

/* Nav items align from the left edge */
.header .nav-menu ul {
  justify-content: flex-start;
}

/* Keep the burger button on the far right */
.header .mobile-menu-toggle {
  margin-inline-start: auto;
  /* pushes it to the end */
}

/* Optional: make logo + nav inline-tight */
.header .logo {
  margin-inline-end: 6px;
}

/* Mobile drawer unchanged; this only affects desktop layout */
@media (max-width: 768px) {
  .header .header-content {
    justify-content: space-between;
    /* keep mobile behavior */
  }
}

/* === "Site under edits" modal (bilingual notice) === */
#siteEditNotice {
  border: none;
  padding: 0;
  background: transparent;
}

/* Center the dialog in the viewport */
#siteEditNotice[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dark, slightly blurred backdrop */
#siteEditNotice::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}

/* Card inside the dialog */
.edit-notice-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.75rem 1.75rem 1.5rem;
  max-width: 480px;
  width: min(92vw, 480px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

/* Title */
.edit-notice-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: #222;
}

/* Text */
.edit-notice-modal p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: #555;
}

/* Button: reuse .btn styles but make it fit the card nicely */
.edit-notice-modal .btn {
  margin-top: 1rem;
  align-self: stretch;
  text-align: center;
}

/* On wider screens, keep button tighter and on the right */
@media (min-width: 576px) {
  .edit-notice-modal {
    padding: 2rem 2rem 1.75rem;
  }

  .edit-notice-modal .btn {
    align-self: flex-end;
    width: auto;
    min-width: 180px;
  }
}

/* === Bilingual "site under edits" modal (theme-styled) === */
#siteEditNotice {
  border: none;
  padding: 0;
  margin: 0;
}

/* Center dialog in viewport */
#siteEditNotice[open] {
  position: fixed;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0 */
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  /* we use ::backdrop for the dim overlay */
}

/* Dimmed, slightly warm backdrop */
#siteEditNotice::backdrop {
  background: radial-gradient(circle at top, rgba(255, 107, 53, 0.35), rgba(0, 0, 0, 0.75));
  backdrop-filter: blur(3px);
}

/* Modal card */
.edit-notice-modal {
  background: #ffffff;
  border-radius: 18px;
  max-width: 480px;
  width: min(92vw, 480px);
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

/* Theme accent bar */
.edit-notice-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 5px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
}

/* Content spacing below accent bar */
.edit-notice-modal h2,
.edit-notice-modal p,
.edit-notice-modal .btn {
  position: relative;
}

/* Title */
.edit-notice-modal h2 {
  margin-top: 0.75rem;
  /* leave space under accent bar */
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: #222;
}

/* Paragraphs */
.edit-notice-modal p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: #555;
}

/* Highlight "English:" label with theme color */
.edit-notice-modal p strong {
  color: #ff6b35;
}

/* Button uses your .btn base, just tweak layout */
.edit-notice-modal .btn {
  margin-top: 1.1rem;
  align-self: flex-end;
  min-width: 180px;
}

/* On very small screens, let the button stretch full width */
@media (max-width: 480px) {
  .edit-notice-modal {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .edit-notice-modal .btn {
    align-self: stretch;
    width: 100%;
  }
}
