/*
 Theme Name:   VellyWay Brand Hub
 Theme URI:    https://vellyway.com
 Description:  Premium brand-house theme for VellyWay — a lifestyle, travel, and creative brand hub. Built as a native WordPress Block Theme (FSE).
 Author:       VellyWay
 Author URI:   https://vellyway.com
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  vellyway
 Tags:         brand-hub, lifestyle, travel, portfolio, full-site-editing, block-theme
*/

/* ==========================================================================
   IMPORTS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');
@import url('./assets/css/design-tokens.css');
@import url('./assets/css/components.css');

/* ==========================================================================
   BASE RESETS & TYPOGRAPHY
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--vw-font-body);
  color: var(--vw-charcoal);
  background-color: var(--vw-white);
  line-height: var(--vw-leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--vw-font-heading);
  font-weight: 700;
  line-height: var(--vw-leading-tight);
  color: var(--vw-charcoal);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }

a {
  color: var(--vw-teal);
  text-decoration: none;
  transition: color var(--vw-transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--vw-terracotta);
}

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

/* ==========================================================================
   SKIP LINK (Accessibility)
   ========================================================================== */

.vw-skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--vw-teal);
  color: #fff;
  border-radius: var(--vw-radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s ease;
}

.vw-skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--vw-terracotta);
  outline-offset: 2px;
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */

.vw-topbar {
  font-size: 0.8rem;
  background: var(--vw-gray-50);
  padding: 0.35rem 1rem;
  border-bottom: 1px solid var(--vw-gray-100);
}

.vw-topbar-inner {
  max-width: var(--vw-container-xl);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vw-small-link {
  color: var(--vw-gray-500);
  text-decoration: none;
  padding: 0.15rem 0.5rem;
  transition: color var(--vw-transition-fast);
  font-weight: 500;
}

.vw-small-link:hover,
.vw-small-link:focus-visible {
  color: var(--vw-teal);
}

/* ==========================================================================
   MAIN NAVIGATION
   ========================================================================== */

.vw-mainnav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  max-width: var(--vw-container-xl);
  margin: 0 auto;
  position: relative;
}

/* Logo */
.vw-logo {
  font-family: var(--vw-font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--vw-charcoal);
  letter-spacing: -0.02em;
  transition: color var(--vw-transition-fast);
}

.vw-logo:hover {
  color: var(--vw-teal);
}

/* Primary CTAs — Read / Watch / Shop */
.vw-primary-ctas {
  display: flex;
  gap: 0.35rem;
  margin-left: 1.5rem;
}

.vw-cta {
  padding: 0.55rem 1rem;
  border-radius: var(--vw-radius-md);
  text-decoration: none;
  color: var(--vw-charcoal);
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  transition: all var(--vw-transition-fast);
  position: relative;
}

.vw-cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--vw-teal);
  transition: all var(--vw-transition-base);
  transform: translateX(-50%);
}

.vw-cta:hover,
.vw-cta:focus-visible {
  background: var(--vw-gray-50);
  color: var(--vw-teal);
  outline: none;
}

.vw-cta:hover::after,
.vw-cta:focus-visible::after {
  width: 60%;
}

.vw-cta.is-active {
  color: var(--vw-teal);
  background: rgba(15, 60, 76, 0.06);
}

.vw-cta.is-active::after {
  width: 60%;
}

/* Brand quick links */
.vw-brand-links {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.vw-brand-link {
  font-size: 0.85rem;
  color: var(--vw-gray-500);
  text-decoration: none;
  padding: 0.3rem 0.55rem;
  border-radius: var(--vw-radius-sm);
  font-weight: 500;
  transition: all var(--vw-transition-fast);
}

.vw-brand-link:hover,
.vw-brand-link:focus-visible {
  color: var(--vw-teal);
  background: var(--vw-gray-50);
}

.vw-brand-link.is-active {
  color: var(--vw-teal);
  background: rgba(15, 60, 76, 0.06);
}

/* Actions (search + CTA button) */
.vw-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: 1rem;
}

