/* ============================================================
   AETHRA — GLOBAL THEME (midnight navy + lavender)
   ============================================================ */

:root{
  --bg:            #070718;   /* page / header */
  --bg-deep:       #05050f;   /* image wells, footer */
  --surface:       #12102b;   /* cards */
  --surface-2:     #1b1840;   /* raised / hover */
  --line:          rgba(167,139,250,.18);
  --line-strong:   rgba(167,139,250,.38);
  --text:          #f4f1ff;
  --text-muted:    #a99fc9;
  --accent:        #c794ff;   /* lavender */
  --accent-soft:   #b79ae0;   /* muted lavender (inactive-selected) */
  --accent-glow:   rgba(199,148,255,.35);
  --overlay:       rgba(10,8,36,.72);
  --radius:        14px;
  --radius-sm:     8px;
}

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

html{ scroll-behavior:smooth; }

body{
  font-family:'Open Sans', sans-serif;
  background:var(--bg);
  color:var(--text-muted);
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

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

/* TYPOGRAPHY */
h1,h2,h3,h4{ font-family:'Playfair Display', serif; color:var(--text); }
h1{ font-size:36px; }
h2{ font-size:28px; }
h3{ font-size:22px; }
p{ color:var(--text-muted); }

a{ text-decoration:none; color:inherit; transition:.2s; }
a:hover{ opacity:.85; }

/* CONTAINERS */
.container{ max-width:1200px; margin:auto; padding:0 20px; }
.section{ padding:70px 0; }

/* HEADER */
header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 40px;
  background:var(--bg);
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:100;
}
header h1{ letter-spacing:2px; font-size:22px; font-weight:600; color:var(--text); }
header span{ font-weight:300; }

header nav{ display:flex; gap:28px; align-items:center; }
header nav a{ font-size:15px; color:var(--text-muted); font-weight:500; }
header nav a:hover{ color:var(--text); opacity:1; }

/* NAV LINKS */
.nav-link{
  position:relative;
  color:var(--text-muted);
  padding:6px 10px;
  border-radius:var(--radius-sm);
  transition:.2s ease;
}
/* thin divider between links */
.nav-link + .nav-link::before{
  content:"";
  position:absolute;
  left:-15px;
  top:50%;
  width:1px;
  height:14px;
  transform:translateY(-50%);
  background:var(--line-strong);
}
.nav-link:hover{ background:rgba(167,139,250,.08); color:var(--text); }

.nav-link.active,
.page-home .nav-link[href="index.html"],
.page-products .nav-link[href="products.html"]{
  color:var(--accent);
  font-weight:600;
  background:rgba(167,139,250,.14);
  border:1px solid var(--line);
  border-bottom:2px solid var(--accent);
}

/* FOOTER */
.footer{
  background:var(--bg-deep);
  color:var(--text);
  padding:20px 0;
  position:relative;
  z-index:5;
  width:100vw;
  margin:0 0 0 calc(-50vw + 50%);
  border-top:1px solid var(--line);
}
.footer-container{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  padding:15px 20px;
  flex-wrap:wrap;
  max-width:1100px;
  margin:auto;
}
.footer-column{ min-width:180px; }
.footer h3{ color:var(--text); font-size:18px; margin-bottom:8px; }
.footer p{ color:var(--text-muted); font-size:14px; margin:4px 0; }
.footer-bottom{
  text-align:center;
  padding:8px;
  border-top:1px solid var(--line);
  font-size:12px;
  color:#7d73a3;
}

