/* ==========================================================================
   ANIMATEDLEY: main site styles
   Same brand system as the real estate page: Montserrat, royal navy,
   warm off-white. Header, logo size/position, buttons, cards, contact
   and footer use the same values.
   ========================================================================== */

:root {
  --bg-page: #FAF9F6;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F3F1EC;

  --text-main: #0F172A;
  --text-muted: #4A5568;
  --text-light: #718096;

  --color-navy: #1E3A8A;
  --color-navy-dark: #0F2042;
  --color-coral: #E11D48;
  --color-whatsapp: #25D366;

  --border-color: #E8E5DF;
  --border-focus: #1E3A8A;

  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-subtle: 0 4px 20px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-featured: 0 16px 40px rgba(30, 58, 138, 0.12);

  --transition: 0.25s ease;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-primary);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p { color: var(--text-muted); font-size: 1rem; font-weight: 400; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}
.container-narrow { max-width: 840px; }
.text-center { text-align: center; }
.text-navy { color: var(--color-navy); }

/* --- Logo: identical to the real estate page --- */
.brand {
  display: flex;
  align-items: center;
  line-height: 0;
  margin-left: -32px;
  padding-left: 0;
}
.brand-logo-img {
  height: clamp(40px, 5.5vw, 63px);
  width: auto;
  max-width: 100%;
  display: block;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-link:hover { color: var(--color-navy); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.btn-primary { background-color: var(--color-navy); color: #FFFFFF; }
.btn-primary:hover { background-color: var(--color-navy-dark); color: #FFFFFF; transform: translateY(-1px); }
.btn-outline { background-color: transparent; color: var(--text-main); border-color: var(--border-color); }
.btn-outline:hover { border-color: var(--color-navy); color: var(--color-navy); background-color: var(--bg-surface); }

/* --- Hero --- */
.hero { padding: 95px 0 105px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }

.pill-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-navy);
  background: rgba(30, 58, 138, 0.08);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.025em;
}
.hero-tagline { font-size: 1.22rem; font-weight: 600; color: var(--text-main); margin-bottom: 14px; line-height: 1.4; }
.hero-description { font-size: 1.08rem; line-height: 1.65; color: var(--text-muted); margin-bottom: 36px; max-width: 520px; }
.hero-cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero-image-wrap { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.hero-glow {
  position: absolute;
  width: min(520px, 100%);
  height: min(520px, 100%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.16) 0%, rgba(30, 58, 138, 0.05) 55%, transparent 72%);
}
.hero-mark {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 462px;
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22), 0 10px 24px rgba(30, 58, 138, 0.14);
  animation: floatY 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes floatY { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -12px, 0); } }

/* --- Sections --- */
.section { padding: 110px 0; }
.section-bordered { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.section-bordered + .section-bordered { border-top: 0; }
.bg-warm { background-color: var(--bg-subtle); }
.section-header { margin-bottom: 64px; }

/* Performance: offscreen sections are not rendered until near the viewport */
.feature, #more, #contact { content-visibility: auto; contain-intrinsic-size: 1px 620px; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-navy);
  margin-bottom: 14px;
}
.section-heading {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.22;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-subheading { font-size: 1.1rem; line-height: 1.65; color: var(--text-muted); max-width: 680px; margin: 0 auto; }
.copy-text { font-size: 1.05rem; line-height: 1.7; margin-bottom: 24px; }

/* --- Feature sections with looping clips --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip .clip-card { order: -1; }

.tier-features { display: flex; flex-direction: column; gap: 12px; }
.tier-features li { font-size: 0.95rem; color: var(--text-main); line-height: 1.5; font-weight: 500; }

.clip-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.clip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-featured); }

.clip-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--color-navy-dark); overflow: hidden; }
.clip-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.clip-frame video.ready { opacity: 1; }
@supports not (aspect-ratio: 16 / 9) { .clip-frame { height: 0; padding-top: 56.25%; } }

.clip-meta { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px 20px; border-top: 1px solid var(--border-color); }
.clip-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; color: var(--color-navy); }
.clip-caption { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--text-main); }

/* --- More services cards --- */
.channels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.channel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 36px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition), box-shadow var(--transition);
}
.channel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.channel-icon { font-size: 2rem; margin-bottom: 16px; }
.channel-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.channel-card p { font-size: 0.92rem; line-height: 1.6; }

.custom-package-card {
  margin-top: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-subtle);
}
.custom-content h3 { font-size: 1.3rem; margin-bottom: 6px; }
.custom-content p { font-size: 0.95rem; max-width: 620px; line-height: 1.6; }

/* --- Contact (same as real estate page) --- */
.contact-methods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition), border-color var(--transition);
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--color-navy); }
.contact-icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px; background-color: var(--bg-subtle);
}
.whatsapp-color { background-color: #EBFDF3; }
.phone-color { background-color: #EFF6FF; }
.mail-color { background-color: #FFF1F2; }
.contact-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); margin-bottom: 8px; }
.contact-value { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--text-main); margin-bottom: 12px; word-break: break-word; }
.contact-action { font-size: 0.85rem; font-weight: 600; color: var(--color-navy); }

/* --- Footer --- */
.footer { padding: 50px 0 45px; background-color: var(--bg-page); border-top: 1px solid var(--border-color); }
.footer-container { display: flex; flex-direction: column; gap: 18px; }
.footer-top-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-rights { font-size: 0.88rem; color: var(--text-muted); }
.footer-tagline { font-size: 0.88rem; font-weight: 600; color: var(--color-navy); }
.footer-disclaimer-row { border-top: 1px solid rgba(232, 229, 223, 0.7); padding-top: 16px; }
.footer-disclaimer { font-size: 0.88rem; color: var(--text-light); line-height: 1.65; text-align: left; }

/* --- Text animation: one simple, uniform fade-and-rise --- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.75s var(--ease) var(--d, 0s), transform 0.75s var(--ease) var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }

/* --- Responsive (same breakpoints as the real estate page) --- */
@media (max-width: 1100px) { .nav { gap: 22px; } .nav-link { font-size: 0.86rem; } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-image-wrap { min-height: 340px; }
  .hero-mark { width: min(330px, 70vw); }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-cta-row { justify-content: center; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.flip .clip-card { order: 0; }
  .split .clip-card { max-width: 560px; width: 100%; margin: 0 auto; }
  .channels-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .custom-package-card { flex-direction: column; text-align: center; }
  .contact-methods-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 860px) { .nav { display: none; } }

@media (max-width: 640px) {
  .container { padding-left: 22px; padding-right: 22px; }
  .header-inner { justify-content: flex-start; }
  .brand { margin-left: -22px; }
  .brand-logo-img { height: clamp(32px, 9vw, 48px); }
  .hero { padding: 64px 0 72px; }
  .hero-image-wrap { min-height: 280px; }
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 44px; }
  .channel-card { padding: 28px 22px; }
  .custom-package-card { padding: 28px 24px; }
  .contact-card { padding: 28px 20px; }
  .clip-meta { padding: 16px 18px 18px; }
  .footer-top-row { flex-direction: column; text-align: center; }
  .footer-disclaimer { text-align: center; }
}

@media (max-width: 400px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .brand { margin-left: -16px; }
  .brand-logo-img { height: clamp(28px, 9vw, 40px); }
  .pill-badge { font-size: 0.68rem; padding: 6px 12px; }
  .hero-tagline { font-size: 1.08rem; }
  .hero-description { font-size: 1rem; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { width: 100%; }
}

/* --- Accessibility: respect reduced-motion settings --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
