/* ===========================
   CSS VARIABLES
=========================== */
:root{
  --bg: #FBF1E6;
  --maroon: #6E1B1B;
  --maroon-2: #7C1B1B;
  --text: #0E1726;
  --muted: #5A6473;
  --border: rgba(110,27,27,0.22);
  --shadow: 0 14px 40px rgba(0,0,0,0.06);
  --radius: 999px;
  --container: 1200px;
  --transition: 0.3s ease;
}

/* ===========================
   BASE
=========================== */
*{ 
  box-sizing: border-box; 
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body{
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container{
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}

a{
  color: inherit;
  text-decoration: none;
}

button{
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ===========================
   SKIP LINK (A11Y)
=========================== */
/* ===========================
   SKIP LINK (A11Y) - FIXED
=========================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 8px;
  z-index: 1001;
  font-weight: 600;
  font-size: 14px;
  transition: top .3s ease, transform .2s ease, background .2s ease;
  background: var(--maroon);
  /* Hide by default */
  opacity: 0;
  visibility: hidden;
}

.skip-link:focus {
  top: 10px;
  outline: 3px solid #fff;
  outline-offset: 2px;
  /* Show only when focused */
  opacity: 1;
  visibility: visible;
}

.skip-link:hover {
  background: var(--maroon-2);
  transform: translateY(-1px);
}

/* ===========================
   HEADER COMMON STYLES
=========================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(10px);
}

.site-header.is-sticky{
  background: rgba(251,241,230,0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* ===========================
   DARK HEADER VARIANT
=========================== */
.site-header.header-dark{
  background: var(--maroon);
}
.site-header.header-dark.is-sticky{
  background: var(--maroon);
  box-shadow: 0 12px 34px rgba(0,0,0,.18);
}

/* ===========================
   NAVIGATION
=========================== */
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  position: relative;
}

/* ===========================
   LOGO
=========================== */
.logo-img{
  max-width: 180px;
  height: auto;
  transition: transform .3s ease;
}

.logo-img:hover{
  transform: scale(1.02);
}

.logo-img--dark{ 
  display: none; 
}

.logo-img--light{ 
  display: block; 
}

/* Dark header logo variants */
.site-header.header-dark .logo-img--light{ 
  display: none; 
}

.site-header.header-dark .logo-img--dark{ 
  display: block; 
}

/* ===========================
   DESKTOP MENU
=========================== */
.menu{
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.menu a{
  text-decoration: none;
  color: #721516;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 0;
  position: relative;
  display: inline-block;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  transition: color var(--transition);
}

.menu a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--maroon);
  transition: width .28s ease;
}

.menu a:hover::after,
.menu a:focus-visible::after,
.menu a.active::after{
  width: 100%;
}

.menu a:hover{ 
  opacity: .8; 
}

/* Dark header menu */
.site-header.header-dark .menu a{
  color: rgba(255,255,255,0.92);
}

.site-header.header-dark .menu a::after{
  background: rgba(255,255,255,0.92);
}

/* ===========================
   LANGUAGE SELECTOR
=========================== */
.lang{
  position: relative;
  margin-left: auto;
  margin-right: 52px;
}

.langBtn{
  border: none;
  background: transparent;
  color: rgba(110,27,27,.9);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  min-height: 44px;
  min-width: 44px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  transition: background var(--transition);
}

.site-header.header-dark .langBtn{
  color: rgba(255,255,255,0.92);
}

.langBtn:hover{
  background: rgba(110,27,27,.06);
}

.site-header.header-dark .langBtn:hover{
  background: rgba(255,255,255,0.1);
}

.langMenu{
  position: absolute;
  top: 44px;
  right: 0;
  background: #fff;
  border: 1px solid rgba(14,23,38,0.08);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  min-width: 140px;
  z-index: 20;
}

.site-header.header-dark .langMenu{
  background: var(--maroon);
  border-color: rgba(255,255,255,0.1);
}

.langMenu.open{ 
  display: block; 
}

.langMenu button{
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  transition: background var(--transition);
}

.site-header.header-dark .langMenu button{
  color: rgba(255,255,255,0.92);
}

.langMenu button:hover{
  background: rgba(110,27,27,.06);
}

.site-header.header-dark .langMenu button:hover{
  background: rgba(255,255,255,0.1);
}

.caret{ 
  opacity: .8; 
  font-size: 12px;
}

/* ===========================
   HEADER ACTIONS
=========================== */
.actions{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ===========================
   BUTTONS
=========================== */
.btn{
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .15s ease;
  font-family: 'Inter', system-ui, sans-serif;
  white-space: nowrap;
}

.btn:active{
  transform: translateY(1px);
}

.btn:focus-visible{
  outline: 2px solid var(--maroon);
  outline-offset: 2px;
}

/* Primary Button */
.btnPrimary{
  background: var(--maroon);
  color: #fff;
  box-shadow: 0 10px 24px rgba(110,27,27,.22);
  border: 1px solid var(--maroon);
}

.btnPrimary:hover{
  opacity: .92;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(110,27,27,.28);
}

/* Dark header primary button */
.site-header.header-dark .btnPrimary{
  background: transparent;
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: none;
  color: white;
}

.site-header.header-dark .btnPrimary:hover{
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.9);
}

