/* =============================================
   ALTAVERA.PRO — Digital Monastery Aesthetic
   AI Business Consulting
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

/* === CSS VARIABLES === */
:root {
  --ivory: #f7f4ef;
  --ivory-warm: #f0ece3;
  --ivory-deep: #e8e2d6;
  --charcoal: #2c2c2a;
  --charcoal-mid: #4a4a46;
  --charcoal-light: #6e6e68;
  --gold: #b89a6a;
  --gold-light: #d4b896;
  --gold-pale: #e8d9c0;
  --divider: #c8bfae;
  --white: #fefefe;

  --font-serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-body: 'Crimson Pro', 'EB Garamond', Georgia, serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;
  --space-xxl: 11rem;

  --max-width: 1200px;
  --content-width: 820px;
  --narrow-width: 620px;

  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.3rem; font-weight: 400; }

p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--charcoal-mid);
  max-width: 68ch;
}

.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: var(--space-xl) 0;
}

/* === DIVIDERS === */
.divider {
  width: 100%;
  height: 1px;
  background: var(--divider);
  margin: 0;
}

.divider-ornament {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: var(--space-md) 0;
}

.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--divider);
}

.divider-ornament span {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(247, 244, 239, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--divider);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.2rem 2rem;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--charcoal);
}

.nav-logo-tagline {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal-mid);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--charcoal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--charcoal);
  color: var(--ivory) !important;
  padding: 0.6rem 1.4rem;
  font-size: 0.75rem !important;
  letter-spacing: 0.15em !important;
  transition: background var(--transition) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--charcoal) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--charcoal);
  transition: var(--transition);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--charcoal);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--ivory);
}

.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
}

.btn-gold:hover {
  background: var(--charcoal);
  color: var(--ivory);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--ivory) 50%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  max-width: 750px;
  margin-bottom: 2rem;
  font-weight: 300;
}

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

.hero-desc {
  font-size: 1.2rem;
  max-width: 520px;
  margin-bottom: 3rem;
  color: var(--charcoal-mid);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: var(--space-lg);
  display: flex;
  gap: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--divider);
}

.hero-stat-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal-light);
  margin-top: 0.4rem;
}

/* === SECTION LABEL === */
.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* === CARDS === */
.card {
  background: var(--white);
  padding: 2.5rem;
  border: 1px solid var(--ivory-deep);
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(44,44,42,0.06);
}

.card-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--ivory-deep);
  line-height: 1;
  margin-bottom: 1rem;
}

/* === GRID === */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* === IMAGE BLOCKS === */
.image-frame {
  overflow: hidden;
  position: relative;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-frame:hover img {
  transform: scale(1.03);
}

/* === FORMS === */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal-mid);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  background: var(--ivory-warm);
  border: 1px solid var(--divider);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
}

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

/* === PRICE CARDS === */
.price-card {
  background: var(--white);
  padding: 3rem 2.5rem;
  border: 1px solid var(--ivory-deep);
  position: relative;
  transition: all var(--transition);
}

.price-card.featured {
  background: var(--charcoal);
  color: var(--ivory);
  border-color: var(--charcoal);
}

.price-card.featured h3,
.price-card.featured .price-amount,
.price-card.featured .price-label {
  color: var(--ivory);
}

.price-card.featured p {
  color: var(--ivory-deep);
}

.price-card.featured li {
  color: var(--ivory-deep) !important;
}

.price-badge {
  position: absolute;
  top: -1px;
  right: 2rem;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
}

.price-amount {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--charcoal);
}

.price-currency {
  font-size: 1.5rem;
  vertical-align: super;
}

.price-period {
  font-size: 0.9rem;
  color: var(--charcoal-light);
  margin-left: 0.3rem;
}

.price-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.price-features {
  margin: 2rem 0;
  border-top: 1px solid var(--divider);
  padding-top: 1.5rem;
}

.price-features li {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal-mid);
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-bottom: 1px solid var(--ivory-warm);
}

.price-features li::before {
  content: '—';
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}

.price-card.featured .price-features {
  border-top-color: rgba(200,191,174,0.25);
}

.price-card.featured .price-features li {
  border-bottom-color: rgba(200,191,174,0.15);
}

