/* =============================================
   AKADEMI KOMPOS — EDITORIAL LANDING PAGE
   Design System: 8pt Grid, WCAG AA
   Palette: Emerald #1a6b45, Mint #d1f5e4,
            Off-white #fafaf8, Slate #1c2b2b
   Typography: Playfair Display (serif), Inter (sans)
   ============================================= */

/* ── 0. CSS CUSTOM PROPERTIES ── */
:root {
  /* Brand Colors */
  --emerald: #1a6b45;
  --emerald-dark: #145536;
  --emerald-deep: #0f3d28;
  --mint: #d1f5e4;
  --mint-light: #e8fbf0;
  --off-white: #fafaf8;
  --slate: #1c2b2b;
  --slate-light: #2a3d3d;
  --slate-muted: #4a6363;

  /* Functional Colors (Light Mode) */
  --bg-primary: #fafaf8;      /* Off-white */
  --bg-elevated: #ffffff;     /* Surface white */
  --bg-hover: #f1f3f1;
  --text-primary: #1c2b2b;    /* Slate */
  --text-secondary: #4a6363;  /* Slate Muted */
  --text-muted: #7a9494;
  --text-inverse: #fafaf8;
  --border-subtle: rgba(26, 107, 69, 0.08);
  --border-medium: rgba(26, 107, 69, 0.15);
  --accent-gold: var(--emerald);
  --accent-gold-hover: var(--emerald-dark);

  /* Typography */
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing (8pt grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 56px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;
  --space-13: 112px;
  --space-14: 128px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(28, 43, 43, 0.04);
  --shadow-md: 0 4px 16px rgba(28, 43, 43, 0.06);
  --shadow-lg: 0 8px 32px rgba(28, 43, 43, 0.08);
  --shadow-xl: 0 16px 48px rgba(28, 43, 43, 0.10);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 500ms;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-fast) var(--ease-out);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* Focus ring for accessibility */
:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ── 2. TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

.serif { font-family: var(--font-serif); }
.sans { font-family: var(--font-sans); }

/* ── 3. LOADING SCREEN ── */
#ak-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

#ak-loading.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ak-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.ak-loader-bar {
  width: 48px;
  height: 3px;
  background: var(--mint);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.ak-loader-bar::after {
  content: '';
  position: absolute;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--emerald);
  border-radius: var(--radius-full);
  animation: loaderSlide 1.2s var(--ease-out) infinite;
}

@keyframes loaderSlide {
  0% { left: -100%; }
  50% { left: 0; }
  100% { left: 100%; }
}

.ak-loader-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ── 4. NAVBAR ── */
.ak-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(250, 250, 248, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.ak-nav.scrolled {
  background: rgba(250, 250, 248, 0.95);
  border-bottom-color: var(--border-medium);
  box-shadow: 0 4px 20px rgba(28, 43, 43, 0.05);
}

.ak-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.ak-nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.ak-nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid rgba(197, 168, 128, 0.2);
}

.ak-nav-brand span {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.ak-nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

/* Style only standard navigation links (excluding CTA buttons) */
.ak-nav-links a:not(.ak-nav-cta) {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: var(--space-2) 0;
  transition: color var(--duration-fast) var(--ease-out);
}

.ak-nav-links a:not(.ak-nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-gold);
  transition: width var(--duration-normal) var(--ease-out);
}

.ak-nav-links a:not(.ak-nav-cta):hover {
  color: var(--text-primary);
}

.ak-nav-links a:not(.ak-nav-cta):hover::after {
  width: 100%;
}

/* Call to Action (CTA) Buttons Grouping & Spacing */
.ak-nav-links a.ak-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 10px 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
  margin-left: 4px; /* Matches gap-lg-1 (4px) on buku_tamu.php */
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Subtle shine effect */
.ak-nav-links a.ak-nav-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.ak-nav-links a.ak-nav-cta:hover::before {
  left: 100%;
}

/* Add clear separation between standard menu and the first CTA button */
.ak-nav-links a.ak-nav-cta:first-of-type {
  margin-left: 12px; /* Matches ms-lg-2 + gap-lg-1 = 12px on buku_tamu.php */
}

