/* ============================================
   Ravens' Reverie — CSS
   Palette: Midnight Blue (#0a1f3f) + Mint (#5eead4)
   Fonts: Cormorant Garamond + Raleway
*/

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: #1a1a2e;
  background-color: #faf9f7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: #0a1f3f;
  color: #5eead4;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-size: 14px;
  font-weight: 500;
}
.skip-link:focus {
  top: 0;
}

/* ---------- PRELOADER ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #0a1f3f;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 31, 63, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(94, 234, 212, 0.1);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: #faf9f7;
  letter-spacing: 0.02em;
}

/* Nav */
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}
.primary-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 249, 247, 0.75);
  transition: color 0.25s ease;
  position: relative;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #5eead4;
  transition: width 0.3s ease;
}
.primary-nav a:hover,
.primary-nav a:focus {
  color: #5eead4;
}
.primary-nav a:hover::after,
.primary-nav a:focus::after {
  width: 100%;
}
.nav-cta {
  background: transparent;
  border: 1px solid rgba(94, 234, 212, 0.5);
  padding: 8px 20px;
  border-radius: 100px;
  color: #5eead4 !important;
  transition: background 0.25s ease, border-color 0.25s ease !important;
}
.nav-cta::after {
  display: none;
}
.nav-cta:hover,
.nav-cta:focus {
  background: rgba(94, 234, 212, 0.15);
  border-color: #5eead4;
}

/* Nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #faf9f7;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #0a1f3f;
  overflow: hidden;
  padding-top: 72px;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(circle at 2px 2px, #5eead4 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 0;
}

.hero-content {
  padding-right: 16px;
}

.hero-eyebrow {
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5eead4;
  margin-bottom: 20px;
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  color: #faf9f7;
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: italic;
  color: #5eead4;
}

.hero-description {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(250, 249, 247, 0.7);
  margin-bottom: 36px;
  max-width: 480px;
}

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

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(250, 249, 247, 0.6);
}

/* Hero visual */
.hero-visual {
  position: relative;
}
.hero-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}
.hero-image-accent {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 12px;
  pointer-events: none;
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #faf9f7;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.hero-floating-card strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  color: #0a1f3f;
}
.hero-floating-card span {
  font-size: 12px;
  color: #555;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: #5eead4;
  color: #0a1f3f;
}
.btn-primary:hover {
  background: #4dd3bc;
  box-shadow: 0 8px 24px rgba(94, 234, 212, 0.35);
}

.btn-secondary {
  background: transparent;
  color: #faf9f7;
  border: 1px solid rgba(250, 249, 247, 0.4);
}
.btn-secondary:hover {
  border-color: #5eead4;
  color: #5eead4;
}

.btn-outline {
  background: transparent;
  color: #0a1f3f;
  border: 1.5px solid #0a1f3f;
}
.btn-outline:hover {
  background: #0a1f3f;
  color: #faf9f7;
}

.btn-large {
  padding: 18px 36px;
  font-size: 14px;
}
.btn-full {
  width: 100%;
  justify-content: center;
}

/* ---------- SECTION HEADERS ---------- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5eead4;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  color: #0a1f3f;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

/* ---------- SERVICES ---------- */
.services {
  padding: 100px 0;
  background: #faf9f7;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  border: 1px solid rgba(10, 31, 63, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(10, 31, 63, 0.1);
}
.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 31, 63, 0.05);
  border-radius: 12px;
  margin-bottom: 20px;
}
.service-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: #0a1f3f;
  margin-bottom: 10px;
}
.service-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
}
.services-cta {
  text-align: center;
}

/* ---------- ABOUT ---------- */
.about {
  padding: 100px 0;
  background: #0a1f3f;
  position: relative;
  overflow: hidden;
}
.about::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(94, 234, 212, 0.03);
  pointer-events: none;
}

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

.about-visual {
  position: relative;
}
.about-image-main {
  border-radius: 16px;
  overflow: hidden;
}
.about-image-main img {
  width: 100%;
  height: auto;
  display: block;
}
.about-image-secondary {
  position: absolute;
  bottom: -32px;
  right: -16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border: 4px solid #0a1f3f;
}
.about-accent-box {
  position: absolute;
  top: -16px;
  right: 40px;
  background: #5eead4;
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
}
.accent-number {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 700;
  color: #0a1f3f;
  line-height: 1;
}
.accent-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a1f3f;
}

.about-content .section-eyebrow {
  color: #5eead4;
  text-align: left;
}
.about-content .section-title {
  color: #faf9f7;
  text-align: left;
  margin-bottom: 24px;
}
.about-text {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(250, 249, 247, 0.7);
  margin-bottom: 16px;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 32px 0;
}
.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(250, 249, 247, 0.85);
}
.value-item svg {
  flex-shrink: 0;
}
.about-content .btn-outline {
  border-color: #5eead4;
  color: #5eead4;
}
.about-content .btn-outline:hover {
  background: #5eead4;
  color: #0a1f3f;
}

