/**
 * Alas Petulu - Brand Guideline & Design Tokens
 * Extracted from Figma V2 Luxury Villa Design
 */

@font-face {
  font-family: 'Plantagenet Cherokee';
  src: url('../fonts/PlantagenetCherokee.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  /* --- Brand Color Palette --- */
  --ap-primary: #1e3323;         /* Deep Balinese Botanical Green */
  --ap-primary-dark: #142217;    /* Dark Forest Green */
  --ap-primary-light: #2c4a34;   /* Soft Jungle Green */
  --ap-accent: #c5a059;          /* Champagne Gold */
  --ap-accent-light: #dfc285;    /* Soft Muted Gold */
  
  --ap-bg-dark: #121c15;         /* Deep Forest Black */
  --ap-bg-light: #f7f6f2;        /* Warm Stone / Sand / Linen */
  --ap-bg-card: #ffffff;
  --ap-bg-overlay: rgba(0, 0, 0, 0.45);
  
  --ap-text-dark: #1a1a1a;       /* Charcoal Text */
  --ap-text-muted: #6b7280;      /* Slate Muted Text */
  --ap-text-light: #ffffff;      /* Pure White */
  --ap-text-sand: #e6e3da;       /* Soft Sand Text */
  
  --ap-border-light: rgba(255, 255, 255, 0.25);
  --ap-border-subtle: #e5e3dc;
  --ap-border-dark: #27382c;

  /* --- Typography --- */
  --ap-font-serif: 'Plantagenet Cherokee', 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --ap-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Font Sizes (+2px increased globally) */
  --ap-fs-h1: clamp(2.5rem, 5vw, 4.25rem);      /* 40px to 68px */
  --ap-fs-h2: clamp(2.125rem, 3.5vw, 3rem);     /* 34px to 48px */
  --ap-fs-h3: clamp(1.625rem, 2.5vw, 2.125rem); /* 26px to 34px */
  --ap-fs-h4: 1.5rem;                           /* 24px (was 22px) */
  --ap-fs-lead: 1.375rem;                       /* 22px (was 20px) */
  --ap-fs-body: 1.225rem;                       /* ~19.6px (was ~17.6px) */
  --ap-fs-small: 1.1rem;                        /* 17.6px (was 15.6px) */
  --ap-fs-badge: 1rem;                          /* 16px (was 14px) */

  /* --- Layout & Spacing --- */
  --ap-container-max: 1440px;
  --ap-container-fluid: 1820px;
  --ap-gutter: 2rem;
  
  --ap-radius-sm: 4px;
  --ap-radius-md: 8px;
  --ap-radius-lg: 16px;
  --ap-radius-pill: 9999px;

  /* --- Shadows (Minimalist Luxury - Shadows Drastically Reduced) --- */
  --ap-shadow-card: none;
  --ap-shadow-floating: 0 4px 16px rgba(0, 0, 0, 0.04);
  --ap-shadow-luxury: 0 4px 14px rgba(18, 28, 21, 0.04);

  /* --- Transitions --- */
  --ap-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --ap-transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & typography foundation */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-size: 16px;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--ap-font-sans);
  font-size: var(--ap-fs-body);
  line-height: 1.75;
  color: var(--ap-text-dark);
  background-color: var(--ap-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .ap-serif {
  font-family: var(--ap-font-serif);
  font-weight: 400;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 1rem;
}

p {
  font-family: var(--ap-font-sans);
  font-size: var(--ap-fs-body);
  line-height: 1.8;
  margin-top: 0;
  margin-bottom: 1.35rem;
}

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

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

/* Container Utilities */
.ap-container {
  width: 100%;
  max-width: var(--ap-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ap-gutter);
  padding-right: var(--ap-gutter);
}

.ap-container-fluid {
  width: 100%;
  max-width: var(--ap-container-fluid);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ap-gutter);
  padding-right: var(--ap-gutter);
}

/* Brand Button Styles */
.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.25rem;
  font-family: var(--ap-font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--ap-radius-sm);
  cursor: pointer;
  transition: var(--ap-transition);
  text-align: center;
  line-height: 1;
}

.ap-btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.ap-btn-outline-white:hover {
  background: #ffffff;
  color: var(--ap-primary);
  border-color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.ap-btn-primary {
  background: var(--ap-primary);
  color: #ffffff;
  border: 1px solid var(--ap-primary);
}
.ap-btn-primary:hover {
  background: var(--ap-primary-light);
  border-color: var(--ap-primary-light);
  box-shadow: 0 4px 15px rgba(30, 51, 35, 0.3);
}

.ap-btn-outline-dark {
  background: transparent;
  color: var(--ap-primary);
  border: 1px solid var(--ap-primary);
}
.ap-btn-outline-dark:hover {
  background: var(--ap-primary);
  color: #ffffff;
}

.ap-btn-gold {
  background: var(--ap-accent);
  color: #ffffff;
  border: 1px solid var(--ap-accent);
}
.ap-btn-gold:hover {
  background: var(--ap-accent-light);
}

/* Section Header Shared */
.ap-section-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3.5rem auto;
}

.ap-section-subtitle {
  font-family: var(--ap-font-sans);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ap-accent);
  margin-bottom: 0.35rem;
  font-weight: 600;
  display: block;
}

.ap-section-subtitle + .ap-section-title,
.ap-section-subtitle + h1,
.ap-section-subtitle + h2,
.ap-section-subtitle + h3 {
  margin-top: 0.25rem;
}

.ap-section-title {
  font-size: var(--ap-fs-h2);
  color: var(--ap-text-dark);
  margin-bottom: 0.75rem;
}

.ap-section-desc {
  color: var(--ap-text-muted);
  font-size: 1.175rem;
  line-height: 1.75;
}

/* Universal Room Card & Amenity Card Brand Consistency */
.ap-room-card,
.ap-room-card .ap-room-bg,
.ap-room-card .ap-room-overlay,
.ap-amenity-cat-card {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.ap-room-card:hover,
.ap-amenity-cat-card:hover {
  box-shadow: none !important;
}

.ap-room-specs,
.ap-spec-item,
.ap-spec-item span {
  color: #ffffff !important;
}

.ap-spec-item svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  fill: none !important;
}
