/* =============================================
   Heritage Harbor Law — Global Stylesheet
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --navy:       #1a2b4a;
  --navy-dark:  #0f1c32;
  --navy-mid:   #1e3a5f;
  --gold:       #c9a84c;
  --gold-light: #e0c068;
  --gold-dark:  #a8872e;
  --cream:      #f9f7f2;
  --light-bg:   #f2f4f7;
  --text-dark:  #1a2b4a;
  --text-mid:   #3d4e66;
  --text-light: #6b7a92;
  --white:      #ffffff;
  --border:     #dde2ea;
  --shadow-sm:  0 2px 8px rgba(26, 43, 74, 0.08);
  --shadow-md:  0 6px 24px rgba(26, 43, 74, 0.12);
  --shadow-lg:  0 16px 48px rgba(26, 43, 74, 0.16);
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --transition: 0.25s ease;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Inter', system-ui, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::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(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p  { color: var(--text-mid); line-height: 1.75; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}

/* ---------- Layout Helpers ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.text-white  { color: var(--white) !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,168,76,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.82rem; }

/* ---------- Navbar ---------- */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  text-decoration: none;
}

/* Sail icon container */
.logo-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 52px; height: 52px; }

/* Vertical divider bar between icon and wordmark */
.logo-divider {
  width: 1px;
  height: 36px;
  background: transparent;
  border-left: 1.5px solid #d0d5de;
  margin: 0 14px;
  flex-shrink: 0;
}

/* Wordmark container */
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}

/* "HERITAGE HARBOR" — navy, bold sans-serif, tight tracking */
.logo-name {
  font-family: var(--font-body);
  font-size: 1.0rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
}

/* "LAW" — gold, same weight */
.logo-law {
  font-family: var(--font-body);
  font-size: 1.0rem;
  font-weight: 800;
  color: #b8972a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
}

/* Legacy: hide old tagline if ever rendered */
.logo-sub { display: none; }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a svg { width: 14px; height: 14px; transition: transform var(--transition); }
.nav-dropdown:hover > a svg { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  transform: translateX(-50%) translateY(-8px);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 0.875rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}
.dropdown-menu a:hover { background: var(--light-bg); color: var(--navy); }

.nav-cta { margin-left: 1rem; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 0.7rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a.active { color: var(--navy); font-weight: 600; }
.nav-mobile .btn { margin-top: 0.75rem; align-self: flex-start; }

/* ---------- Page Header Banner ---------- */
.page-header {
  background: var(--navy);
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='800' height='200' viewBox='0 0 800 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 80 Q200 20 400 80 Q600 140 800 80 L800 200 L0 200 Z' fill='rgba(201,168,76,0.06)'/%3E%3C/svg%3E") bottom / cover no-repeat;
}

.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-header p  { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 600px; }
.page-header.centered { text-align: center; }
.page-header.centered p { margin: 0 auto; }

/* Divider under header */
.wave-divider {
  height: 6px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--gold);
}

/* ---------- Section Divider ---------- */
.divider-gold {
  width: 56px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
  margin: 1rem 0 1.5rem;
}
.divider-gold.center { margin: 1rem auto 1.5rem; }

/* ---------- Tag / Badge ---------- */
.badge {
  display: inline-block;
  padding: 0.3rem 0.875rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.badge-gold  { background: rgba(201,168,76,0.15); color: var(--gold-dark); }
.badge-navy  { background: rgba(26,43,74,0.08); color: var(--navy); }

/* ---------- Consultation Banner ---------- */
.consult-banner {
  background: var(--navy);
  padding: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.consult-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.08) 0%, transparent 60%);
}
.consult-banner .container { position: relative; z-index: 1; }
.consult-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.consult-banner p { color: rgba(255,255,255,0.75); margin-bottom: 1.5rem; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-name { color: rgba(255,255,255,0.92); }
.footer-brand .logo-law  { color: #c9a84c; }
.footer-brand .logo-divider { border-color: rgba(255,255,255,0.2); }
.footer-brand p { margin-top: 1rem; font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.6); }

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--gold); }

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
}
.footer-contact p svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--gold); }
.footer-contact a { color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--gold); }

.footer-disclaimer {
  background: rgba(0,0,0,0.2);
  padding: 12px 0;
  margin-top: 0;
}
.footer-disclaimer p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
  font-style: italic;
}

/* ---------- Icon Circles ---------- */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-circle svg { width: 26px; height: 26px; color: var(--gold); }
.icon-circle-navy { background: rgba(26,43,74,0.08); }
.icon-circle-navy svg { color: var(--navy); }

/* ---------- Process Steps ---------- */
.process-steps {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 100px;
}

.process-step .step-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.process-step .step-icon svg { width: 26px; height: 26px; color: var(--gold); }
.process-step .step-label { font-size: 0.875rem; font-weight: 600; color: var(--navy); }

.process-arrow {
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.process-arrow svg { width: 24px; height: 24px; color: var(--gold); }

/* ---------- Testimonial Cards ---------- */
.testimonial-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.25;
  font-family: var(--font-head);
  line-height: 1;
}

.stars { display: flex; gap: 3px; margin-bottom: 0.875rem; }
.stars svg { width: 16px; height: 16px; color: var(--gold); fill: var(--gold); }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}
.testimonial-author-info .name { font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.testimonial-author-info .location { font-size: 0.78rem; color: var(--text-light); }

/* ---------- Grid Helpers ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-contact { grid-column: span 3; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: span 2; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .process-steps { gap: 1rem; flex-direction: column; }
  .process-arrow { display: none; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: 1fr 1fr; }
}