.ak-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.ak-masonry-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-out), 
              box-shadow var(--duration-normal) var(--ease-out);
}

.ak-masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.2) contrast(1.05);
  transition: transform var(--duration-slow) var(--ease-out),
              filter var(--duration-normal) var(--ease-out);
}

.ak-masonry-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ak-masonry-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1);
}

.ak-nav-links a.ak-nav-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
  filter: brightness(1.05);
  color: white !important;
}

.ak-nav-links a.ak-nav-cta:active {
  transform: scale(0.98);
}

/* CTA 2: Toko (Secondary Teal Gradient Button) */
.ak-nav-links a.ak-nav-cta.ak-store {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.25);
}

.ak-nav-links a.ak-nav-cta.ak-store:hover {
  box-shadow: 0 10px 25px rgba(13, 148, 136, 0.35);
  color: white !important;
}

/* CTA 3: Nasabah (Tertiary Emerald Gradient Button) */
.ak-nav-links a.ak-nav-cta.ak-nasabah {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25);
}

.ak-nav-links a.ak-nav-cta.ak-nasabah:hover {
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.35);
  color: white !important;
}

/* Mobile menu toggle */
.ak-nav-toggle {
  width: 24px;
  height: 24px;
  position: relative;
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001; /* Stay above full-height menu */
}

.ak-nav-toggle span {
  position: absolute;
  left: 1px;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--duration-fast) var(--ease-out), 
              opacity var(--duration-fast) var(--ease-out), 
              top var(--duration-fast) var(--ease-out);
}

.ak-nav-toggle span:nth-child(1) { top: 6px; }
.ak-nav-toggle span:nth-child(2) { top: 12px; }
.ak-nav-toggle span:nth-child(3) { top: 18px; }

.ak-nav-toggle.active span:nth-child(1) {
  top: 12px;
  transform: rotate(45deg);
}

.ak-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.ak-nav-toggle.active span:nth-child(3) {
  top: 12px;
  transform: rotate(-45deg);
}

/* ── 5. HERO SECTION ── */
.ak-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + var(--space-10));
  padding-bottom: var(--space-10);
  background: var(--bg-primary);
  overflow: hidden;
}

/* Elegant radial background glow */
.ak-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(26, 107, 69, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ak-hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(209, 245, 228, 0.4) 0%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
}

.ak-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
  position: relative;
  z-index: 1;
}

.ak-hero-content {
  max-width: 560px;
}

.ak-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 16px;
  background: var(--mint);
  color: var(--emerald);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  margin-bottom: var(--space-5);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ak-hero-badge i {
  font-size: 12px;
}

.ak-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  letter-spacing: -1px;
}

.ak-hero-title .text-emerald {
  color: var(--emerald);
}

.ak-hero-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-7);
  max-width: 480px;
  letter-spacing: 0.2px;
}

.ak-hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.ak-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 28px;
  background: var(--emerald);
  color: var(--text-inverse) !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  box-shadow: 0 4px 16px rgba(26, 107, 69, 0.25);
  transition: all var(--duration-normal) var(--ease-out);
}

.ak-btn-primary:hover {
  background: var(--emerald-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 107, 69, 0.3);
  color: var(--text-inverse) !important;
}

.ak-btn-primary:active {
  transform: scale(0.98);
}

.ak-btn-primary i {
  transition: transform var(--duration-fast) var(--ease-out);
}

.ak-btn-primary:hover i {
  transform: translateX(4px);
}

.ak-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 28px;
  background: transparent;
  color: var(--emerald);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--emerald);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
}

.ak-btn-secondary:hover {
  background: var(--mint);
  border-color: var(--emerald);
  color: var(--emerald-dark);
  transform: translateY(-2px);
}

.ak-btn-secondary:active {
  transform: scale(0.98);
}