.vw-search-toggle {
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: var(--vw-radius-sm);
  color: var(--vw-gray-500);
  font-size: 1.1rem;
  transition: all var(--vw-transition-fast);
}

.vw-search-toggle:hover,
.vw-search-toggle:focus-visible {
  background: var(--vw-gray-50);
  color: var(--vw-teal);
}

.vw-primary-btn {
  background: var(--vw-teal);
  color: #fff;
  padding: 0.55rem 1.15rem;
  border-radius: var(--vw-radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--vw-transition-base);
  border: 2px solid var(--vw-teal);
}

.vw-primary-btn:hover,
.vw-primary-btn:focus-visible {
  background: #0a2e3a;
  border-color: #0a2e3a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--vw-shadow-md);
}

/* Hamburger */
.vw-hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1001;
}

.vw-hamburger-icon,
.vw-hamburger-icon::before,
.vw-hamburger-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--vw-charcoal);
  border-radius: 2px;
  transition: all var(--vw-transition-base);
  position: relative;
  margin: 0 auto;
}

.vw-hamburger-icon::before,
.vw-hamburger-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
}

.vw-hamburger-icon::before { top: -7px; }
.vw-hamburger-icon::after  { top: 7px; }

/* Hamburger open state */
.vw-hamburger[aria-expanded="true"] .vw-hamburger-icon {
  background: transparent;
}
.vw-hamburger[aria-expanded="true"] .vw-hamburger-icon::before {
  top: 0;
  transform: rotate(45deg);
}
.vw-hamburger[aria-expanded="true"] .vw-hamburger-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ==========================================================================
   STICKY HEADER
   ========================================================================== */

.vw-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--vw-transition-base);
}

.vw-header.is-scrolled {
  box-shadow: var(--vw-shadow-sm);
}

.vw-header.is-scrolled .vw-topbar {
  display: none;
}

.vw-header.is-scrolled .vw-mainnav {
  padding: 0.55rem 1rem;
}

/* ==========================================================================
   MOBILE DRAWER
   ========================================================================== */

.vw-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--vw-transition-base);
}

.vw-drawer[aria-hidden="false"] {
  display: flex;
  flex-direction: column;
  opacity: 1;
}

.vw-drawer-content {
  background: var(--vw-white);
  margin-top: 60px;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 60px);
  animation: vw-slide-down 0.3s ease;
}

@keyframes vw-slide-down {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.vw-drawer-primary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--vw-gray-100);
}

.vw-drawer-cta {
  display: block;
  padding: 1rem 1.25rem;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--vw-font-heading);
  color: var(--vw-charcoal);
  text-decoration: none;
  border-radius: var(--vw-radius-md);
  transition: all var(--vw-transition-fast);
  min-height: 44px;
}

.vw-drawer-cta:hover,
.vw-drawer-cta:focus-visible {
  background: var(--vw-gray-50);
  color: var(--vw-teal);
}

.vw-drawer-brands {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.vw-drawer-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--vw-gray-400);
  padding: 0.5rem 1.25rem;
}

.vw-drawer-link {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  color: var(--vw-gray-600);
  text-decoration: none;
  border-radius: var(--vw-radius-sm);
  transition: all var(--vw-transition-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.vw-drawer-link:hover,
.vw-drawer-link:focus-visible {
  background: var(--vw-gray-50);
  color: var(--vw-teal);
}

.vw-drawer-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--vw-gray-100);
}

.vw-drawer-actions .vw-primary-btn {
  display: block;
  text-align: center;
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 980px) {
  .vw-primary-ctas { display: none; }
  .vw-brand-links  { display: none; }
  .vw-hamburger    { display: flex; align-items: center; justify-content: center; }

  .vw-mainnav {
    justify-content: space-between;
  }

  .vw-actions .vw-primary-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .vw-topbar-inner {
    flex-direction: column;
    gap: 0.25rem;
  }
}