/* ---------- GALLERY ---------- */
.gallery {
  padding: 100px 0;
  background: #faf9f7;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:nth-child(1) img,
.gallery-item:nth-child(4) img {
  height: 100%;
  min-height: 300px;
}
.gallery-item:nth-child(2) img,
.gallery-item:nth-child(3) img,
.gallery-item:nth-child(5) img,
.gallery-item:nth-child(6) img {
  height: 100%;
  min-height: 200px;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 31, 63, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: #faf9f7;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: 100px 0;
  background: #f3f1ee;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  position: relative;
  border: 1px solid rgba(10, 31, 63, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(10, 31, 63, 0.08);
}
.testimonial-quote {
  position: absolute;
  top: 20px;
  right: 24px;
}
.testimonial-text {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  font-size: 13px;
  font-weight: 600;
  color: #0a1f3f;
  letter-spacing: 0.02em;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 100px 0;
  background: #0a1f3f;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info .section-eyebrow {
  color: #5eead4;
  text-align: left;
}
.contact-info .section-title {
  color: #faf9f7;
  text-align: left;
  margin-bottom: 16px;
}
.contact-intro {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(250, 249, 247, 0.7);
  margin-bottom: 36px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}
.contact-detail {
  display: flex;
  gap: 16px;
}
.contact-detail svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-detail strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  color: #faf9f7;
  margin-bottom: 4px;
}
.contact-detail span,
.contact-detail a {
  font-size: 14px;
  color: rgba(250, 249, 247, 0.65);
  line-height: 1.6;
}
.contact-detail a:hover {
  color: #5eead4;
}
.map-wrapper {
  border-radius: 12px;
  overflow: hidden;
}

/* Contact form */
.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(94, 234, 212, 0.15);
  border-radius: 16px;
  padding: 40px;
}
.form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: #faf9f7;
  margin-bottom: 28px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 249, 247, 0.6);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 8px;
  color: #faf9f7;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.25s ease, background 0.25s ease;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(250, 249, 247, 0.3);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #5eead4;
  background: rgba(94, 234, 212, 0.06);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235eead4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-group select option {
  background: #0a1f3f;
  color: #faf9f7;
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}
.form-success.show {
  display: block;
}
.form-success svg {
  margin: 0 auto 16px;
}
.form-success p {
  font-size: 15px;
  color: rgba(250, 249, 247, 0.8);
  line-height: 1.6;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: #071529;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(94, 234, 212, 0.1);
}
.footer-logo .logo-text {
  font-size: 18px;
}
.footer-tagline {
  font-size: 14px;
  color: rgba(250, 249, 247, 0.5);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 260px;
}
.footer-links h4,
.footer-contact h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: #faf9f7;
  margin-bottom: 16px;
}
.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a,
.footer-contact a {
  font-size: 14px;
  color: rgba(250, 249, 247, 0.5);
  transition: color 0.25s ease;
}
.footer-links a:hover,
.footer-contact a:hover {
  color: #5eead4;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(250, 249, 247, 0.5);
  line-height: 1.6;
}
.footer-contact svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 13px;
  color: rgba(250, 249, 247, 0.35);
}
.footer-bottom a {
  color: rgba(250, 249, 247, 0.35);
  transition: color 0.25s ease;
}
.footer-bottom a:hover {
  color: #5eead4;
}

/* ---------- MOBILE NAV OVERLAY ---------- */
.primary-nav.mobile-open {
  position: fixed;
  inset: 0;
  background: rgba(10, 31, 63, 0.98);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.primary-nav.mobile-open ul {
  flex-direction: column;
  gap: 28px;
  text-align: center;
}
.primary-nav.mobile-open a {
  font-size: 20px;
  letter-spacing: 0.12em;
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 32px;
  }
  .about-grid {
    gap: 48px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .primary-nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 40px 0 60px;
    text-align: center;
  }
  .hero-content {
    padding-right: 0;
    order: 1;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-trust {
    align-items: center;
  }
  .hero-visual {
    order: 2;
    max-width: 400px;
    margin: 0 auto;
  }
  .hero-floating-card {
    left: 0;
    bottom: -16px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-visual {
    max-width: 440px;
    margin: 0 auto;
  }
  .about-content .section-eyebrow,
  .about-content .section-title {
    text-align: center;
  }
  .about-text {
    text-align: center;
  }
  .about-content .btn-outline {
    display: inline-flex;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item:nth-child(1) img,
  .gallery-item:nth-child(4) img {
    min-height: 220px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-info .section-eyebrow,
  .contact-info .section-title {
    text-align: center;
  }
  .contact-intro {
    text-align: center;
  }
  .contact-form-wrapper {
    padding: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-tagline {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  .footer-contact li {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .about-values {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .hero-floating-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 16px;
  }
  .about-image-secondary {
    right: 0;
  }
}