.ak-hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.ak-hero-image img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-xl);
  filter: drop-shadow(0 20px 40px rgba(26, 107, 69, 0.1));
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── 6. STATS BAR ── */
.ak-stats {
  background: var(--emerald-deep);
  padding: var(--space-10) 0;
  position: relative;
  overflow: hidden;
}

.ak-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 107, 69, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.ak-stats-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ak-stat-item {
  text-align: center;
  padding: var(--space-4);
  position: relative;
}

.ak-stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -10%;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(209, 245, 228, 0.15);
}

.ak-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-3);
}

.ak-stat-icon i {
  font-size: 24px;
  color: var(--mint);
  opacity: 0.8;
}

.ak-stat-number {
  display: block;
  font-family: 'Inter', monospace;
  font-size: clamp(32px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--text-inverse);
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.ak-stat-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(209, 245, 228, 0.6);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── 7. WHY CHOOSE US ── */
.ak-why {
  padding: var(--space-14) 0;
  background: var(--bg-primary);
}

.ak-why-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-10);
  align-items: start;
}

.ak-why-heading {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-6));
}

.ak-why-heading .ak-section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-4);
}

.ak-why-heading h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  letter-spacing: -0.5px;
}

.ak-why-heading p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 400px;
}

.ak-why-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.ak-why-card {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-gold);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: default;
}

.ak-why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 107, 69, 0.25);
  box-shadow: var(--shadow-lg);
}

.ak-why-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--mint);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ak-why-card-icon i {
  font-size: 20px;
  color: var(--accent-gold);
}

.ak-why-card-content h4 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.ak-why-card-content p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── 8. GALLERY (MASONRY) ── */
.ak-gallery {
  padding: var(--space-14) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.ak-section-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.ak-section-header .ak-section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-4);
}

.ak-section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.5px;
}

.ak-section-header p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}



/* ── 9. BLOG / INSIGHTS ── */
.ak-blog {
  padding: var(--space-14) 0;
  background: var(--bg-primary);
}

.ak-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* Featured card (first) — spans full width */
.ak-blog-card.featured {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
}

.ak-blog-card.featured .ak-blog-img {
  width: 55%;
  min-height: 380px;
}

.ak-blog-card {
  display: flex;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all var(--duration-normal) var(--ease-out);
}

.ak-blog-card:not(.featured) {
  flex-direction: column;
}

.ak-blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 168, 128, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.ak-blog-img {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.ak-blog-card:not(.featured) .ak-blog-img {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.ak-blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.ak-blog-card:hover .ak-blog-img img {
  transform: scale(1.04);
}

.ak-blog-tag {
  display: inline-flex;
  padding: 4px 12px;
  background: rgba(197, 168, 128, 0.08);
  border: 1px solid rgba(197, 168, 128, 0.15);
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ak-blog-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.ak-blog-card.featured .ak-blog-body {
  padding: var(--space-8);
  flex: 1;
}

.ak-blog-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ak-blog-card.featured .ak-blog-title {
  font-size: 22px;
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.5px;
}

.ak-blog-excerpt {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.ak-blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 12px;
  color: var(--text-muted);
}

.ak-blog-meta i {
  margin-right: 4px;
}

/* ── 10. CONTACT ── */
.ak-contact {
  padding: var(--space-14) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.ak-contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-8);
  align-items: start;
}

.ak-contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.ak-contact-info h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 36px);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: -0.5px;
}

.ak-contact-info > p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.ak-contact-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  transition: all var(--duration-fast) var(--ease-out);
}

.ak-contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(197, 168, 128, 0.25);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.ak-contact-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(197, 168, 128, 0.08);
  border: 1px solid rgba(197, 168, 128, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ak-contact-card-icon i {
  font-size: 16px;
  color: var(--accent-gold);
}

.ak-contact-card h5 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.ak-contact-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ak-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  background: #25D366;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.2);
  transition: all var(--duration-fast) var(--ease-out);
  margin-top: var(--space-4);
  align-self: flex-start;
}

.ak-btn-whatsapp:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.ak-btn-whatsapp:active {
  transform: scale(0.98);
}