/* Arrow animation */
.iconArrow{
  width: 18px;
  height: 18px;
  transition: transform .3s ease;
}

.btn:hover .iconArrow{
  transform: translateX(4px);
}

/* Ghost Button */
.btnGhost{
  background: #fff;
  border: 1px solid rgba(14,23,38,0.08);
  color: var(--text);
}

.btnGhost:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* Dark header ghost button */
.site-header.header-dark .btnGhost{
  background: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  color: #000;
}

.site-header.header-dark .btnGhost:hover{
  background: #fff;
  border-color: rgba(255,255,255,0.5);
}

/* App icon animation */
.btnGhost img.app-icon{
  width: 20px;
  height: 20px;
  transition: transform .3s ease;
}

.btnGhost .app-icon-text{
  display: flex;
  gap: 8px;
  align-items: center;
  transition: transform .3s ease;
}

.btnGhost:hover .app-icon-text{
  transform: translateX(4px);
}

.btnGhost:hover img.app-icon{
  transform: scale(1.1) rotate(5deg);
}

/* ===========================
   MOBILE HAMBURGER MENU
=========================== */
.hamburger{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(14,23,38,0.08);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  transition: all var(--transition);
  z-index: 1002;
}

.site-header.header-dark .hamburger{
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.hamburger span{
  width: 18px;
  height: 2px;
  background: rgba(14,23,38,0.9);
  border-radius: 4px;
  display: block;
  transition: all var(--transition);
}

.site-header.header-dark .hamburger span{
  background: rgba(255,255,255,0.9);
}

.hamburger.active span:nth-child(1){
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2){
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3){
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===========================
   MOBILE PANEL
=========================== */
.mobilePanel{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--maroon);
  padding: 100px 24px 24px;
  z-index: 1001;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
  height: 100vh;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobilePanel.open{
  display: block;
}
.mobilePanel::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--maroon);
  z-index: -1;
}
.site-header:not(.header-dark) .mobilePanel::before {
  background: white;
}

.mobilePanel a{
  display: block;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  padding: 16px 0;
  transition: all var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobilePanel a:last-child{
  border-bottom: none;
}

.mobilePanel a:hover{
  background: rgba(255,255,255,0.1);
  padding-left: 10px;
}

/* Light header mobile panel */
.site-header:not(.header-dark) .mobilePanel{
  background: white;
}

.site-header:not(.header-dark) .mobilePanel a{
  color: var(--text);
  border-bottom: 1px solid rgba(14,23,38,0.08);
}

.site-header:not(.header-dark) .mobilePanel a:hover{
  background: rgba(110,27,27,0.06);
}

/* ===========================
   PAGE HERO SECTION
=========================== */
.page-hero {
  background: #F3E7E7;
  color: #721516;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero__content {
  max-width: 800px;
  margin: 0 auto;
}

.page-hero__title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 24px 0;
  font-family: 'Poppins', sans-serif;
  color: #721516;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.page-hero__subtitle {
  font-size: 20px;
  line-height: 1.6;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  color: rgba(114, 21, 22, 0.9);
  max-width: 600px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

/* Subtle background gradient animation */
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(243, 231, 231, 1) 0%,
    rgba(243, 231, 231, 0.95) 50%,
    rgba(243, 231, 231, 1) 100%
  );
  animation: gradientShift 15s ease infinite;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Optional underline animation for title */
.page-hero__title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: #721516;
  margin: 24px auto 0;
  opacity: 0;
  transform: scaleX(0);
  animation: expandLine 0.8s ease 0.8s forwards;
}

@keyframes expandLine {
  to {
    opacity: 0.3;
    transform: scaleX(1);
  }
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-hero {
    padding: 80px 0;
  }
  
  .page-hero__title {
    font-size: 56px;
  }
  
  .page-hero__subtitle {
    font-size: 18px;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 70px 0;
  }
  
  .page-hero__title {
    font-size: 42px;
    margin-bottom: 20px;
  }
  
  .page-hero__subtitle {
    font-size: 16px;
    max-width: 100%;
  }
  
  .page-hero__title::after {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 60px 0;
  }
  
  .page-hero__title {
    font-size: 36px;
    margin-bottom: 16px;
  }
  
  .page-hero__subtitle {
    font-size: 15px;
  }
  
  .page-hero__title::after {
    width: 60px;
    margin-top: 16px;
  }
}

