/* ==========================================================================
   Aha Lawyer HTML - Lawyer Template
   CORE CSS - Base styles used across all pages
   ========================================================================== */

/* ==========================================================================
   BASE STYLES & VARIABLES
   ========================================================================== */

:root {
  /* ===== BRAND COLORS (RGB values for opacity variations) ===== */
  --color-primary-rgb: 26, 43, 60;           /* #1a2b3c - Dark Blue */
  --color-primary: #1a2b3c;
  --color-primary-light: #2d3e52;            /* Lighter shade */
  --color-primary-dark: #0f1820;             /* Darker shade */
  
  --color-secondary-rgb: 249, 248, 243;      /* #F9F8F3 - Cream/Beige */
  --color-secondary: #F9F8F3;
  --color-secondary-dark: #e8e5da;           /* Darker shade */
  
  /* ===== BACKGROUND COLORS ===== */
  --color-bg-light: #F9F8F3;
  --color-bg-light-alt: #e4e4e4;
  --color-bg-dark: #15191d;
  --color-white: #ffffff;
  
  /* ===== PRIMARY COLOR OPACITY SCALE ===== */
  /* Used for: text, borders, shadows, overlays */
  --color-primary-3: rgba(26, 43, 60, 0.03);
  --color-primary-5: rgba(26, 43, 60, 0.05);
  --color-primary-8: rgba(26, 43, 60, 0.08);
  --color-primary-10: rgba(26, 43, 60, 0.1);
  --color-primary-12: rgba(26, 43, 60, 0.12);
  --color-primary-15: rgba(26, 43, 60, 0.15);
  --color-primary-20: rgba(26, 43, 60, 0.2);
  --color-primary-30: rgba(26, 43, 60, 0.3);
  --color-primary-40: rgba(26, 43, 60, 0.4);
  --color-primary-50: rgba(26, 43, 60, 0.5);
  --color-primary-60: rgba(26, 43, 60, 0.6);
  --color-primary-70: rgba(26, 43, 60, 0.7);
  --color-primary-80: rgba(26, 43, 60, 0.8);
  --color-primary-90: rgba(26, 43, 60, 0.9);
  
  /* ===== SECONDARY COLOR OPACITY SCALE ===== */
  /* Used for: light backgrounds, overlays */
  --color-secondary-10: rgba(249, 248, 243, 0.1);
  --color-secondary-20: rgba(249, 248, 243, 0.2);
  --color-secondary-30: rgba(249, 248, 243, 0.3);
  --color-secondary-40: rgba(249, 248, 243, 0.4);
  --color-secondary-50: rgba(249, 248, 243, 0.5);
  --color-secondary-60: rgba(249, 248, 243, 0.6);
  --color-secondary-70: rgba(249, 248, 243, 0.7);
  --color-secondary-80: rgba(249, 248, 243, 0.8);
  --color-secondary-90: rgba(249, 248, 243, 0.9);
  
  /* ===== WHITE COLOR OPACITY SCALE ===== */
  /* Used for: overlays on dark backgrounds */
  --color-white-10: rgba(255, 255, 255, 0.1);
  --color-white-20: rgba(255, 255, 255, 0.2);
  --color-white-30: rgba(255, 255, 255, 0.3);
  --color-white-40: rgba(255, 255, 255, 0.4);
  --color-white-50: rgba(255, 255, 255, 0.5);
  --color-white-70: rgba(255, 255, 255, 0.7);
  --color-white-80: rgba(255, 255, 255, 0.8);
  --color-white-90: rgba(255, 255, 255, 0.9);
  
  /* ===== BLACK COLOR OPACITY SCALE ===== */
  /* Used for: shadows and dark overlays */
  --color-black-10: rgba(0, 0, 0, 0.1);
  --color-black-15: rgba(0, 0, 0, 0.15);
  --color-black-20: rgba(0, 0, 0, 0.2);
  --color-black-25: rgba(0, 0, 0, 0.25);
  
  /* ===== SEMANTIC COLORS ===== */
  --color-text-light: rgba(26, 43, 60, 0.6);
  --color-border: #c9c9c9;
  --color-border-light: #e5e5e5;
  
  /* ===== SOCIAL MEDIA COLORS ===== */
  --color-linkedin: #0077B5;
  --color-twitter: #000000;
  --color-facebook: #1877F2;
  --color-whatsapp: #25D366;
  
  /* ===== CODE/CONTENT COLORS ===== */
  --color-code-bg: #fffefa;
  
  /* ===== FONTS ===== */
  --font-display: 'Manrope', sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  /* ===== SPACING ===== */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  
  /* ===== BORDER RADIUS ===== */
  --border-radius: 0.25rem;
  --border-radius-lg: 0.5rem;
  --border-radius-xl: 0.75rem;
  --border-radius-full: 9999px;
  
  /* ===== TRANSITIONS ===== */
  --transition: all 0.3s ease;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-display);
  color: var(--color-primary);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  min-height: max(884px, 100dvh);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