.ak-contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 4 / 3;
  filter: grayscale(0.1) contrast(1.02); /* Premium clean light mode map style */
}

.ak-contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── 11. FOOTER ── */
.ak-footer {
  background: var(--slate);
  padding: var(--space-10) 0 var(--space-6);
  border-top: 1px solid var(--border-subtle);
}

.ak-footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border-subtle);
}

.ak-footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: var(--space-4);
  max-width: 300px;
}

.ak-footer-brand .ak-brand-mark {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.ak-footer-brand .ak-brand-mark img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(26, 107, 69, 0.2);
}

.ak-footer-brand .ak-brand-mark span {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.ak-footer-socials {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.ak-footer-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 14px;
  transition: all var(--duration-fast) var(--ease-out);
}

.ak-footer-socials a:hover {
  background: var(--accent-gold);
  color: var(--bg-primary) !important;
  border-color: transparent;
  transform: translateY(-2px);
}

.ak-footer-col h5 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ak-footer-col ul li {
  margin-bottom: var(--space-3);
  list-style: none;
}

.ak-footer-col ul a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
}

.ak-footer-col ul a:hover {
  color: var(--accent-gold);
}

/* Newsletter */
.ak-newsletter {
  margin-top: var(--space-4);
}

.ak-newsletter p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.ak-newsletter-form {
  display: flex;
  gap: var(--space-2);
}

.ak-newsletter-form input {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.ak-newsletter-form input::placeholder {
  color: var(--text-muted);
}

.ak-newsletter-form input:focus {
  border-color: var(--accent-gold);
}

.ak-newsletter-form button {
  padding: 10px 20px;
  background: var(--accent-gold);
  color: var(--bg-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  transition: background var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}

.ak-newsletter-form button:hover {
  background: var(--accent-gold-hover);
}

.ak-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
}

.ak-footer-bottom small {
  font-size: 13px;
  color: rgba(209, 245, 228, 0.3);
}

/* ── 12. SCROLL TO TOP ── */
.ak-scroll-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  background: var(--emerald);
  color: var(--text-inverse);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(26, 107, 69, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 999;
  cursor: pointer;
}

.ak-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ak-scroll-top:hover {
  background: var(--emerald-dark);
  transform: translateY(-3px);
}

/* ── 13. IMAGE MODAL ── */
.ak-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(28, 43, 43, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  backdrop-filter: blur(8px);
}

.ak-modal.show {
  opacity: 1;
  visibility: visible;
}

.ak-modal-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  font-size: 24px;
  cursor: pointer;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--duration-fast) var(--ease-out);
}

.ak-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ak-modal img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}

/* ── 14. ANIMATIONS ── */
.ak-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.ak-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.ak-reveal-delay-1 { transition-delay: 100ms; }
.ak-reveal-delay-2 { transition-delay: 200ms; }
.ak-reveal-delay-3 { transition-delay: 300ms; }
.ak-reveal-delay-4 { transition-delay: 400ms; }

/* Link underline animation from left */
.ak-link-animated {
  position: relative;
  display: inline;
}

.ak-link-animated::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--duration-normal) var(--ease-out);
}

.ak-link-animated:hover::after {
  width: 100%;
}

