@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital,wght@0,400;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Brand Tokens & CSS Variables --- */
:root {
  --primary-navy: #081630;
  --accent-gold: #D4AF37;
  --soft-gold: #E4C766;
  --warm-stone: #ECEAE4;
  --warm-ivory: #F6F3EC;
  --white: #FFFFFF;
  --text-dark: #141414;
  --text-body: #3F4642;
  --text-muted: #6F756E;
  --border-thin: #DCD8CE;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --header-height: 80px;
}

/* --- Responsive CSS Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--warm-ivory);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.25;
}

.serif-title {
  font-family: var(--font-serif);
  font-weight: 400;
}

h1 {
  font-size: 2.875rem; /* 46px */
}

h2 {
  font-size: 2.25rem; /* 36px */
}

h3 {
  font-size: 1.75rem; /* 28px */
}

h4 {
  font-size: 1.375rem; /* 22px */
}

h5 {
  font-size: 1.125rem; /* 18px */
}

p {
  margin-bottom: 1rem;
}

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

ul {
  list-style: none;
}

/* --- Layout Elements & Grid Helpers --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-dark {
  background-color: var(--primary-navy);
  color: var(--white);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5, .section-dark h6 {
  color: var(--white);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

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

/* --- Interactive Components (Buttons) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--primary-navy);
}

.btn-primary:hover {
  background-color: var(--primary-navy);
  color: var(--warm-ivory);
  border-color: var(--accent-gold);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}

.btn-outline:hover {
  background-color: var(--accent-gold);
  color: var(--primary-navy);
}

.btn-dark {
  background-color: var(--primary-navy);
  color: var(--white);
  border: 1px solid var(--border-thin);
}

.btn-dark:hover {
  background-color: var(--accent-gold);
  color: var(--primary-navy);
  border-color: var(--accent-gold);
}

/* --- Header & Navigation --- */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(8, 22, 48, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(220, 216, 206, 0.1);
  color: var(--white);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links > li {
  position: relative;
}

.nav-item {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0;
}

.nav-item:hover, .nav-item.active {
  color: var(--accent-gold);
}

/* Dropdown Menu styling */
.nav-links li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--primary-navy);
  border: 1px solid rgba(220, 216, 206, 0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  padding: 1rem 0;
  border-radius: 4px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--accent-gold);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--white);
  margin-bottom: 5px;
  transition: var(--transition-smooth);
}

.mobile-toggle span:last-child {
  margin-bottom: 0;
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background-color: var(--primary-navy);
  border-left: 1px solid rgba(220, 216, 206, 0.1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  padding: 2rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-drawer .drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 2rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mobile-nav-links a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--white);
}

.mobile-nav-links a:hover {
  color: var(--accent-gold);
}

.mobile-nav-drawer .sub-links {
  padding-left: 1rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-left: 1px solid rgba(220, 216, 206, 0.15);
}

.mobile-nav-drawer .sub-links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  z-index: 1050;
  transition: var(--transition-smooth);
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- Footer --- */
footer {
  background-color: var(--primary-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(220, 216, 206, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .logo-footer img {
  height: 40px;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  max-width: 320px;
}

.footer-col h6 {
  color: var(--accent-gold);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-col a:hover {
  color: var(--accent-gold);
}

.footer-col p {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(220, 216, 206, 0.1);
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a:hover {
  color: var(--accent-gold);
}

/* --- Form Fields & Contacts --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  background-color: var(--white);
  border: 1px solid var(--border-thin);
  border-radius: 4px;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

.static-form-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  background-color: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--accent-gold);
  color: var(--primary-navy);
}

/* --- Card Styles (Practices, Team, Details) --- */
.card {
  background-color: var(--white);
  border: 1px solid var(--border-thin);
  border-radius: 4px;
  padding: 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  border-color: var(--accent-gold);
}

.card-icon {
  margin-bottom: 1.5rem;
  color: var(--accent-gold);
}

.card-icon svg {
  width: 42px;
  height: 42px;
}

.card h3 {
  margin-bottom: 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--accent-gold);
  font-weight: 500;
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: var(--transition-smooth);
}

.card:hover .card-link svg {
  transform: translateX(5px);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .section {
    padding: 3.5rem 0;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .nav-links, .nav-action-btn {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}