/* ========================================
   Terri Carter Notary - Luxury Styles
   ======================================== */

/* ---- CSS Custom Properties ---- */
:root {
  --pink: #E88CB3;
  --black: #000000;
  --white: #FFFFFF;
  --blush: #F4C3D7;
  --deep-rose: #D1668F;
  --charcoal: #121212;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-lg: 24px;
  --container: 1200px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---- Utility ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   NAVIGATION
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: background-color 400ms ease, backdrop-filter 400ms ease;
}

.site-header.scrolled {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: block;
  flex-shrink: 0;
}

.nav-logo img {
  height: 150px;
  width: auto;
  transition: transform 300ms ease;
}

.nav-logo:hover img {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  transition: color 300ms ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--pink);
  transition: width 300ms ease;
}

.nav-link:hover {
  color: var(--pink);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--pink);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.nav-cta:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(232, 140, 179, 0.4);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 51;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--white);
  transition: transform 300ms ease, opacity 300ms ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--charcoal);
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: var(--container);
  margin: 0 auto;
  padding: 200px 24px 80px;
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.hero-text-col {
  flex: 0 0 60%;
  max-width: 60%;
}

.hero-image-col {
  flex: 0 0 34%;
  max-width: 34%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--white);
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero-subheadline {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
  color: var(--blush);
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero-supporting {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: transform 300ms ease, box-shadow 300ms ease, background-color 300ms ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--pink);
  color: var(--black);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(232, 140, 179, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 1.5px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--black);
  transform: scale(1.02);
}

/* Hero Image */
.hero-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--black) 100%);
  padding: 120px 0;
}

.about-grid {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.about-image-col {
  flex: 0 0 420px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-image-wrapper {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  margin-bottom: 32px;
}

.about-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.about-caption {
  text-align: center;
}

.about-caption-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.about-caption-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--pink);
  margin-bottom: 4px;
}

.about-caption-location {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

.about-text-col {
  flex: 1;
  min-width: 0;
}

.about-text-col h2 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  color: var(--pink);
  margin-bottom: 36px;
  letter-spacing: -1px;
}

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-bio p {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
  background-color: var(--black);
  padding: 120px 0;
}

.services h2 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  color: var(--pink);
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: -1px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background-color: var(--charcoal);
  border: 1px solid rgba(232, 140, 179, 0.1);
  border-radius: var(--radius-sm);
  padding: 40px 32px;
  transition: border-color 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}

.service-card:hover {
  border-color: var(--pink);
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(232, 140, 179, 0.15);
}

.service-icon {
  color: var(--pink);
  margin-bottom: 24px;
}

.service-icon svg {
  width: 48px;
  height: 48px;
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.service-card p {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* ========================================
   DOCUMENTS SECTION
   ======================================== */
.documents {
  background-color: var(--black);
  padding: 120px 0;
}

.documents h2 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  color: var(--white);
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: -1px;
}

.documents .accordion {
  max-width: 900px;
  margin: 0 auto;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq {
  background: linear-gradient(180deg, var(--black) 0%, var(--charcoal) 100%);
  padding: 120px 0;
}

.faq h2 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  color: var(--pink);
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: -1px;
}

.faq .accordion {
  max-width: 900px;
  margin: 0 auto;
}

/* ========================================
   ACCORDION COMPONENT
   ======================================== */
.accordion-item {
  border-bottom: 1px solid var(--deep-rose);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.accordion-trigger h3 {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  padding-right: 16px;
  transition: color 300ms ease;
}

.accordion-trigger:hover h3 {
  color: var(--pink);
}

.accordion-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--pink);
  transition: transform 300ms ease;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  overflow: hidden;
  height: 0;
  opacity: 0;
  transition: height 400ms cubic-bezier(0.65, 0, 0.35, 1), opacity 400ms ease;
}

.accordion-item.open .accordion-content {
  opacity: 1;
}

.accordion-content ul {
  padding-bottom: 24px;
}

