/* ============================================================
   MAJESTIC HORSES TAPAH — STYLES
   Rose Garden Luxury · Pink + Cream + Deep Wine
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* PINK PALETTE */
  --rose-50:  #FFF5F8;
  --rose-100: #FDE4EC;
  --rose-200: #F8C8D8;
  --rose-300: #F2A2BC;
  --rose-400: #E97698;
  --rose-500: #DC4F7C;
  --rose-600: #B83A66;
  --rose-700: #8E2A4C;
  --rose-800: #5C1A30;
  --rose-900: #2E0D18;

  --cream-50:  #FFFCF8;
  --cream-100: #FAF3E7;
  --cream-200: #F0E4D0;
  --gold:      #C9A961;

  --ink:       #2E0D18;
  --ink-soft:  #5C1A30;
  --muted:     #8B6B7A;
  --line:      rgba(220, 79, 124, 0.18);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;
  --font-script:  'Allura', cursive;

  --container: 1350px;
  --radius:    16px;
  --radius-lg: 28px;

  --shadow-sm:  0 4px 14px rgba(220, 79, 124, 0.10);
  --shadow:     0 14px 40px rgba(140, 30, 70, 0.14);
  --shadow-lg:  0 30px 70px rgba(92, 26, 48, 0.22);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--rose-50);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 10px; }

