/*
Theme Name: Umutea
Theme URI: https://umutea.com
Author: Umutea Herbalism
Author URI: https://umutea.com
Description: A custom handcrafted WordPress theme for Umutea Herbalism - featuring an immersive, room-based navigation experience with hand-drawn elements and earthy botanical aesthetics.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: umutea
Tags: custom, herbalism, botanical, handcrafted, interactive

This theme was built from scratch with love and intention for Umutea.
*/

/* ========================================
   CSS CUSTOM PROPERTIES (COLOR PALETTE)
   ======================================== */

:root {
  /* Umutea Color Palette */
  --matrix: #b06056;
  --oxley: #779886;
  --double-colonial-white: #ecd9a3;
  --my-pink: #d4a085;
  --au-chico: #915851;
  --tacao: #ecbe8c;
  --cocoa-brown: #271c19;
  --eagle: #bdc0a6;
  --antique-brass: #cf7a67;
  --tumbleweed: #df9d75;
  --swamp-green: #b7c194;
  
  /* Font Stacks */
  --font-handwritten: 'Umutea', 'Brush Script MT', cursive;
  --font-body: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* ========================================
   FONT FACE DECLARATIONS
   ======================================== */

@font-face {
  font-family: 'Umutea';
  src: url('fonts/Umutea-Regular.woff2') format('woff2'),
       url('fonts/Umutea-Regular.woff') format('woff'),
       url('fonts/Umutea-Regular.ttf') format('truetype'),
       url('fonts/Umutea-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--cocoa-brown);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* ========================================
   TEXTURED BACKGROUND SYSTEM
   ======================================== */

.textured-bg {
  position: relative;
  background-color: var(--au-chico);
  background-image: url('images/texture-background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-blend-mode: multiply;
}

.textured-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--au-chico);
  opacity: 0.7;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Alternative background colors for different pages */
.textured-bg.bg-oxley {
  background-color: var(--oxley);
}

.textured-bg.bg-oxley::before {
  background-color: var(--oxley);
}

.textured-bg.bg-matrix {
  background-color: var(--matrix);
}

.textured-bg.bg-matrix::before {
  background-color: var(--matrix);
}

.textured-bg.bg-colonial-white {
  background-color: var(--double-colonial-white);
}

.textured-bg.bg-colonial-white::before {
  background-color: var(--double-colonial-white);
  opacity: 0.5;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-handwritten);
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

p {
  margin-bottom: 1rem;
}

.handwritten {
  font-family: var(--font-handwritten);
}

/* ========================================
   ENTRY DOOR PAGE
   ======================================== */

.entry-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: all 0.5s ease;
}

.entry-door-container {
  position: relative;
  z-index: 10;
  text-align: center;
  animation: fadeInDoor 1.5s ease-in-out;
}

@keyframes fadeInDoor {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.entry-door-image {
  max-width: 600px;
  width: 90%;
  margin: 0 auto;
  filter: drop-shadow(0 10px 30px rgba(39, 28, 25, 0.3));
  transition: transform 0.3s ease;
}

.entry-page:hover .entry-door-image {
  transform: scale(1.02);
}

.entry-text {
  font-family: var(--font-handwritten);
  font-size: 4rem;
  color: var(--cocoa-brown);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(39, 28, 25, 0.1);
  display: none; /* Hidden - text is in the door image */
}

/* Door opening animation */
.entry-page.opening {
  animation: fadeOut 1s ease-in-out forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

/* ========================================
   MAIN HUB (ROOM SELECTION)
   ======================================== */

.main-hub {
  min-height: 100vh;
  padding: 4rem 2rem;
  opacity: 0;
  animation: fadeIn 1s ease-in-out 0.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.hub-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hub-title {
  text-align: center;
  font-size: 5rem;
  color: var(--cocoa-brown);
  margin-bottom: 4rem;
  text-shadow: 0 2px 10px rgba(39, 28, 25, 0.1);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.room-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.room-card:hover {
  transform: translateY(-10px);
}

.room-image {
  width: 100%;
  filter: drop-shadow(0 10px 30px rgba(39, 28, 25, 0.2));
  transition: filter 0.3s ease;
}

.room-image img {
  width: 100%;
  height: auto;
  display: block;
}

.room-label {
  text-align: center;
  margin-top: 1.5rem;
  font-family: var(--font-handwritten);
  font-size: 2.5rem;
  color: var(--cocoa-brown);
}

/* ========================================
   INNER PAGES
   ======================================== */

.page-container {
  min-height: 100vh;
  padding: 4rem 2rem;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(39, 28, 25, 0.15);
}

.page-title {
  color: var(--au-chico);
  margin-bottom: 2rem;
  text-align: center;
}

/* ========================================
   NAVIGATION
   ======================================== */

.back-button {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: var(--font-handwritten);
  font-size: 1.5rem;
  color: var(--cocoa-brown);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(39, 28, 25, 0.2);
}

.back-button:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 1);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .hub-title {
    font-size: 3rem;
  }
  
  .entry-text {
    font-size: 3rem;
  }
  
  .entry-door-image {
    max-width: 90%;
    width: 100%;
  }
  
  .rooms-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .page-content {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .back-button {
    top: 1rem;
    left: 1rem;
    padding: 0.75rem 1.5rem;
    font-size: 1.2rem;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}
