/*
Theme Name: hemalily
Author: Masteralb
Author URI: https://masteralb.com
Description: Hemalily child theme for Astra
Version: 2.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hemalily
Template: astra
*/

/* Custom Header */
:root {
  --hml-deep-teal: #0D5C63;
  --hml-copper: #B87333;
  --hml-copper-70: rgba(184, 115, 51, 0.7);
  --hml-copper-60: rgba(184, 115, 51, 0.6);
}

/* Hide Astra default header */
.ast-above-header-wrap,
.ast-below-header-wrap,
.ast-main-header-wrap,
#ast-desktop-header,
#ast-mobile-header,
.ast-mobile-header-wrap,
header.site-header,
.site-header {
  display: none !important;
}

/* Nav bar */
.hemalily-nav {
  position: fixed !important;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 9999;
  display: flex !important;
  justify-content: center;
  max-width: 1152px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  background: transparent;
  box-sizing: border-box;
}

.hemalily-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.7) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: rgba(229, 231, 235, 0.5);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
}

.hemalily-nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo */
a.hemalily-logo,
a.hemalily-logo:visited,
a.hemalily-logo:hover {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
}

.hemalily-logo-name {
  font-family: "Cormorant Garamond", serif !important;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
  color: #111827 !important;
}

.hemalily-logo-sub {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hemalily-logo-line {
  display: inline-block;
  width: 12px;
  height: 1px;
  background: linear-gradient(to right, var(--hml-copper-60), transparent);
  transition: width 0.3s ease;
}

a.hemalily-logo:hover .hemalily-logo-line {
  width: 20px;
}

.hemalily-logo-title {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hml-copper-70);
  transition: color 0.3s ease;
}

a.hemalily-logo:hover .hemalily-logo-title {
  color: var(--hml-copper);
}

/* Desktop nav */
nav.hemalily-desktop-nav {
  display: none;
  align-items: center;
  gap: 32px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

nav.hemalily-desktop-nav a,
nav.hemalily-desktop-nav a:visited {
  font-size: 14px;
  font-weight: 500;
  color: #4B5563 !important;
  text-decoration: none !important;
  padding: 4px 8px;
  position: relative;
  transition: color 0.2s ease;
}

nav.hemalily-desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--hml-deep-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

nav.hemalily-desktop-nav a:hover {
  color: #111827 !important;
}

nav.hemalily-desktop-nav a:hover::after {
  transform: scaleX(1);
}

nav.hemalily-desktop-nav a.hemalily-nav-active {
  color: var(--hml-deep-teal) !important;
}

nav.hemalily-desktop-nav a.hemalily-nav-active::after {
  transform: scaleX(1);
}

/* CTA button */
a.hemalily-cta,
a.hemalily-cta:visited {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff !important;
  background: var(--hml-deep-teal) !important;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

a.hemalily-cta:hover {
  background: #0a4a50 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(13, 92, 99, 0.3);
}

/* Hamburger */
button.hemalily-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #111827;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

button.hemalily-hamburger:hover {
  background: #f3f4f6;
}

button.hemalily-hamburger .hemalily-hamburger-close {
  display: none;
}

button.hemalily-hamburger[aria-expanded="true"] .hemalily-hamburger-open {
  display: none;
}

button.hemalily-hamburger[aria-expanded="true"] .hemalily-hamburger-close {
  display: block;
}

/* Mobile overlay */
#hemalily-mobile-overlay {
  position: fixed !important;
  inset: 0;
  z-index: 9998;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#hemalily-mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

nav.hemalily-mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

nav.hemalily-mobile-nav a,
nav.hemalily-mobile-nav a:visited {
  font-family: "Cormorant Garamond", serif !important;
  font-size: 2.25rem;
  color: #111827 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

nav.hemalily-mobile-nav a:hover,
nav.hemalily-mobile-nav a.hemalily-nav-active {
  color: var(--hml-deep-teal) !important;
}

nav.hemalily-mobile-nav a.hemalily-cta {
  font-family: inherit !important;
  font-size: 1.125rem;
  margin-top: 16px;
}

/* Responsive */
.hemalily-desktop-only {
  display: none !important;
}

.hemalily-mobile-only {
  display: flex !important;
}

@media (min-width: 640px) {
  nav.hemalily-desktop-nav {
    display: flex !important;
  }
  .hemalily-desktop-only {
    display: inline-flex !important;
  }
  .hemalily-mobile-only {
    display: none !important;
  }
  #hemalily-mobile-overlay {
    display: none !important;
  }
}

/* Top padding for fixed header */
body {
  padding-top: 80px !important;
}

/* Fix content container padding */
#content.site-content {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
  box-sizing: border-box !important;
}

/* Footer */
.site-footer,
.ast-footer-overlay,
.ast-small-footer {
  display: none !important;
}

.hemalily-footer {
  border-top: 1px solid #e5e7eb;
  padding: 24px 40px;
  text-align: center;
  background: #fff;
}

.hemalily-footer p {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

.hemalily-footer a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hemalily-footer a:hover {
  color: #111827;
}