.accordion-content ul li {
  font-family: var(--font-body);
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.accordion-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  background-color: var(--pink);
  border-radius: 50%;
}

.accordion-content p {
  font-family: var(--font-body);
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  padding-bottom: 24px;
  line-height: 1.7;
}

.accordion-content a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 200ms ease;
}

.accordion-content a:hover {
  color: var(--blush);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
  background-color: var(--black);
  padding: 120px 0;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-logo {
  max-width: 300px;
  width: 100%;
  margin-bottom: 40px;
}

.contact-tagline {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
  color: var(--blush);
  margin-bottom: 40px;
}

.contact-phone {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
  transition: color 300ms ease;
}

.contact-phone:hover {
  color: var(--pink);
}

.contact-website {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.contact-cta {
  display: inline-block;
  width: 100%;
  max-width: 500px;
  padding: 28px 60px;
  background-color: var(--pink);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.contact-cta:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(232, 140, 179, 0.4);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background-color: var(--black);
  border-top: 1px solid var(--deep-rose);
  padding: 40px 0;
  text-align: center;
}

.site-footer p {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger .reveal:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 200ms; }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 56px;
  }

  .hero-content {
    gap: 40px;
  }

  .hero-text-col {
    flex: 0 0 55%;
    max-width: 55%;
  }

  .hero-image-col {
    flex: 0 0 40%;
    max-width: 40%;
  }

  /* About Tablet */
  .about-grid {
    gap: 48px;
  }

  .about-image-col {
    flex: 0 0 360px;
    max-width: 360px;
  }

  .about-text-col h2 {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  /* Navigation Mobile */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 0;
    transition: right 400ms ease;
    z-index: 50;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    display: block;
    padding: 16px 0;
    font-size: 20px;
    border-bottom: 1px solid rgba(232, 140, 179, 0.2);
    width: 100%;
  }

  .nav-cta {
    margin-top: 24px;
    text-align: center;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero Mobile */
  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-content {
    flex-direction: column;
    padding: 150px 20px 60px;
  }

  .hero-text-col {
    flex: 1 1 auto;
    max-width: 100%;
    text-align: center;
  }

  .hero h1 {
    font-size: 40px;
    letter-spacing: -0.5px;
  }

  .hero-subheadline {
    font-size: 20px;
  }

  .hero-supporting {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image-col {
    display: none;
  }

  /* About Mobile */
  .about {
    padding: 80px 0;
  }

  .about-grid {
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }

  .about-image-col {
    flex: 1 1 auto;
    max-width: 380px;
    width: 100%;
  }

  .about-text-col {
    text-align: center;
  }

  .about-text-col h2 {
    font-size: 32px;
    margin-bottom: 28px;
  }

  .about-bio p {
    font-size: 16px;
  }

  /* Services Mobile */
  .services {
    padding: 80px 0;
  }

  .services h2 {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-card {
    padding: 32px 24px;
  }

  /* Documents Mobile */
  .documents {
    padding: 80px 0;
  }

  .documents h2 {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .accordion-trigger h3 {
    font-size: 18px;
  }

  /* FAQ Mobile */
  .faq {
    padding: 80px 0;
  }

  .faq h2 {
    font-size: 32px;
    margin-bottom: 40px;
  }

  /* Contact Mobile */
  .contact {
    padding: 80px 0;
  }

  .contact-logo {
    max-width: 220px;
  }

  .contact-phone {
    font-size: 28px;
  }

  .contact-cta {
    font-size: 20px;
    padding: 22px 40px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-subheadline {
    font-size: 18px;
  }

  .btn {
    padding: 14px 28px;
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .service-card h3 {
    font-size: 20px;
  }

  .service-card p {
    font-size: 16px;
  }

  .contact-phone {
    font-size: 24px;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-image-wrapper {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--pink);
  color: var(--black);
  padding: 8px 16px;
  z-index: 100;
  transition: top 200ms ease;
}

.skip-link:focus {
  top: 0;
}
