/* ===================================
   CSS Variables & Custom Properties
   =================================== */
:root {
  /* Color Palette */
  --color-primary: #0B1C33;
  --color-secondary: #C5A059;
  --color-secondary-light: #E5CD95;
  --color-text-dark: #1a1a1a;
  --color-text-light: #f5f5f5;
  --color-bg-light: #ffffff;
  --color-bg-offwhite: #f9f9f9;
  --color-bg-dark: #0B1C33;
  
  /* Typography */
  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===================================
   Base Reset & Typography
   =================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  line-height: 1.6;
  background-color: var(--color-bg-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

a:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

ul {
  list-style: none;
}

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

/* ===================================
   Layout Utilities
   =================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-lg) 0;
}

/* ===================================
   Utility Classes
   =================================== */
.text-gold { color: var(--color-secondary); }
.text-navy { color: var(--color-primary); }
.bg-navy {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}
.bg-offwhite { background-color: var(--color-bg-offwhite); }

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid transparent;
  border-radius: 2px;
  transition: all var(--transition-base);
  cursor: pointer;
  font-size: 0.9rem;
  text-align: center;
  font-family: var(--font-body);
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-secondary);
}

.btn-primary:hover {
  background-color: var(--color-secondary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ===================================
   Animation Utilities
   =================================== */
.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   Header Styles
   =================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(11, 28, 51, 0.95);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 60px;
  transition: height var(--transition-base);
  width: auto;
}

.main-header.scrolled .logo-img {
  height: 50px;
}

/* Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-list {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-light);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.main-header.scrolled .nav-link {
  color: var(--color-text-dark);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-secondary);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1001;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 3px 0;
  transition: all var(--transition-base);
  background-color: var(--color-text-light);
  border-radius: 2px;
}

.main-header.scrolled .bar {
  background-color: var(--color-text-dark);
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ===================================
   Footer Styles
   =================================== */
.main-footer {
  padding: 4rem 0 2rem;
  color: var(--color-text-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  height: 80px;
  margin-bottom: 1rem;
  width: auto;
}

.footer-col h4 {
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  transition: all var(--transition-base);
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--color-secondary);
  padding-left: 5px;
}

.footer-col p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ===================================
   Page Header
   =================================== */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a5c 100%);
  color: white;
  padding: 8rem 0 4rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 Q300,60 600,40 T1200,20 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.05)"/></svg>') no-repeat bottom;
  background-size: cover;
}

.page-header h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.page-header p {
  position: relative;
  z-index: 1;
}

/* ===================================
   Forms
   =================================== */
.contact-form {
  background: white;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-primary);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-base);
  background-color: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* ===================================
   Card Grids
   =================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Blog Cards */
.blog-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.blog-img {
  height: 200px;
  background-color: #eee;
  object-fit: cover;
  width: 100%;
}

.blog-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-weight: 700;
  flex-grow: 1;
}

/* Practice Detail */
.practice-detail {
  border-left: 4px solid var(--color-secondary);
  padding-left: 2rem;
  margin-bottom: 3rem;
  transition: all var(--transition-base);
}

.practice-detail:hover {
  border-left-width: 6px;
  padding-left: 2.5rem;
}

.practice-detail h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.practice-detail ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.practice-detail ul li {
  margin-bottom: 0.5rem;
  color: var(--color-text-dark);
}

/* ===================================
   Notification System
   =================================== */
.custom-notification {
  position: fixed;
  top: 100px;
  right: 20px;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  transform: translateX(400px);
  transition: transform var(--transition-base);
  max-width: 400px;
  border-left: 4px solid var(--color-secondary);
}

.custom-notification.show {
  transform: translateX(0);
}

.custom-notification-success {
  border-left-color: #4caf50;
}

.custom-notification-error {
  border-left-color: #f44336;
}

.custom-notification-info {
  border-left-color: #2196f3;
}

/* ===================================
   Loading Overlay
   =================================== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity var(--transition-base);
}

.loading-overlay.fade-out {
  opacity: 0;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--color-secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 992px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  
  .section {
    padding: 3rem 0;
  }
  
  .page-header {
    padding: 6rem 0 3rem;
  }
}

@media (max-width: 768px) {
  /* Typography */
  html {
    font-size: 14px;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  /* Header & Navigation */
  .hamburger {
    display: flex;
  }
  
  .nav-list {
    position: fixed;
    left: -100%;
    top: 75px;
    gap: 0;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    width: 100%;
    text-align: center;
    transition: left var(--transition-base);
    box-shadow: var(--shadow-lg);
    padding: 2rem 0;
    max-height: calc(100vh - 75px);
    overflow-y: auto;
  }
  
  .nav-list.active {
    left: 0;
  }
  
  .nav-item {
    margin: 1rem 0;
    width: 100%;
  }
  
  .nav-link {
    color: var(--color-text-dark);
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
  }
  
  .nav-link::after {
    display: none;
  }
  
  /* Cards & Grids */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Forms */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Notifications */
  .custom-notification {
    right: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
  
  .page-header {
    padding: 5rem 0 2rem;
  }
  
  .page-header h1 {
    font-size: 1.75rem;
  }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
  .main-header,
  .main-footer,
  .hamburger,
  .btn {
    display: none;
  }
  
  body {
    color: black;
    background: white;
  }
  
  a {
    text-decoration: underline;
  }
}