/* BUTTONS */
.btn{
  padding:12px 22px;
  border:1px solid transparent;
  border-radius:var(--radius-sm);
  cursor:pointer;
  font-weight:600;
  font-size:14px;
  transition:.2s;
}
.btn-primary{ background:var(--accent); color:#120a24; }
.btn-primary:hover{ background:#d6b0ff; box-shadow:0 0 18px var(--accent-glow); }
.btn-light{ background:var(--surface-2); color:var(--text); }
.btn-light:hover{ background:#262157; }
.btn-outline{ border-color:var(--line-strong); background:transparent; color:var(--text); }
.btn-outline:hover{ background:rgba(167,139,250,.1); }

/* UTILITIES */
.flex{ display:flex; gap:20px; flex-wrap:wrap; }
.center{ text-align:center; }
.space-between{ display:flex; justify-content:space-between; align-items:center; }
.hidden{ display:none; }

/* CARDS */
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:25px;
  box-shadow:0 20px 45px rgba(0,0,0,.45);
}

/* FORMS */
input, select, textarea{
  width:100%;
  padding:11px;
  border-radius:var(--radius-sm);
  border:1px solid var(--line-strong);
  background:rgba(255,255,255,.04);
  color:var(--text);
  margin-top:5px;
  font-family:inherit;
}
input::placeholder, textarea::placeholder{ color:#7d73a3; }
input:focus, select:focus, textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(199,148,255,.2);
}
select option{ background:var(--surface); color:var(--text); }

label{
  font-size:13px;
  font-weight:600;
  display:block;
  margin-top:15px;
  color:var(--text);
}

/* AUTH BUTTONS */
.auth-box button{
  cursor:pointer;
  background:var(--accent);
  color:#120a24;
  border:none;
  padding:12px;
  border-radius:var(--radius-sm);
  font-weight:600;
  transition:.2s ease;
  box-shadow:0 4px 14px rgba(199,148,255,.2);
}
.auth-box button:hover{ background:#d6b0ff; transform:translateY(-1px); box-shadow:0 6px 20px var(--accent-glow); }
.auth-box button:active{ transform:translateY(1px); box-shadow:0 2px 6px rgba(0,0,0,.4); }
.auth-box button:focus-visible{ outline:none; box-shadow:0 0 0 3px rgba(199,148,255,.4); }

/* POPUPS (booking + contact) */
#globalBookingPopup,
#globalContactPopup{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;
}
#globalContactPopup{ z-index:99999; }

.popup-overlay{
  background:rgba(4,3,18,.78);
  backdrop-filter:blur(4px);
  width:100%;
  height:100%;
  display:flex;
  justify-content:center;
  align-items:center;
}
#globalContactPopup .popup-overlay{ position:absolute; inset:0; }

.popup-content{
  background:var(--surface);
  border:1px solid var(--line);
  width:85%;
  max-width:1000px;
  border-radius:var(--radius);
  padding:15px;
  position:relative;
  box-shadow:0 20px 50px rgba(0,0,0,.6);
}
#globalContactPopup .popup-content{ max-width:600px; padding:20px; z-index:100000; }
.popup-content iframe{ width:100%; height:650px; border:none; border-radius:10px; }

.close-btn{
  position:absolute;
  top:10px;
  right:15px;
  border:none;
  background:none;
  color:var(--text-muted);
  font-size:20px;
  cursor:pointer;
  font-weight:600;
  transition:.2s;
}
.close-btn:hover{ color:var(--accent); opacity:1; }
#globalContactPopup .close-btn:hover{ transform:scale(1.2) rotate(90deg); }

/* CONTACT POPUP DETAILS */
.contact-content a{ color:var(--accent); font-weight:500; transition:.25s ease; }
.contact-content a:hover{ color:#e0c4ff; text-decoration:underline; transform:translateX(3px); }
.contact-content .btn-primary:hover{ transform:translateY(-2px); }

/* MODAL */
.modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(4,3,18,.75);
  justify-content:center;
  align-items:center;
  z-index:1000;
  padding:20px;
}
.modal-content{
  background:var(--surface);
  border:1px solid var(--line);
  color:var(--text);
  padding:30px;
  border-radius:var(--radius);
  max-width:500px;
  width:100%;
}

/* PROFILE DROPDOWN */
.profile-dropdown{ display:inline-block; position:relative; margin-left:10px; }
.profile-circle{
  width:36px;
  height:36px;
  border-radius:50%;
  background:var(--surface-2);
  border:1px solid var(--line-strong);
  color:var(--accent);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-weight:600;
  overflow:hidden;
}
.profile-circle img{ width:100%; height:100%; object-fit:cover; border-radius:50%; }
.profile-menu{
  position:absolute;
  right:0;
  top:45px;
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:0 10px 25px rgba(0,0,0,.5);
  border-radius:var(--radius-sm);
  min-width:140px;
  z-index:1000;
}
.profile-menu a{ display:block; padding:10px; color:var(--text-muted); }
.profile-menu a:hover{ background:var(--surface-2); color:var(--text); opacity:1; }

/* RESPONSIVE */
@media(max-width:900px){
  header{ flex-direction:column; gap:12px; text-align:center; }
  header nav{ flex-wrap:wrap; justify-content:center; gap:20px; }
  .section{ padding:50px 0; }
}
@media(max-width:768px){
  .popup-content{ width:95%; padding:10px; }
  .popup-content iframe{ height:600px; }
}
@media(max-width:600px){
  h1{ font-size:28px; }
  h2{ font-size:24px; }
  header{ padding:18px 20px; }
  .btn{ width:100%; text-align:center; }
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-link h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}