/* ── 15. RESPONSIVE: TABLET (768px) ── */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .ak-nav-brand img {
    width: 32px;
    height: 32px;
  }

  .ak-nav-brand span {
    font-size: 14px;
  }

  .ak-nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-height));
    background: rgba(250, 250, 248, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-8) var(--space-5) var(--space-12);
    gap: 0;
    border-bottom: none;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--duration-normal) var(--ease-out),
                opacity var(--duration-normal) var(--ease-out),
                visibility var(--duration-normal) var(--ease-out);
    z-index: 999;
    overflow-y: auto;
    display: flex;
    align-items: center;
  }

  .ak-nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* Premium Serif Font list for mobile navigation */
  .ak-nav-links a:not(.ak-nav-cta) {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: var(--space-3) 0;
    border-bottom: 1.5px solid rgba(26, 107, 69, 0.05);
    transition: color var(--duration-fast) var(--ease-out), transform 0.2s var(--ease-out);
  }

  .ak-nav-links a:not(.ak-nav-cta):active,
  .ak-nav-links a:not(.ak-nav-cta):hover {
    color: var(--emerald);
    transform: scale(1.02);
  }

  .ak-nav-links a:not(.ak-nav-cta)::after {
    display: none !important;
  }

  /* Full width stack CTA buttons on mobile */
  .ak-nav-links a.ak-nav-cta {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    margin-left: 0 !important;
    padding: 12px 24px;
    font-size: 13.5px;
    border-radius: 50px;
  }

  .ak-nav-links a.ak-nav-cta:first-of-type {
    margin-top: var(--space-8) !important;
    margin-left: 0 !important;
  }

  .ak-nav-links a.ak-nav-cta + .ak-nav-cta {
    margin-top: var(--space-3) !important;
  }

  .ak-nav-toggle {
    display: flex;
  }

  .ak-hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .ak-hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .ak-hero-subtitle {
    max-width: 100%;
  }

  .ak-hero-actions {
    justify-content: center;
  }

  .ak-hero-image {
    order: -1;
  }

  .ak-hero-image img {
    max-width: 320px;
  }

  .ak-stats-inner {
    flex-wrap: wrap;
    gap: var(--space-6);
  }

  .ak-stat-item {
    flex: 1 1 45%;
  }

  .ak-stat-item:not(:last-child)::after {
    display: none;
  }

  .ak-why-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .ak-why-heading {
    position: static;
    text-align: center;
  }

  .ak-why-heading p {
    max-width: 100%;
    margin: 0 auto;
  }

  .ak-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .ak-blog-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .ak-blog-card.featured {
    flex-direction: column;
  }

  .ak-blog-card.featured .ak-blog-img {
    width: 100%;
    min-height: 220px;
  }

  .ak-blog-card:not(.featured) {
    flex-direction: column;
  }

  .ak-blog-card:not(.featured) .ak-blog-img {
    width: 100%;
    min-height: 180px;
  }

  .ak-contact-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .ak-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .ak-footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }
}

/* ── 16. RESPONSIVE: MOBILE (375px) ── */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  .ak-hero {
    padding-top: calc(var(--nav-height) + var(--space-8));
    padding-bottom: var(--space-8);
  }

  .ak-hero-title {
    font-size: 32px;
  }

  .ak-hero-subtitle {
    font-size: 16px;
  }

  .ak-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .ak-btn-primary,
  .ak-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .ak-stats {
    padding: var(--space-6) 0;
  }

  .ak-stats-inner {
    flex-direction: column;
    gap: var(--space-5);
  }

  .ak-stat-item {
    flex: auto;
  }

  .ak-masonry {
    grid-template-columns: 1fr;
  }

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

  .ak-btn-whatsapp {
    width: 100%;
    justify-content: center;
  }

  .ak-why-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── 17. DESKTOP 1440px+ ── */
@media (min-width: 1441px) {
  :root {
    --max-width: 1320px;
  }
}

/* ── 18. PRINT STYLES ── */
@media print {
  .ak-nav,
  .ak-scroll-top,
  #ak-loading {
    display: none !important;
  }

  body {
    background: #fff;
  }
}

/* ==========================================================================
   Switcher Dropdown System (Dynamic Website Switcher)
   ========================================================================== */
.ak-switcher-dropdown {
  position: relative;
  display: inline-block;
}

.ak-switcher-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 210px;
  padding: var(--space-2);
  margin-top: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: var(--space-1);
}

.ak-switcher-dropdown:hover .ak-switcher-menu,
.ak-switcher-menu.show {
  display: flex;
}

.ak-switcher-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 8px 12px;
  color: var(--text-secondary) !important;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease-out);
}

.ak-switcher-item img {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin: 0 !important;
}

.ak-switcher-item:hover {
  background-color: var(--bg-hover);
  color: var(--emerald) !important;
}

.ak-switcher-item.active {
  background-color: var(--mint-light);
  color: var(--emerald) !important;
}