/* ===========================
   SCROLL TO TOP BUTTON
=========================== */
.scroll-to-top{
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--maroon);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(110, 27, 27, 0.3);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.scroll-to-top.visible{
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.scroll-to-top:hover{
  background: var(--maroon-2);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(110, 27, 27, 0.4);
}

.scroll-to-top:active{
  transform: translateY(0);
}

.scroll-to-top svg{
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
}

/* ===========================
   FOOTER
=========================== */
.ft{
  background: var(--maroon);
  color: #fff;
  padding: 86px 0 34px;
}

.ft__container{
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.ft__grid{
  display: grid;
  grid-template-columns: 1.15fr 0.75fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.ft__logoName{
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 22px;
  font-family: 'Raleway', 'Segoe UI', sans-serif;
}

.ft__logoSub{
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 3px;
  opacity: .85;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.ft__address{
  margin: 18px 0 0;
  font-style: normal;
  line-height: 1.65;
  font-weight: 400;
  opacity: .95;
  font-size: 20px;
  font-family: 'Poppins', sans-serif;
}

.ft__address a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ft__address a:hover{
  opacity: 0.8;
}

.ft__block{ 
  margin-top: 26px; 
}

.ft__h{
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
  font-family: 'Poppins', sans-serif;
}

.ft__hours{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  opacity: .95;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.ft__clock{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  font-family: 'Poppins', sans-serif;
}

.ft__nav{
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}

.ft__nav a{
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 400;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  transition: opacity var(--transition);
}

.ft__nav a:hover{
  opacity: .85;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ft__icons{
  display: flex;
  gap: 18px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.ft__iconBtn{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  color: #0E1726;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 14px 38px rgba(0,0,0,0.18);
  transition: all .15s ease;
}

.ft__iconBtn:hover{
  transform: translateY(-2px);
  opacity: .95;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.ft__iconBtn svg{ 
  width: 22px; 
  height: 22px; 
  stroke: currentColor;
  stroke-width: 1.8;
}

.ft__form{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.ft__input{
  flex: 1 1 260px;
  height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.12);
  color: #fff;
  outline: none;
  font-weight: 650;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  transition: border-color var(--transition);
}

.ft__input:focus{
  border-color: rgba(255,255,255,0.5);
}

.ft__input::placeholder{
  color: rgba(255,255,255,0.55);
  font-weight: 650;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.ft__submit{
  height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.20);
  background: #fff;
  color: var(--maroon);
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all .15s ease;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  white-space: nowrap;
}

.ft__submit:hover{
  opacity: .95;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ft__submit:active{
  transform: translateY(1px);
}

.ft__hint{
  margin-top: 10px;
  font-size: 13px;
  opacity: .85;
  min-height: 18px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.ft__bottom {
  text-align: center;
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-weight: 400;
  opacity: .9;
  font-family: 'Poppins',sans-serif;
}

/* ===========================
   UTILITY CLASSES
=========================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center{
  text-align: center;
}

/* ===========================
   RESPONSIVE BREAKPOINTS
=========================== */
@media (max-width: 1024px){
  .menu {
    position: static;
    transform: none;
    margin: 0 auto;
  }
  
  .lang {
    margin-right: 32px;
  }
  
  .ft__grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .ft__address{
    font-size: 18px;
  }
  
  .ft__nav a{
    font-size: 18px;
  }
}

@media (max-width: 768px){
  /* Hide desktop menu, language selector, and buttons on mobile */
  .menu,
  .lang,
  .btnPrimary,
  .btnGhost {
    display: none !important;
  }
  
  /* Show hamburger on mobile */
  .hamburger{
    display: flex !important;
  }
  .site-header {
    z-index: 1000;
  }
  .nav {
    z-index: 1000;
  }
  
  /* Adjust header actions for mobile */
  .actions{
    gap: 8px;
  }
  
  /* Make sure hamburger is the only thing in actions on mobile */
  .actions .hamburger {
    margin-left: auto;
  }
  
  /* Adjust logo size on mobile */
  .logo-img{
    max-width: 150px;
  }
  
  /* Footer responsive */
  .ft__grid{
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .ft{
    padding: 60px 0 30px;
  }
  
  .ft__address{
    font-size: 16px;
  }
  
  .ft__nav a{
    font-size: 16px;
  }
  
  .ft__h{
    font-size: 20px;
  }
  
  .ft__icons{
    gap: 12px;
  }
  
  .ft__iconBtn{
    width: 48px;
    height: 48px;
  }
  
  .ft__iconBtn svg{
    width: 20px;
    height: 20px;
  }
  
  /* Adjust footer form for mobile */
  .ft__form{
    flex-direction: column;
    gap: 12px;
  }
  
  .ft__input,
  .ft__submit{
    width: 100%;
    flex: none;
  }
  
  .ft__input{
    height: 48px;
  }
  
  .ft__submit{
    height: 48px;
    justify-content: center;
  }
}

@media (max-width: 480px){
  .container{
    width: calc(100% - 32px);
  }
  
  .ft__container{
    width: calc(100% - 32px);
  }
  
  .btn{
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .ft__address{
    font-size: 14px;
  }
  
  .ft__nav a{
    font-size: 14px;
  }
  
  .ft__h{
    font-size: 18px;
  }
  
  .logo-img{
    max-width: 130px;
  }
  
  .scroll-to-top{
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 20px;
  }
  
  .scroll-to-top svg{
    width: 18px;
    height: 18px;
  }
}

/* ===========================
   FIX FOR BODY SCROLL WHEN MENU IS OPEN
=========================== */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

body.menu-open .site-header {
  position: fixed;
  width: 100%;
  z-index: 1000;
}