/*
Theme Name: Duncan Law PC
Theme URI: https://duncanlawutah.com
Author: Duncan Law PC
Author URI: https://duncanlawutah.com
Description: A professional divorce and family law theme for Duncan Law PC in Salt Lake County, Utah.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: duncan-law
*/

/* =============================================
   CSS VARIABLES
============================================= */
:root {
  --navy: #1a2a4a;
  --navy-dark: #0f1c33;
  --navy-light: #243558;
  --blue: #2c6fad;
  --blue-light: #3a85cc;
  --gray-dark: #333333;
  --gray-mid: #666666;
  --gray-light: #f4f5f7;
  --gray-border: #dde1e7;
  --white: #ffffff;
  --gold: #c9a84c;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-strong: 0 8px 40px rgba(0,0,0,0.16);
  --radius: 4px;
  --transition: all 0.25s ease;
}

/* =============================================
   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(--gray-dark);
  background: var(--white);
  line-height: 1.7;
}

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

a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-light); }

ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.2em; color: var(--gray-mid); }
p:last-child { margin-bottom: 0; }

/* =============================================
   LAYOUT
============================================= */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-header p {
  font-size: 1.1rem;
}

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #b8923e;
  border-color: #b8923e;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

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

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

/* =============================================
   DIVIDERS & ACCENTS
============================================= */
.title-bar {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 20px;
}

.title-bar-left {
  margin-left: 0;
}

/* =============================================
   SITE HEADER
============================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy-dark);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

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

.site-logo img {
  height: 56px;
  width: auto;
}

.site-logo a {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.logo-text span {
  color: var(--gold);
}

/* Navigation */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.site-nav .nav-cta a {
  background: var(--gold);
  color: var(--navy-dark);
  padding: 10px 20px;
}

.site-nav .nav-cta a:hover {
  background: #b8923e;
  color: var(--white);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* =============================================
   HERO SECTION
============================================= */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 60%, #1e3a6e 100%);
  color: var(--white);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/images/hero-pattern.svg') center/cover;
  opacity: 0.04;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.80);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 48px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.trust-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* Hero card */
.hero-card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 36px;
  box-shadow: var(--shadow-strong);
}

.hero-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.hero-card p {
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.hero-card .form-group {
  margin-bottom: 16px;
}

.hero-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.hero-card input,
.hero-card select,
.hero-card textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--gray-dark);
  background: var(--white);
  transition: var(--transition);
}

.hero-card input:focus,
.hero-card select:focus,
.hero-card textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(44,111,173,0.12);
}

.hero-card .btn {
  width: 100%;
  text-align: center;
  padding: 14px;
  font-size: 0.9rem;
}

.hero-card .privacy-note {
  font-size: 0.75rem;
  color: #999;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 0;
}

/* =============================================
   TRUST BAR
============================================= */
.trust-bar {
  background: var(--navy);
  padding: 20px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.80);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.trust-bar-item svg {
  flex-shrink: 0;
  opacity: 0.75;
}

/* =============================================
   PRACTICE AREAS
============================================= */
.practice-areas {
  background: var(--gray-light);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.practice-card {
  background: var(--white);
  border-radius: 8px;
  padding: 36px 28px;
  border-top: 4px solid transparent;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.practice-card:hover {
  border-top-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.practice-icon {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.practice-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--gold);
}

.practice-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.practice-card p {
  font-size: 0.9rem;
  line-height: 1.65;
}

.practice-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 16px;
}

.practice-card .learn-more:hover {
  color: var(--navy);
  gap: 10px;
}

/* =============================================
   WHY CHOOSE US
============================================= */
.why-us {
  background: var(--white);
}

.why-us-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.why-us-image {
  position: relative;
}

.why-us-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
}

.why-us-image .experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.experience-badge .years {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.experience-badge .years-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.why-us-list {
  margin: 28px 0;
}

.why-us-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.why-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.why-check svg {
  width: 13px;
  height: 13px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2.5;
}

.why-us-list li div h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--navy);
}

.why-us-list li div p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* =============================================
   ATTORNEY PROFILE
============================================= */
.attorney-profile {
  background: var(--gray-light);
}

.attorney-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}

.attorney-photo {
  position: sticky;
  top: 100px;
}

.attorney-photo img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
}

.attorney-photo-card {
  background: var(--navy);
  border-radius: 0 0 8px 8px;
  padding: 20px 24px;
  color: var(--white);
  text-align: center;
}

.attorney-photo-card .name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 4px;
}

.attorney-photo-card .title {
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.attorney-bio h2 {
  margin-bottom: 8px;
}

.attorney-bio p {
  font-size: 1rem;
  line-height: 1.8;
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.credential-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.credential-item .cred-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 4px;
}

.credential-item .cred-value {
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 600;
}

/* =============================================
   TESTIMONIALS
============================================= */
.testimonials {
  background: var(--navy-dark);
  color: var(--white);
}

.testimonials .section-header h2 {
  color: var(--white);
}

.testimonials .section-header p {
  color: rgba(255,255,255,0.65);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  padding: 32px 28px;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 10px;
  left: 22px;
  line-height: 1;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.testimonial-stars span {
  color: var(--gold);
  font-size: 1rem;
}

.testimonial-card p {
  color: rgba(255,255,255,0.80);
  font-size: 0.95rem;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  font-weight: 700;
}

.author-info .author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}

.author-info .author-detail {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.50);
}

/* =============================================
   PROCESS SECTION
============================================= */
.process {
  background: var(--white);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: var(--gray-border);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--navy);
}

.process-step h4 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.88rem;
}

/* =============================================
   CTA BANNER
============================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 72px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 36px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

/* =============================================
   CONTACT SECTION
============================================= */
.contact-section {
  background: var(--gray-light);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-details {
  margin: 28px 0;
}

.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 42px;
  height: 42px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
}

.contact-detail-text .label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 2px;
}

.contact-detail-text .value {
  font-size: 0.96rem;
  color: var(--navy);
  font-weight: 600;
}

.contact-detail-text a {
  color: var(--navy);
}

.contact-detail-text a:hover {
  color: var(--blue);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--gray-dark);
  background: var(--white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(44,111,173,0.12);
}

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

.form-submit .btn {
  width: 100%;
  text-align: center;
  padding: 15px;
}

.form-disclaimer {
  font-size: 0.75rem;
  color: #999;
  text-align: center;
  margin-top: 12px;
}

/* =============================================
   SITE FOOTER
============================================= */
#site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.70);
}

.footer-main {
  padding: 64px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.60);
  font-size: 0.88rem;
  transition: var(--transition);
}

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

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.60);
  align-items: flex-start;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.60);
}

.footer-contact-item a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.40);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.40);
}

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

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .attorney-inner { grid-template-columns: 1fr; }
  .attorney-photo { position: static; max-width: 400px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; background: var(--navy-dark); padding: 20px; }
  .site-nav.open ul { flex-direction: column; width: 100%; }
  .menu-toggle { display: flex; }
  .hero { padding: 64px 0; }
  .why-us-inner { grid-template-columns: 1fr; }
  .why-us-image .experience-badge { bottom: 10px; right: 10px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .credentials-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-trust { gap: 20px; }
}

@media (max-width: 480px) {
  .practice-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
}