/* ─── TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-600);
}
.eyebrow::before, .eyebrow::after {
  content: ''; width: 32px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-400), transparent);
}
.eyebrow.left::before { display: none; }
.eyebrow.left::after { width: 56px; }

.section-title {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 400; font-style: italic;
  margin: 14px 0 18px;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--rose-500), var(--rose-700));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.section-lede {
  max-width: 640px;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.75;
}
.section-head { text-align: center; margin: 0 auto 64px; max-width: 760px; }
.section-head .section-lede { margin: 0 auto; }

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose-500) 0%, var(--rose-700) 100%);
  box-shadow: 0 10px 30px rgba(220, 79, 124, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(220, 79, 124, 0.45);
}
.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--rose-200);
}
.btn-ghost:hover {
  background: var(--rose-100);
  border-color: var(--rose-400);
  color: var(--rose-700);
}
.btn-outline {
  color: var(--rose-600);
  border: 1.5px solid var(--rose-400);
  background: transparent;
}
.btn-outline:hover {
  background: var(--rose-500);
  color: #fff;
  border-color: var(--rose-500);
}
.btn .arrow { transition: transform 0.4s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ─── HEADER / NAV ──────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(255, 245, 248, 0.85);
  backdrop-filter: saturate(150%) blur(20px);
  border-bottom: 1px solid var(--line);
  transition: all 0.4s ease;
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(255, 245, 248, 0.95);
  box-shadow: 0 4px 24px rgba(220, 79, 124, 0.08);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.05;
}
.logo .crest {
  width: 250px;
}
.logo .crest img{
  width: 100%;
  height: 60px;
  object-fit: contain;
}
.logo .crest svg { width: 26px; height: 26px; color: #fff; }
.logo .name { display: flex; flex-direction: column; }
.logo .name small {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rose-500);
  margin-top: 2px;
}
.nav-menu {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-menu a {
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 2px;
  background: var(--rose-500);
  transition: all 0.4s ease;
  transform: translateX(-50%);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--rose-600); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 24px; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 12px 24px; font-size: 12px; }

.mobile-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--rose-100);
  position: relative;
}
.mobile-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--rose-700);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-toggle span:nth-child(1) { top: 16px; }
.mobile-toggle span:nth-child(2) { top: 21px; }
.mobile-toggle span:nth-child(3) { top: 26px; }
.mobile-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav-menu, .nav-cta .btn { display: none; }
  .mobile-toggle { display: block; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    padding: 24px;
    gap: 18px;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--line);
  }
}

/* ─── PAGE BANNER ───────────────────────────────────────── */
.page-banner {
  position: relative;
  margin-top: 78px;
  padding: 110px 0 90px;
  text-align: center;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(242, 162, 188, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(232, 200, 216, 0.6) 0%, transparent 55%),
    linear-gradient(180deg, var(--rose-100) 0%, var(--rose-50) 100%);
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 20 L46 34 L60 36 L50 46 L52 60 L40 53 L28 60 L30 46 L20 36 L34 34 Z' fill='none' stroke='%23DC4F7C' stroke-width='0.5' opacity='0.18'/%3E%3C/svg%3E");
  opacity: 0.4;
}
.page-banner h1 {
  font-size: clamp(48px, 6vw, 84px);
  font-style: italic;
  margin-bottom: 16px;
  background: linear-gradient(120deg, var(--rose-700), var(--rose-500), var(--rose-700));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.page-banner .breadcrumb {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.page-banner .breadcrumb a { color: var(--rose-600); transition: color 0.3s; }
.page-banner .breadcrumb a:hover { color: var(--rose-800); }
.page-banner .breadcrumb .sep { color: var(--rose-300); }

/* ─── FOOTER ────────────────────────────────────────────── */
.site-footer {
  position: relative;
  padding: 90px 0 30px;
  background: linear-gradient(180deg, var(--rose-800) 0%, var(--rose-900) 100%);
  color: var(--rose-100);
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 80px;
  background: radial-gradient(ellipse at top, rgba(242, 162, 188, 0.3) 0%, transparent 70%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  position: relative; z-index: 1;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo { color: #fff; }
.footer-brand .logo .name small { color: var(--rose-300); }
.footer-brand p {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-300);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: default;
  font-family: var(--font-body);
  text-align: left;
  padding: 0;
}
.footer-col h5 .toggle-icon {
  display: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.footer-col h5 .toggle-icon svg {
  width: 14px; height: 14px;
  color: var(--rose-900);
  transition: transform 0.3s ease;
  stroke-width: 2.5;
}
.footer-col.open h5 .toggle-icon svg {
  transform: rotate(180deg);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.3s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.footer-col ul a::before {
  content: ''; width: 0; height: 1px;
  background: var(--rose-300);
  transition: width 0.3s ease;
}
.footer-col ul a:hover { color: #fff; }
.footer-col ul a:hover::before { width: 18px; }

.footer-contact-row {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 14px;
}
.footer-contact-row svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: var(--rose-300);
  margin-top: 3px;
}
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.socials a svg { width: 16px; height: 16px; color: #fff; }
.socials a:hover {
  background: var(--rose-500);
  border-color: var(--rose-500);
  transform: translateY(-3px);
}
.footer-bottom {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  position: relative; z-index: 1;
}
.footer-bottom .legal { display: flex; gap: 24px; }
.footer-bottom .legal a { transition: color 0.3s; }
.footer-bottom .legal a:hover { color: #fff; }
@media (max-width: 600px) { .footer-bottom { flex-direction: column; gap: 14px; text-align: center; } }

/* ─── FOOTER ACCORDION (≤ 1100px) ───────────────────────── */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border-bottom: 0;
    padding-bottom: 10px;
  }
  .footer-brand {
    padding-bottom: 32px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .footer-col {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
  }
  .footer-col h5 {
    cursor: pointer;
    padding: 22px 0;
    margin-bottom: 0;
    font-size: 15px;
    letter-spacing: 0.18em;
    color: #fff;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .footer-col h5 .toggle-icon { display: inline-flex; }
  .footer-col-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.2, 0.7, 0.3, 1),
                padding 0.35s ease,
                opacity 0.35s ease;
    opacity: 0;
    padding-bottom: 0;
  }
  .footer-col.open .footer-col-body {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 24px;
  }
  /* keep brand block always open (no toggle) */
  .footer-brand h5 { display: none; }
  .footer-brand .logo,.socials{
    justify-content: center;
  }
   .footer-brand p{text-align: center;}
}

/* ─── ANIMATIONS ────────────────────────────────────────── */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rotate { to { transform: rotate(360deg); } }
.fade-up { animation: fadeUp 0.9s ease-out both; }

section { padding: 100px 0; position: relative; }
@media (max-width: 768px) { section { padding: 60px 0; } .site-footer{padding: 60px 0;} }

@media (max-width: 550px) {
  .logo .crest {
    width: 196px;
}
  section { padding: 50px 0; } .site-footer{padding: 50px 0;} }
