/*
 * Theologos Place — Cycladic Luxury Theme
 * Palette: White, Sand, Deep Aegean Blue, Gold Accents.
 */

/* =========================================
   1. VARIABLES & FOUNDATIONS
   ========================================= */
:root {
  /* Colors - Cycladic Palette */
  --c-white: #ffffff;
  --c-white-off: #f9f9fa;
  --c-sand: #e8e4dc;
  --c-sand-light: #f4f1ed;

  --c-blue-deep: #002B49;
  /* Aegean Deep */
  --c-blue-primary: #004e80;
  --c-blue-soft: #e0f2ff;

  --c-gold: #c5a059;
  --c-gold-hover: #d4b06a;

  --c-text-main: #1a2c38;
  --c-text-muted: #6b7c8c;
  --c-text-light: #9baab8;

  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  /* Spacing & Layout */
  --header-height: 80px;
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 43, 73, 0.05);
  --shadow-md: 0 12px 32px rgba(0, 43, 73, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 43, 73, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--c-text-main);
  background: var(--c-white-off);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--c-blue-deep);
  line-height: 1.2;
}

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

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

ul {
  list-style: none;
}

/* Utilities */
.container {
  width: min(var(--max-width), 90vw);
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

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

.muted {
  color: var(--c-text-muted);
}

/* =========================================
   2. TYPOGRAPHY & BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--c-blue-deep);
  color: var(--c-white);
  box-shadow: 0 10px 20px rgba(0, 43, 73, 0.2);
}

.btn.primary:hover {
  background: var(--c-blue-primary);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 43, 73, 0.25);
}

.btn.ghost {
  background: transparent;
  border-color: var(--c-blue-deep);
  color: var(--c-blue-deep);
}

.btn.ghost:hover {
  background: var(--c-blue-deep);
  color: var(--c-white);
}

/* =========================================
   3. HEADER
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-blue-deep);
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--c-gold);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-text-main);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-gold);
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--c-blue-deep);
}

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

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f0f8ff;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 43, 73, 0.3);
  /* Slight dark blue tint for readability */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  color: var(--c-white);
  /* White text on video */
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-inline: auto;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* =========================================
   5. FEATURES / ABOUT
   ========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  background: var(--c-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: 0.3s ease;
  text-align: center;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--c-gold);
  margin-bottom: 1rem;
  display: block;
}

/* =========================================
   6. ROOMS
   ========================================= */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.room-card {
  background: var(--c-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.room-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.room-image {
  height: 240px;
  background: #eee;
  overflow: hidden;
}

.room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.room-card:hover .room-image img {
  transform: scale(1.05);
}

.room-details {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.room-details h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.room-details p {
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.room-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.room-price {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-blue-deep);
}

/* =========================================
   7. GALLERY
   ========================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: 200px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Masonry variations just for fun */
.gallery-item:nth-child(3n+1) {
  grid-column: span 2;
  grid-row: span 2;
}

/* =========================================
   8. FOOTER
   ========================================= */
.site-footer {
  background: var(--c-blue-deep);
  color: var(--c-white);
  padding: 4rem 0 2rem;
}

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

.footer-col h4 {
  color: var(--c-gold);
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 0.8rem;
}

.footer-col a:hover {
  color: var(--c-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   9. MODAL & UTILS
   ========================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 43, 73, 0.6);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  z-index: 10;
  background: var(--c-white);
  padding: 3rem;
  width: min(500px, 90vw);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.open .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--c-text-muted);
}

/* Inputs */
input,
select,
textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-family: inherit;
  transition: 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--c-blue-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 78, 128, 0.1);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease;
}

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