/*
Theme Name: Horizon Iraklia
Theme URI: https://iraklia-horizon.com/
Author: Nikolaos Benveniste
Author URI: https://nbenveniste.gr/
Description: Στούντιο στην Ηρακλειά. Βίντεο στην αρχή, δωμάτια και άρθρα του νησιού.
Version: 1.0.0
Requires at least: 6.0
Text Domain: horizon-iraklia
*/

:root {
  --ink: #1c2826;
  --muted: #5c6b68;
  --line: #e4ddd2;
  --paper: #f6f3ed;
  --white: #fffcf8;
  --sea: #12383f;
  --sea-deep: #0c282e;
  --petrol: #1d6a72;
  --petrol-dark: #15555c;
  --sand: #efe6d6;
  --header: 4.6rem;
  --wrap: 72rem;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

a { color: var(--petrol-dark); }

a:hover { color: var(--sea); }

h1, h2, h3, .logo-fallback {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p { margin: 0 0 1rem; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: #fff;
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--wrap), calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 252, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  height: 3.15rem;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem 1.15rem;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--petrol); }

.header-call {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--petrol);
  color: #fff !important;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.header-call:hover { background: var(--petrol-dark); color: #fff !important; }

.hero {
  position: relative;
  min-height: 28rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--sea-deep);
  color: #fff;
}

.hero__media,
.hero__still,
.hero__video {
  position: absolute;
  inset: 0;
}

.hero__still {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video {
  z-index: 0;
  container-type: size;
  overflow: hidden;
}

.hero__video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 0;
  pointer-events: none;
  width: max(100cqw, 177.78cqh);
  height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%) scale(1.04);
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 24, 28, 0.12) 0%, rgba(8, 24, 28, 0.18) 42%, rgba(8, 24, 28, 0.78) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(var(--wrap), calc(100% - 2.4rem));
  margin-inline: auto;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4.5rem 0 2.6rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f3e6cf;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 560;
  color: #fff;
}

.hero__lead {
  max-width: 38rem;
  margin: 1rem 0 0;
  font-size: 1.12rem;
  line-height: 1.6;
  color: rgba(255, 252, 248, 0.92);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-light {
  background: #fff;
  color: var(--sea);
}

.btn-light:hover { background: var(--sand); color: var(--sea); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.btn-sea {
  background: var(--petrol);
  color: #fff;
}

.btn-sea:hover { background: var(--petrol-dark); color: #fff; }

.ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.ratings li,
.ratings a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 252, 248, 0.12);
  border: 1px solid rgba(255, 252, 248, 0.22);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.92rem;
}

.ratings strong { font-weight: 650; }

.section { padding: 4.2rem 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.kicker {
  margin: 0 0 0.35rem;
  color: var(--petrol);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: start;
}

.prose { font-size: 1.08rem; }

.prose p:last-child { margin-bottom: 0; }

.facts {
  margin: 0;
  padding: 1.2rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  list-style: none;
}

.facts li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.facts li:last-child { border-bottom: 0; }

.rooms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.room-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

.room-card:hover { border-color: #cfc4b2; color: inherit; }

.room-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--sand);
}

.room-card div { padding: 0.95rem 1rem 1.1rem; }

.room-card small {
  display: block;
  color: var(--petrol);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.room-card h3 {
  margin: 0.25rem 0 0.35rem;
  font-size: 1.35rem;
}

.room-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.band {
  background: var(--sea);
  color: #f6f3ed;
}

.band a { color: #f3e6cf; }

.articles {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 100%;
}

.article-card:first-child { grid-row: span 2; }

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--sand);
}

.article-card:first-child img { aspect-ratio: 16 / 11; min-height: 14rem; }

.article-card div { padding: 1rem 1.05rem 1.15rem; }

.article-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

.article-card p {
  margin: 0;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.08rem;
}

.contact-list li { margin: 0 0 0.7rem; }

.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.page-hero {
  padding: 2.6rem 0 0.4rem;
}

.page-hero h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
}

.entry {
  padding-bottom: 3.5rem;
}

.entry-body {
  max-width: 44rem;
  font-size: 1.08rem;
}

.entry-body img { border-radius: 0.8rem; }

.room-hero {
  margin: 0 0 1.4rem;
  border-radius: 1.15rem;
  overflow: hidden;
  background: var(--sand);
}

.room-hero img {
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
  display: block;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.8rem;
  display: block;
}

.site-footer {
  background: var(--sea-deep);
  color: #d7e2e0;
  padding: 2.4rem 0 1.4rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer a { color: #f3e6cf; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal {
  margin-top: 1.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: #b7c6c3;
}

.gdlr-room-price,
.gdlr-reservation-bar { display: none !important; }

@media (min-width: 768px) {
  .hero { min-height: clamp(34rem, 82vh, 52rem); }
}

@media (max-width: 960px) {
  .rooms,
  .articles,
  .intro-grid,
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .article-card:first-child { grid-row: auto; }
}

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; padding: 0.55rem 0; }
  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.55rem;
  }
  .header-call { margin-left: auto; }
  .rooms,
  .articles,
  .intro-grid,
  .contact-grid,
  .gallery { grid-template-columns: 1fr; }
  .hero h1 { max-width: 12ch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__video { display: none; }
}
