/* ============================================
   REEDY 1ST DECKS — GLOBAL STYLES
   Design: Editorial Modernism
   Palette: Charcoal + Gold + Cream
   Fonts: Playfair Display, DM Sans, JetBrains Mono
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #f5f0eb;
  color: #1a1a2e;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f5f0eb; }
::-webkit-scrollbar-thumb { background: #d4a853; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b8903f; }
::selection { background: rgba(212,168,83,0.3); color: #1a1a2e; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', Georgia, serif; }
.font-display { font-family: 'Playfair Display', Georgia, serif; }
.font-body { font-family: 'DM Sans', system-ui, sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* --- Colors --- */
.bg-charcoal { background-color: #1a1a2e; }
.bg-charcoal-light { background-color: #242444; }
.bg-charcoal-dark { background-color: #12121f; }
.bg-gold { background-color: #d4a853; }
.bg-gold-light { background-color: #e8c87a; }
.bg-cream { background-color: #f5f0eb; }
.bg-cream-dark { background-color: #e8dfd6; }
.bg-white { background-color: #ffffff; }
.text-gold { color: #d4a853; }
.text-charcoal { color: #1a1a2e; }
.text-white { color: #ffffff; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(26,26,46,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(18,18,31,0.2);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
@media (min-width: 1024px) { .navbar-inner { height: 80px; } }

.nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
}
.nav-logo-icon {
  width: 36px; height: 36px; background: #d4a853; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.125rem; color: #12121f;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-name { font-family: 'Playfair Display', serif; color: #fff; font-weight: 600; font-size: 1rem; letter-spacing: 0.025em; }
.nav-logo-sub { color: #d4a853; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-family: 'DM Sans', sans-serif; }

.nav-links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a {
  padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.8); transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #d4a853; }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; margin-top: 4px;
  width: 14rem; background: #1a1a2e; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); padding: 0.5rem 0;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 0.625rem 1rem; font-size: 0.875rem;
  color: rgba(255,255,255,0.7); transition: all 0.2s;
}
.nav-dropdown-menu a:hover { color: #d4a853; background: rgba(255,255,255,0.05); }

.nav-cta-btn {
  display: none; background: #d4a853; color: #12121f; font-weight: 600;
  font-size: 0.875rem; padding: 0.625rem 1.25rem; border-radius: 6px;
  transition: all 0.2s;
}
.nav-cta-btn:hover { background: #e8c87a; box-shadow: 0 4px 20px rgba(212,168,83,0.2); }
@media (min-width: 1024px) { .nav-cta-btn { display: inline-flex; } }

/* Mobile menu */
.mobile-toggle {
  display: block; color: #fff; padding: 0.5rem; background: none; border: none;
}
@media (min-width: 1024px) { .mobile-toggle { display: none; } }
.mobile-menu {
  display: none; background: #1a1a2e; border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 0.75rem; font-size: 1rem; font-weight: 500;
  color: rgba(255,255,255,0.8); border-radius: 6px; transition: all 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: #d4a853; background: rgba(255,255,255,0.05); }
.mobile-menu .sub-links { padding-left: 1.5rem; }
.mobile-menu .sub-links a { font-size: 0.875rem; color: rgba(255,255,255,0.6); padding: 0.5rem 0.75rem; }
.mobile-cta {
  display: block; text-align: center; background: #d4a853; color: #12121f;
  font-weight: 600; font-size: 0.875rem; padding: 0.75rem; border-radius: 6px;
  margin-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem;
}

/* --- Sections --- */
.section { padding: 5rem 0; }
@media (min-width: 1024px) { .section { padding: 7rem 0; } }
.section-label {
  color: #d4a853; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.75rem;
  display: block; font-family: 'DM Sans', sans-serif;
}
.section-title {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 1.875rem; line-height: 1.2; margin-bottom: 1rem;
}
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .section-title { font-size: 3rem; } }
.text-center { text-align: center; }
.italic { font-style: italic; }

/* --- Grid --- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 1rem;
  padding: 0.875rem 2rem; border-radius: 6px; transition: all 0.2s;
}
.btn-gold { background: #d4a853; color: #12121f; }
.btn-gold:hover { background: #e8c87a; box-shadow: 0 4px 20px rgba(212,168,83,0.2); }
.btn-outline { border: 1px solid rgba(255,255,255,0.2); color: #fff; }
.btn-outline:hover { border-color: rgba(212,168,83,0.5); color: #d4a853; }
.btn-dark { background: #1a1a2e; color: #fff; }
.btn-dark:hover { background: #242444; }
.btn-sm { font-size: 0.875rem; padding: 0.625rem 1.25rem; }

/* --- Cards --- */
.card {
  background: #fff; border: 1px solid rgba(26,26,46,0.05);
  border-radius: 8px; padding: 1.75rem; transition: all 0.3s;
}
.card:hover { border-color: rgba(212,168,83,0.3); box-shadow: 0 8px 30px rgba(212,168,83,0.05); }
.card-dark {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 1.75rem;
}

/* --- Icon Box --- */
.icon-box {
  width: 3rem; height: 3rem; border-radius: 8px;
  background: rgba(212,168,83,0.1); display: flex;
  align-items: center; justify-content: center; color: #d4a853;
  margin-bottom: 1.25rem; transition: all 0.3s;
}
.card:hover .icon-box { background: #d4a853; color: #12121f; }
.icon-box-lg { width: 3.5rem; height: 3.5rem; margin: 0 auto 1.25rem; }

/* --- Reveal Animations --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* --- Stars --- */
.stars { display: flex; gap: 2px; margin-bottom: 1rem; }
.star { color: #d4a853; font-size: 0.875rem; }

/* --- Footer --- */
.footer { background: #12121f; color: rgba(255,255,255,0.8); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 0 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2rem; } }
.footer h4 { font-family: 'Playfair Display', serif; color: #fff; font-weight: 600; font-size: 1rem; margin-bottom: 1.25rem; }
.footer a { color: rgba(255,255,255,0.5); font-size: 0.875rem; transition: color 0.2s; display: block; padding: 0.375rem 0; }
.footer a:hover { color: #d4a853; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 1.25rem 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  font-size: 0.75rem; color: rgba(255,255,255,0.4);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom a { display: inline; padding: 0; }
.footer-legal { display: flex; gap: 1rem; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 6px; background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 0.75rem; font-weight: 500;
  transition: all 0.2s; padding: 0;
}
.footer-social a:hover { background: rgba(212,168,83,0.2); color: #d4a853; }
.newsletter-form { display: flex; margin-top: 0.75rem; }
.newsletter-form input {
  flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px 0 0 6px; padding: 0.5rem 0.75rem; font-size: 0.875rem;
  color: #fff; outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form input:focus { border-color: rgba(212,168,83,0.5); }
.newsletter-form button {
  background: #d4a853; color: #12121f; font-weight: 600; font-size: 0.875rem;
  padding: 0.5rem 1rem; border-radius: 0 6px 6px 0; transition: background 0.2s;
}
.newsletter-form button:hover { background: #e8c87a; }

/* --- WhatsApp Button --- */
.whatsapp-btn {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.4); }
.whatsapp-btn svg { width: 28px; height: 28px; }

/* --- Hero Sections --- */
.hero { position: relative; overflow: hidden; padding-top: 7rem; padding-bottom: 5rem; }
@media (min-width: 1024px) { .hero { padding-top: 9rem; padding-bottom: 7rem; } }
.hero-home { min-height: 100vh; display: flex; align-items: center; padding-top: 0; padding-bottom: 0; }
.hero-overlay { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.hero-gradient { position: absolute; inset: 0; }

/* --- Pricing Cards --- */
.pricing-card {
  border-radius: 8px; padding: 1.75rem; position: relative;
}
.pricing-card.popular {
  background: #1a1a2e; color: #fff; border: 2px solid #d4a853;
  box-shadow: 0 10px 40px rgba(212,168,83,0.1);
}
.pricing-card:not(.popular) { background: #fff; border: 1px solid rgba(26,26,46,0.1); }
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #d4a853; color: #12121f; font-size: 0.75rem; font-weight: 700;
  padding: 0.25rem 1rem; border-radius: 999px;
}
.pricing-features { margin: 1rem 0 1.5rem; }
.pricing-features li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; padding: 0.375rem 0;
}
.pricing-features .check { color: #d4a853; font-weight: 700; }

/* --- Accordion (FAQ) --- */
.accordion-item { border-bottom: 1px solid rgba(26,26,46,0.08); }
.accordion-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0; font-family: 'DM Sans', sans-serif; font-weight: 600;
  font-size: 0.9375rem; color: #1a1a2e; text-align: left; cursor: pointer;
  background: none; border: none; transition: color 0.2s;
}
.accordion-btn:hover { color: #d4a853; }
.accordion-btn .icon { transition: transform 0.3s; font-size: 1.25rem; color: #d4a853; }
.accordion-item.open .accordion-btn .icon { transform: rotate(45deg); }
.accordion-content {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.accordion-item.open .accordion-content { max-height: 500px; }
.accordion-content p {
  padding-bottom: 1.25rem; font-size: 0.9375rem; line-height: 1.75;
  color: rgba(26,26,46,0.6);
}

/* --- Form Styles --- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-size: 0.875rem; font-weight: 500;
  color: rgba(26,26,46,0.7); margin-bottom: 0.375rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%; border: 1px solid rgba(26,26,46,0.1); border-radius: 6px;
  padding: 0.625rem 1rem; font-size: 0.875rem; color: #1a1a2e;
  background: rgba(245,240,235,0.5); outline: none; transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: rgba(212,168,83,0.5); }
.form-textarea { resize: none; }

/* --- Step Indicator --- */
.step-indicator { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; }
.step-dot {
  width: 2rem; height: 2rem; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
}
.step-dot.active { background: #d4a853; color: #12121f; }
.step-dot.done { background: #1a1a2e; color: #fff; }
.step-dot.pending { background: rgba(26,26,46,0.1); color: rgba(26,26,46,0.3); }
.step-line { width: 1.5rem; height: 1px; background: rgba(26,26,46,0.1); }
@media (min-width: 1024px) { .step-line { width: 3rem; } }

/* --- Prose (Legal Pages) --- */
.prose h2 {
  font-family: 'Playfair Display', serif; font-size: 1.375rem; font-weight: 700;
  color: #1a1a2e; margin-top: 2rem; margin-bottom: 0.75rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 0.9375rem; line-height: 1.75; color: rgba(26,26,46,0.6); margin-bottom: 1rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { font-size: 0.9375rem; line-height: 1.75; color: rgba(26,26,46,0.6); margin-bottom: 0.375rem; }
.prose strong { color: #1a1a2e; font-weight: 600; }

/* --- Utility --- */
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-16 { margin-top: 4rem; }
.pt-8 { padding-top: 2rem; }
.inline-flex { display: inline-flex; align-items: center; gap: 0.5rem; }

/* Portfolio aspect ratio */
.aspect-4-3 { aspect-ratio: 4/3; overflow: hidden; position: relative; border-radius: 8px; }
.aspect-4-3 img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.aspect-4-3:hover img { transform: scale(1.05); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,18,31,0.9), rgba(26,26,46,0.2), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.aspect-4-3:hover .portfolio-overlay { opacity: 1; }
.portfolio-info {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1.25rem;
  transform: translateY(1rem); opacity: 0; transition: all 0.3s;
}
.aspect-4-3:hover .portfolio-info { transform: translateY(0); opacity: 1; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.compare-table th { background: #1a1a2e; color: #d4a853; padding: 0.75rem 1rem; text-align: left; font-weight: 600; }
.compare-table td { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(26,26,46,0.08); }
.compare-table tr:hover td { background: rgba(212,168,83,0.03); }

/* Testimonial grid masonry-like */
.testimonial-card { break-inside: avoid; margin-bottom: 1.5rem; }

/* Blog card */
.blog-thumb {
  aspect-ratio: 16/10; background: rgba(26,26,46,0.05); border-radius: 8px;
  overflow: hidden; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center;
}
.blog-thumb svg { width: 2rem; height: 2rem; color: rgba(26,26,46,0.2); }

/* Page transition */
main { animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive helpers */
.hidden-mobile { display: none; }
@media (min-width: 768px) { .hidden-mobile { display: block; } }
.hidden-desktop { display: block; }
@media (min-width: 1024px) { .hidden-desktop { display: none; } }

/* Two-col layout */
.two-col { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; } }
.three-col-form { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .three-col-form { grid-template-columns: 2fr 1fr; } }

/* Flex row for buttons */
.btn-row { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .btn-row { flex-direction: row; } }
.btn-row-center { justify-content: center; }

/* Process timeline connector */
.process-step { position: relative; text-align: center; }
.process-number {
  font-family: 'JetBrains Mono', monospace; font-size: 3.75rem; font-weight: 700;
  color: rgba(212,168,83,0.1); margin-bottom: 0.5rem; line-height: 1;
}

/* Contact info item */
.contact-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.contact-icon { width: 1rem; height: 1rem; color: #d4a853; margin-top: 0.25rem; flex-shrink: 0; }

/* SVG Icons inline */
.svg-arrow { width: 1rem; height: 1rem; }
.svg-icon { width: 1.5rem; height: 1.5rem; }
.svg-icon-lg { width: 1.75rem; height: 1.75rem; }
