/* style.css - Updated hero section with white card and shadow */

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

:root {
  --primary: #0b1f35;
  --primary-dark: #081527;
  --accent: #b01524;
  --accent-dark: #8c0f1b;
  --text-dark: #3d3834;
  --text-light: #f4efe6;
  --muted: #7a726a;
  --background: #efeae1;
  --card: #ffffff;
  --border: rgba(15, 34, 56, 0.12);
}

body {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  margin: 0;
  background-color: var(--background);
  background-image: radial-gradient(circle at top, #fbf9f5 0%, #efeae1 45%, #e6dfd4 100%);
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  opacity: 0;
  transition: opacity 0.25s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.fade-in {
  opacity: 1;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  transform: translateY(-200%);
  background-color: var(--primary);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  z-index: 1100;
  text-decoration: none;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3, h4, h5, h6,
.site-header,
.btn {
  font-family: 'Lora', serif;
  font-weight: 400;
  letter-spacing: 0.5px;
}

h1 { font-size: clamp(2.3rem, 4vw, 3rem); }
h1 { font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.2rem; }

p,
li {
  color: var(--text-dark);
  max-width: 70ch;
}

small {
  font-size: 0.875rem;
  color: var(--muted);
}

.site-header {
  background: rgba(9, 20, 35, 0.88);
  backdrop-filter: blur(6px);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-right: auto;
}

.site-header .logo img {
  height: 50px;
  transform: scale(1.15);
}

.firm-name {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.8px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo img {
  height: 40px;
}

.footer-logo .firm-name {
  font-size: 1.2rem;
  color: #ffffff;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.navbar a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.2s ease;
}

.navbar a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.navbar a:hover::after,
.navbar a:focus-visible::after {
  transform: scaleX(1);
}

.contact-button {
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
}

.contact-button .btn {
  margin-left: 0;
  background: transparent;
  color: #ffffff;
  padding: 0.2rem 0;
  border: none;
  border-radius: 0;
  font-weight: 600;
  text-transform: none;
  position: relative;
}

.contact-button .btn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.85);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.contact-button .btn:hover::after,
.contact-button .btn:focus-visible::after {
  transform: scaleX(1);
}

.contact-button .btn:hover,
.contact-button .btn:focus-visible {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: var(--accent);
  color: #ffffff;
  padding: 0.8rem 2.1rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: none;
}

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

.hero {
  background: linear-gradient(130deg, rgba(9, 24, 44, 0.94), rgba(6, 16, 30, 0.9)), url('../img/header-hero.jpg');
  background-size: cover;
  background-position: center;
  padding: 5rem 2rem 3rem;
  position: relative;
  color: var(--text-light);
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(8, 18, 34, 0.55), rgba(6, 13, 26, 0.35));
  z-index: 0;
}

.hero::before {
  content: "CORPUSLURIS";
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(4rem, 16vw, 14rem);
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  z-index: 1;
}

.page-hero {
  position: relative;
  padding: 3.5rem 2rem 2.5rem;
  color: var(--text-light);
  background: linear-gradient(120deg, rgba(9, 24, 44, 0.96), rgba(6, 16, 30, 0.92));
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -20%;
  top: -25%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.page-hero-content {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero .section-label {
  color: rgba(255, 255, 255, 0.75);
}

.page-hero h1,
.page-hero h2 {
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

.page-hero .section-lede {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

.hero-content {
  background: transparent;
  padding: 2.5rem 1rem;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.1fr);
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1 1 340px;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: -0.01em;
}

.hero-text .quote,
.hero-text .subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.2rem;
  font-weight: 400;
}

.hero-text .subtitle {
  margin-bottom: 0.6rem;
}

.hero-text .quote {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.7rem;
  max-width: 44ch;
}

.hero-text .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.6rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.hero .btn-outline {
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill-list li {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-contact strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.hero-photo {
  flex: 0 1 280px;
  text-align: center;
  align-self: end;
  position: relative;
  padding-bottom: 0.6rem;
}

.hero-photo::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.4rem;
  transform: translateX(-50%);
  width: 72%;
  height: 18%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(6px);
  opacity: 0.6;
  pointer-events: none;
}

.hero-photo img.lawyer-photo {
  display: block;
  width: 100%;
  max-width: 360px;
  border-radius: 14px;
  box-shadow: none;
  position: relative;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}

body.fade-in .hero-text h1 {
  animation: hero-text-rise 0.7s ease-out 0.1s both;
}

body.fade-in .hero-text .quote {
  animation: hero-text-rise 0.7s ease-out 0.25s both;
}

body.fade-in .hero-photo {
  animation: hero-photo-slide 0.9s cubic-bezier(0.2, 0.7, 0.25, 1) 0.15s both;
}

@keyframes hero-text-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-photo-slide {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.fade-in .hero-text h1,
  body.fade-in .hero-text .quote,
  body.fade-in .hero-photo {
    animation: none;
  }
}

.content-section {
  padding: 3.2rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  background-color: var(--card);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 20, 30, 0.08);
}

.content-section.focus {
  background-color: #f7f2ea;
}

.content-section.light {
  background-color: transparent;
  box-shadow: none;
}

.content-section.cta {
  background-color: transparent;
  box-shadow: none;
}

.content-section h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 400;
}

.content-section ul li {
  margin-bottom: 0.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.hero .section-label {
  color: rgba(255, 255, 255, 0.75);
}

.section-lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: var(--card);
  border-radius: 12px;
  padding: 1.6rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(15, 20, 30, 0.06);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.service-card p,
.service-card ul {
  color: var(--muted);
  margin: 0;
}


.timeline {
  display: grid;
  gap: 1.2rem;
}

.timeline-step {
  background-color: var(--card);
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.cta-panel {
  background-color: var(--card);
  color: var(--text-dark);
  padding: 2.7rem;
  border-radius: 16px;
  box-shadow: 0 14px 35px rgba(15, 20, 30, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-panel .btn-outline {
  color: var(--primary);
  border-color: var(--primary);
}

.cta-panel .btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.contact-item {
  background-color: rgba(15, 34, 56, 0.05);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--primary);
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-card {
  padding: 1.4rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background-color: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 20, 30, 0.06);
}

.schedule {
  margin-top: 2rem;
}

.schedule-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.schedule-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.schedule-highlights {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.schedule-card {
  border: 1px solid rgba(16, 40, 77, 0.1);
  border-radius: 10px;
  padding: 1.2rem;
  background-color: #ffffff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.payment-placeholder {
  margin-top: 0.8rem;
  padding: 0.8rem;
  background-color: rgba(16, 40, 77, 0.05);
  border-radius: 8px;
  font-size: 0.95rem;
}

.schedule-form {
  border: 1px solid rgba(16, 40, 77, 0.1);
  border-radius: 12px;
  padding: 1.8rem;
  background-color: #ffffff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.intake-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.65rem;
  border: 1px solid rgba(16, 40, 77, 0.2);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(16, 40, 77, 0.15);
}

.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.15rem;
}

.field-error {
  color: #9f2f20;
  font-size: 0.85rem;
  min-height: 1em;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
  color: var(--primary);
  min-height: 1.2em;
}


.schedule-cta {
  align-self: flex-start;
}

blockquote {
  font-style: italic;
  background-color: #ffffff;
  border-left: 4px solid var(--accent);
  padding: 1rem;
  margin: 1rem 0;
  color: #555;
  font-weight: 400;
}

.photo-container {
  display: flex;
  justify-content: flex-end;
  padding: 2rem;
  background-color: #e0e0e0;
}

.lawyer-photo {
  max-width: 200px;
  border-radius: 6px;
  border: none;
}

.site-footer {
  text-align: center;
  padding: 2.5rem 2rem 1.5rem;
  background: linear-gradient(135deg, #0a1a2f, #071427);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: left;
}

.footer-title {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.8rem;
}

.footer-links,
.footer-contact,
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0.3rem 0 0;
}

.footer-links a,
.footer-contact a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.footer-bottom {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  background: rgba(9, 20, 35, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  z-index: 1001;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: rgba(9, 20, 35, 1);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.service-list {
  column-count: 2;
  column-gap: 2rem;
  padding-left: 1rem;
}

.service-list li {
  break-inside: avoid;
}

/* Responsive improvements */
@media (max-width: 992px) {
  .hero {
    padding-top: 2.5rem;
  }
  .hero::before {
    font-size: clamp(3.5rem, 14vw, 10rem);
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .nav-panel {
    display: none;
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    min-width: 220px;
    padding: 1rem;
    background: rgba(9, 20, 35, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(5, 12, 22, 0.45);
    z-index: 1100;
  }
  .site-header.is-open .nav-panel {
    display: flex;
  }
  .navbar ul {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }
  .contact-button {
    margin: 0;
  }
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text, .hero-photo {
    width: 100%;
  }
  .hero-photo {
    align-self: center;
    padding-bottom: 0;
  }
  .hero-text {
    padding-left: 0;
    border-left: none;
  }
  .hero-actions,
  .hero-contact,
  .cta-actions {
    justify-content: center;
  }
  .pill-list {
    justify-content: center;
  }
  .hero-photo img.lawyer-photo {
    max-width: 260px;
    margin: 0 auto;
  }
  .hero-text .subtitle,
  .hero-text .quote {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-text .quote {
    max-width: 36ch;
  }
}

@media (max-width: 768px) {
  .site-header .logo {
    margin-right: auto;
    align-self: flex-start;
  }
  .firm-name {
    font-size: 1.3rem;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero-text .lead {
    font-size: 1rem;
  }
  .cta-panel {
    padding: 2rem;
  }
  .service-list {
    column-count: 1;
  }
  .footer-inner {
    text-align: center;
  }
  .footer-links,
  .footer-contact,
  .footer-brand {
    align-items: center;
  }
}

@media (max-width: 600px) {
  .hero-content,
  .content-section {
    padding: 2rem 1.25rem;
  }
  .hero::before {
    font-size: clamp(2.6rem, 12vw, 7rem);
  }
  .hero-actions .btn,
  .cta-actions .btn {
    flex: 1 1 100%;
  }
  .schedule-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  .contact-button .btn {
    width: 100%;
    text-align: center;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .quote {
    font-size: 0.9rem;
  }
  .lawyer-photo {
    max-width: 150px;
  }
  .firm-name {
    font-size: 1.1rem;
  }
}