/* Container */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 56rem;
}

/* Section Title (reusable) */
.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3.75rem;
  }
}

/* Label (reusable) */
.label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 700;
  color: var(--color-primary-40);
  display: block;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--color-secondary-80);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-primary-5);
  padding: 1rem 1.5rem;
}

.nav__container {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.nav__menu {
  display: none;
  gap: 2rem;
  list-style: none;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.nav__link:hover {
  opacity: 0.6;
}

.nav__link--active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav__mobile-toggle {
  display: block;
  font-size: 1.5rem;
}

.nav__mobile-menu {
  display: none;
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-primary-5);
  padding: 1.5rem;
}

.nav__mobile-menu--active {
  display: block;
}

.nav__mobile-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav__mobile-link {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition);
}

.nav__mobile-link:hover {
  opacity: 0.6;
}

/* Dropdown Menu */
.nav__item-dropdown {
  position: relative;
}

.nav__submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg-light);
  border: 1px solid var(--color-primary-5);
  border-radius: var(--border-radius-lg);
  list-style: none;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(26, 43, 60, 0.1);
}

.nav__item-dropdown:hover .nav__submenu {
  display: flex;
  flex-direction: column;
}

.nav__submenu li {
  padding: 0;
}

.nav__submenu .nav__link {
  display: block;
  padding: 0.75rem 1.25rem;
  white-space: nowrap;
}

.nav__submenu .nav__link:hover {
  background: var(--color-primary-5);
}

/* Mobile Dropdown */
.nav__mobile-dropdown {
  position: relative;
}

.nav__mobile-toggle-submenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition);
}

.nav__mobile-toggle-submenu:hover {
  opacity: 0.6;
}

.nav__mobile-toggle-submenu .material-symbols-outlined {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.nav__mobile-dropdown.is-open .nav__mobile-toggle-submenu .material-symbols-outlined {
  transform: rotate(180deg);
}

.nav__mobile-submenu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  margin-top: 0.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--color-primary-10);
}

.nav__mobile-dropdown.is-open .nav__mobile-submenu {
  display: flex;
}

.nav__mobile-submenu .nav__mobile-link {
  padding: 0.5rem 0;
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .nav__menu {
    display: flex;
  }
  
  .nav__mobile-toggle {
    display: none;
  }
}

/* ==========================================================================
   BUTTON COMPONENT
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-full);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition);
  text-align: center;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-bg-light);
}

.btn--primary:hover {
  background-color: var(--color-primary-90);
}

.btn--outline {
  border: 1px solid var(--color-primary-20);
  color: var(--color-primary);
}

.btn--outline:hover {
  background-color: var(--color-primary-5);
}

.btn--outline-light {
  border: 1px solid var(--color-secondary-20);
  color: var(--color-bg-light);
}

.btn--outline-light:hover {
  background-color: var(--color-bg-light);
  color: var(--color-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background-color: var(--color-bg-light);
  padding: 6rem 1.5rem;
  border-top: 1px solid var(--color-primary-5);
}

.footer__main {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-bottom: 6rem;
}

.footer__cta-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.25;
}

.footer__cta-title-highlight {
  font-style: italic;
}

.footer__cta-description {
  font-size: 1.25rem;
  color: var(--color-primary-60);
  margin-bottom: 2.5rem;
  max-width: 28rem;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--color-primary-20);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer__social-link:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-light);
}

.footer__social-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer__contact-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 600;
  color: var(--color-primary-70);
  display: block;
  margin-bottom: 1rem;
}

.footer__contact-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  transition: var(--transition);
}

.footer__contact-value:hover {
  opacity: 0.6;
}

.footer__bottom {
  max-width: 72rem;
  margin: 0 auto;
  padding-top: 3rem;
  border-top: 1px solid var(--color-primary-10);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__copyright {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: rgba(26, 43, 60, 0.7);
}

.footer__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer__link {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: rgba(26, 43, 60, 0.7);
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .footer__main {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer__cta-title {
    font-size: 3.75rem;
    font-weight: 400;
  }
  
  .footer__contact-value {
    font-size: 1.875rem;
    font-weight: 400;
  }
  
  .footer__bottom {
    flex-direction: row;
  }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.hidden {
  display: none;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Image Filters */
.img-grayscale {
  filter: grayscale(100%);
  transition: filter 0.7s ease;
}

.img-grayscale:hover {
  filter: grayscale(0%);
}
