@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Premium Light Mode Palette */
  --bg-color: #fcfcfd;
  --text-main: #111827;
  --text-muted: #6b7280;
  
  /* Derived from warm logo */
  --brand-primary: #ff8a00;
  --brand-secondary: #e52e71;
  --brand-gradient: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  --brand-gradient-hover: linear-gradient(135deg, #ff9a22, #f34282);

  /* Specific Block Colors */
  --cafe-accent: #d97706; /* Rich earthy amber */
  --spa-accent: #059669; /* Deep calming emerald */
  --tourism-accent: #0284c7; /* Vibrant ocean blue */

  /* Surface & Glassmorphism */
  --surface-white: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
  
  /* Geometry */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 9999px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.1);
  --ease-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-normal: 0.4s var(--ease-spring);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  z-index: 0;
}

body::before,
body::after {
  content: '';
  position: fixed;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.15;
  animation: drift 20s infinite alternate ease-in-out;
  pointer-events: none;
}

body::before {
  top: -20%;
  left: -10%;
  background: var(--brand-primary);
}

body::after {
  bottom: -20%;
  right: -10%;
  background: var(--brand-secondary);
  animation-duration: 25s;
  animation-direction: alternate-reverse;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(10%, 5%) scale(1.1); }
  66% { transform: translate(-5%, 15%) scale(0.9); }
  100% { transform: translate(5%, -10%) scale(1.05); }
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Typography --- */
.text-gradient {
  background: linear-gradient(to right, var(--brand-primary), var(--brand-secondary), var(--brand-primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  0% { background-position: 0% center; }
  100% { background-position: -200% center; }
}

/* --- Layout --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Navigation / Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 1.5rem 0;
}

header.scrolled {
  background: var(--surface-white);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--glass-border);
  padding: 1rem 0;
  box-shadow: var(--glass-shadow);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform var(--transition-fast);
}

.logo-container:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-link {
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-gradient);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

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

/* --- Main Hero --- */
.hero {
  padding: 12rem 0 6rem;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1.active {
  animation: subtleGlow 4s ease-in-out infinite alternate;
}

@keyframes subtleGlow {
  0% { text-shadow: 0 4px 20px rgba(0,0,0,0); }
  100% { text-shadow: 0 4px 30px rgba(255, 138, 0, 0.15); }
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 3rem;
  font-weight: 400;
}

/* --- Block Cards (Premium Grid) --- */
.blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  padding: 2rem 0 8rem;
}

.card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  z-index: 1;
  transform-style: preserve-3d;
}

.card-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: transform var(--transition-normal);
  opacity: 0.85;
}

.card-content {
  background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8rem 2.5rem 2.5rem;
  transform: translateZ(30px);
}

.card-btn {
  transform: translateZ(40px);
  margin-top: 1rem;
  z-index: 2;
}

.card:hover .card-bg-img {
  transform: scale(1.1);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.2), rgba(255,255,255,0.9));
  z-index: -1;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  background: #ffffff;
}

.card-icon {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  display: inline-block;
  transition: transform var(--transition-normal);
}

.card:hover .card-icon {
  transform: scale(1.15) rotate(5deg);
}

.card h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.card-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text-main);
  position: relative;
}

.card-btn svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.card:hover .card-btn svg {
  transform: translateX(6px);
}

/* Card Specifics */
.card.cafe h2 { color: var(--cafe-accent); }
.card.spa h2 { color: var(--spa-accent); }
.card.tourism h2 { color: var(--tourism-accent); }

/* --- Subpages --- */
.subpage-hero {
  padding: 10rem 0 6rem;
  text-align: center;
  background: transparent;
  border-bottom: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  animation: bgPan 20s infinite alternate linear;
}

.subpage-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: -1;
}

@keyframes bgPan {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.15) translate(-2%, 2%); }
}

.subpage-hero.cafe { border-bottom: 4px solid var(--cafe-accent); }
.subpage-hero.cafe::before { background-image: url('../assets/cafe_main.png'); }

.subpage-hero.spa { border-bottom: 4px solid var(--spa-accent); }
.subpage-hero.spa::before { background-image: url('../assets/spa_main.png'); }

.subpage-hero.tourism { border-bottom: 4px solid var(--tourism-accent); }
.subpage-hero.tourism::before { background-image: url('../assets/tourism_main.png'); }

.subpage-hero h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 1rem;
}

.subpage-hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 6rem;
}

.feature-box {
  background: var(--surface-white);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0;
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
}

.feature-img-wrapper {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  transform: translateZ(20px);
}

.feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.feature-box:hover .feature-img {
  transform: scale(1.05);
}

.feature-content {
  padding: 2.5rem;
  flex: 1;
  transform: translateZ(30px);
}

.feature-box h3 {
  font-size: 1.5rem;
  margin: 1rem 0;
}

/* --- Footer --- */
.main-footer {
  background: var(--surface-white);
  border-top: var(--glass-border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
}

.footer-contact h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-contact p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.5rem;
  line-height: 1.5;
}

.footer-contact a {
  transition: color var(--transition-fast);
}

.footer-contact a:hover {
  color: var(--brand-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  background: var(--surface-white);
  backdrop-filter: blur(20px);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 4rem;
  box-shadow: var(--glass-shadow);
  margin-bottom: 6rem;
  align-items: center;
}

@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 2.5rem;
  }
}

.contact-details h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-details p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(255, 138, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--brand-primary);
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-item a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

.contact-item a:hover {
  color: var(--brand-primary);
}

.map-card {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  header {
    padding: 1rem 0;
  }
  
  .logo-container {
    font-size: 1.1rem;
    gap: 0.5rem;
  }
  
  .logo-img {
    height: 32px;
  }
  
  .nav-link {
    font-size: 0.9rem;
    padding: 0.25rem;
  }

  .hero {
    padding: 8rem 0 4rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .blocks-grid {
    gap: 1.5rem;
    padding: 1rem 0 4rem;
  }

  .card {
    min-height: 320px;
    padding: 2rem 1.5rem;
  }

  .card-content {
    padding: 6rem 1.5rem 1.5rem;
  }

  .card h2 {
    font-size: 1.75rem;
  }

  .subpage-hero {
    padding: 7rem 0 3rem;
    margin-bottom: 3rem;
  }

  .subpage-hero h1 {
    font-size: 2.5rem;
  }

  .features-grid {
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .feature-content {
    padding: 1.5rem;
  }

  .main-footer {
    padding: 3rem 0 2rem;
    margin-top: 2rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact-wrapper {
    padding: 1.5rem;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .contact-details h2 {
    font-size: 2rem;
  }

  .map-card {
    height: 300px;
  }

  body::before,
  body::after {
    width: 80vw;
    height: 80vw;
    filter: blur(80px);
  }
}