/* === TESTIMONIALS === */
.testimonial {
  padding: 3rem;
  background: var(--white);
  border-left: 3px solid var(--gold);
  position: relative;
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal-light);
}

/* === ACCORDION === */
.accordion-item {
  border-bottom: 1px solid var(--divider);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  cursor: pointer;
  gap: 1rem;
}

.accordion-header h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--charcoal);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  border: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  font-size: 1rem;
  color: var(--gold);
}

.accordion-item.open .accordion-icon {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}

.accordion-body {
  display: none;
  padding-bottom: 1.5rem;
}

.accordion-item.open .accordion-body {
  display: block;
}

/* === FOOTER === */
.footer {
  background: var(--charcoal);
  color: var(--ivory-warm);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: var(--space-lg);
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--ivory);
  margin-bottom: 0.5rem;
}

.footer-brand-tag {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.footer p {
  color: rgba(240,236,227,0.65);
  font-size: 0.95rem;
  max-width: 300px;
  line-height: 1.7;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-weight: 400;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(240,236,227,0.65);
  padding: 0.3rem 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--ivory);
}

.footer-bottom {
  border-top: 1px solid rgba(200,191,174,0.2);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(240,236,227,0.4);
  max-width: none;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  font-size: 0.75rem;
  color: rgba(240,236,227,0.4);
  letter-spacing: 0.05em;
}

.footer-legal a:hover {
  color: var(--ivory);
}

/* === CONTACT INFO === */
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--divider);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--ivory-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--gold);
}

.contact-detail-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--charcoal-light);
  margin-bottom: 0.25rem;
}

.contact-detail-value {
  font-size: 1rem;
  color: var(--charcoal);
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  flex-wrap: wrap;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-text {
  font-size: 0.88rem;
  color: rgba(240,236,227,0.8);
  max-width: 680px;
  line-height: 1.6;
}

.cookie-text a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: all var(--transition);
}

.cookie-btn-accept {
  background: var(--gold);
  color: var(--charcoal);
}

.cookie-btn-accept:hover {
  background: var(--ivory);
}

.cookie-btn-reject {
  background: transparent;
  color: rgba(240,236,227,0.6);
  border: 1px solid rgba(200,191,174,0.3);
}

.cookie-btn-reject:hover {
  border-color: var(--ivory);
  color: var(--ivory);
}

/* === PAGE HEADER === */
.page-header {
  padding: calc(var(--space-xl) + 80px) 0 var(--space-lg);
  background: var(--ivory-warm);
  border-bottom: 1px solid var(--divider);
  text-align: center;
}

.page-header p {
  margin: 1rem auto 0;
  font-size: 1.15rem;
}

/* === ALERT / SUCCESS MESSAGE === */
.form-success {
  background: var(--ivory-deep);
  border-left: 3px solid var(--gold);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: none;
}

.form-success.visible {
  display: block;
}

.form-success p {
  font-size: 1rem;
  color: var(--charcoal);
  max-width: none;
}

/* === BREADCRUMBS === */
.breadcrumb {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--charcoal-light);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--gold);
}

.breadcrumb span {
  margin: 0 0.5rem;
  color: var(--divider);
}

/* === LEGAL CONTENT === */
.legal-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.legal-content h2 {
  font-size: 1.6rem;
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--divider);
}

.legal-content h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

.legal-content p {
  max-width: none;
  margin-bottom: 1rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.legal-content ul li {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--charcoal-mid);
  padding: 0.25rem 0;
}

/* === MOBILE NAV OVERLAY === */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--ivory);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--charcoal);
}

.mobile-nav a:hover {
  color: var(--gold);
}

.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--charcoal-light);
  background: none;
  border: none;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

.fade-in-1 { animation-delay: 0.1s; }
.fade-in-2 { animation-delay: 0.25s; }
.fade-in-3 { animation-delay: 0.4s; }
.fade-in-4 { animation-delay: 0.55s; }
.fade-in-5 { animation-delay: 0.7s; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
    --space-xxl: 6rem;
  }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .footer-grid { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .price-card { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .container,
  .container-narrow {
    padding: 0 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}
