/*
Theme Name: Blueberry Law
Description: Legal Architecture Theme for Blueberry Law
Version: 1.0
Author: Blueberry Law
*/

/* ============================================
   Blueberry Law
   ============================================ */

/* --- CSS VARIABLES --- */
:root {
  --brand-purple: #5D2A8B;
  --brand-amber: #FFC107;
  --canvas-white: #FFFFFF;
  --canvas-grey: #F4F4F4;
  --ink: #111111;
  
  --font-head: 'Archivo Black', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

/* --- RESET & BASE STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--canvas-white);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
  cursor: pointer;
}

ul {
  list-style: none;
}

/* --- NAVIGATION --- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 30px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
}

.logo {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.2rem;
  color: var(--brand-purple);
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a,
.dropdown-toggle {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-amber);
  transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* --- DROPDOWN MENU --- */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  flex-direction: row-reverse;
}

.dropdown-toggle::before {
  content: '▼';
  font-size: 0.6rem;
  margin-left: 6px;
  transition: transform 0.3s;
  position: relative;
  display: inline-block;
}

.dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-amber);
  transition: 0.3s;
}

.dropdown-toggle:hover::after {
  width: 100%;
}

.dropdown.open .dropdown-toggle::before {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  display: none;
  flex-direction: column;
  min-width: 200px;
  background: var(--canvas-white);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 0;
  z-index: 1200;
}

.dropdown-menu a {
  padding: 10px 18px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  position: relative;
}

.dropdown-menu a:hover {
  background: var(--canvas-grey);
  color: var(--brand-purple);
}

.dropdown-menu a.active {
  background: var(--canvas-grey);
  color: var(--brand-purple);
}

.dropdown-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 18px;
  width: calc(100% - 36px);
  height: 2px;
  background: var(--brand-amber);
}

.dropdown.open .dropdown-menu {
  display: flex;
}

/* --- MOBILE MENU TOGGLE --- */
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: var(--canvas-white);
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #111111;
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- MOBILE NAVIGATION --- */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--canvas-white);
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.1);
  padding: 120px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: right 0.35s ease;
  z-index: 1400;
  overflow: auto;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav a {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 0;
  position: relative;
}

.mobile-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-amber);
}

/* --- MOBILE CLOSE BUTTON --- */
.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: var(--canvas-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.mobile-close span {
  position: absolute;
  width: 60%;
  height: 2px;
  background: #111111;
  transform-origin: center;
}

.mobile-close span:first-child {
  transform: rotate(45deg);
}

.mobile-close span:last-child {
  transform: rotate(-45deg);
}

/* --- NAVIGATION OVERLAY --- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 1300;
}

.nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* --- TYPOGRAPHY --- */
h1 {
  font-family: var(--font-head);
  font-size: 4.5rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--brand-purple);
  margin-bottom: 20px;
}

h2 {
  font-family: var(--font-head);
  font-size: 4rem;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 30px;
}

/* --- PAGE HEADER --- */
.page-header {
  padding: 150px 10vw 80px;
  background: var(--canvas-white);
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-text {
  max-width: 600px;
  font-size: 1.2rem;
  color: #555;
}

/* --- BUTTONS --- */
.btn-minimal {
  display: inline-block;
  padding: 15px 0;
  border-bottom: 3px solid var(--brand-amber);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.btn-minimal:hover {
  padding-left: 20px;
  color: var(--brand-purple);
  border-color: var(--brand-purple);
}

/* --- FOOTER --- */
footer {
  background: var(--ink);
  color: var(--canvas-white);
  padding: 100px 10vw 40px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 100px;
}

.footer-main h2 {
  color: var(--canvas-white);
  font-size: 3rem;
  margin-bottom: 20px;
  font-family: var(--font-head);
  text-transform: uppercase;
}

.footer-info p {
  color: #888;
  margin-bottom: 5px;
}

.footer-email {
  color: var(--brand-amber);
  font-size: 1.5rem;
  font-family: var(--font-head);
  margin-top: 20px;
  display: block;
}

.footer-legal {
  border-top: 1px solid #333;
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  margin-top: 60px;
}

.legal-links {
  display: flex;
  gap: 30px;
}

.legal-links a:hover {
  color: var(--brand-amber);
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: inline-flex;
  }
  
  nav {
    padding: 30px 30px !important;
  }
  
  h1 {
    font-size: 2rem !important;
  }
  
  h2 {
    font-size: 1.6rem !important;
  }
  
  .page-header {
    padding-top: 120px;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 20px;
  }
  
  .legal-links {
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 15px 30px;
  }
  .footer-email {
    font-size: 1.4rem;
  }
}