/*
Theme Name: Casteli Modern
Theme URI: https://www.casteli.gr/
Author: Casteli Hotel
Description: Lightweight, accessible bilingual theme for Casteli Hotel in Skala, Patmos.
Version: 1.0.0
Text Domain: casteli
*/

:root {
  --ink: #321f24;
  --muted: #6e5d60;
  --sea: #743044;
  --sea-dark: #4b1827;
  --aqua: #f1e3ca;
  --sand: #f7eee4;
  --paper: #fffaf4;
  --white: #fff;
  --coral: #b1843f;
  --line: rgba(93, 39, 50, 0.16);
  --shadow: 0 20px 55px rgba(71, 25, 37, 0.14);
  --radius: 18px;
  --content: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: var(--sea);
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #c3944d;
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0 0 0.65em;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.45rem, 6vw, 5.25rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

p,
ul {
  margin: 0 0 1.2rem;
}

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 40px), 820px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(93, 39, 50, 0.98);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(44vw, 190px);
}

.brand img {
  width: auto;
  max-width: 100%;
  height: 52px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
}

.site-nav .booking-link,
.button-primary {
  background: var(--coral);
  color: #321820;
}

.site-nav .booking-link:hover,
.button-primary:hover {
  background: #c79a54;
  color: #321820;
}

.language-link {
  min-width: 42px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  flex: 0 0 46px;
  position: relative;
  z-index: 110;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: auto;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.nav-toggle-lines::before {
  transform: translateY(-6px);
}

.nav-toggle-lines::after {
  transform: translateY(4px);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100svh - 82px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--sea-dark);
  color: var(--white);
}

.hero-media,
.hero-media::after {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media::after {
  content: "";
  background: linear-gradient(90deg, rgba(58, 18, 30, 0.9) 0%, rgba(74, 25, 40, 0.5) 55%, rgba(74, 25, 40, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding-block: clamp(90px, 14vw, 170px) clamp(70px, 10vw, 115px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--sea);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #f1d9ad;
}

.eyebrow::before {
  width: 35px;
  height: 2px;
  background: #b1843f;
  content: "";
}

.hero h1 {
  max-width: 760px;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.22);
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.button-secondary:hover {
  background: var(--white);
  color: var(--sea-dark);
}

.status-notice {
  border-bottom: 1px solid #dfc493;
  background: #fff6e8;
  color: #5c3215;
}

.status-notice .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-block: 13px;
  font-size: 0.93rem;
  font-weight: 700;
  text-align: center;
}

.status-notice p {
  margin: 0;
}

.feature-strip {
  position: relative;
  z-index: 2;
  margin-top: -34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.feature {
  padding: 24px 22px;
  border-right: 1px solid var(--line);
}

.feature:last-child {
  border-right: 0;
}

.feature strong {
  display: block;
  color: var(--sea-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.feature span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding-block: clamp(70px, 10vw, 120px);
}

.section-sand {
  background: var(--sand);
}

.section-aqua {
  background: var(--aqua);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(36px, 7vw, 88px);
}

.split-media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.check-list,
.amenity-grid,
.contact-list,
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  margin-block: 24px 30px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li::before {
  position: absolute;
  top: 0.1em;
  left: 0;
  color: var(--sea);
  content: "✓";
  font-weight: 900;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 38px rgba(71, 25, 37, 0.09);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 25px;
}

.card-body p {
  color: var(--muted);
}

.text-link {
  font-weight: 750;
}

.page-hero {
  padding-block: clamp(32px, 4vw, 50px);
  background: linear-gradient(135deg, var(--sea-dark), var(--sea));
  color: var(--white);
  text-align: center;
}

.page-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-hero .eyebrow {
  justify-content: center;
  margin-bottom: 10px;
}

.page-hero h1 {
  max-width: 820px;
  margin-bottom: 0.22em;
  font-size: clamp(2.1rem, 3.8vw, 3.4rem);
}

.page-hero h1:last-child {
  margin-bottom: 0;
}

.page-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.entry-content {
  padding-block: clamp(48px, 6.5vw, 78px);
}

.entry-content > * {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
}

.entry-content > .wide,
.entry-content > .gallery-grid,
.entry-content > .contact-grid {
  max-width: var(--content);
}

.page-content > :not(.wide):not(.amenity-grid) {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
}

.page-content > .wide,
.page-content > .amenity-grid {
  margin-right: auto;
  margin-left: auto;
}

.entry-content h2 {
  margin-top: 1.15em;
}

.entry-content .section-heading h2,
.page-content > h2:first-child,
.page-content > .wide:first-child h2:first-child {
  margin-top: 0;
}

.entry-content .section-heading {
  margin-bottom: 34px;
}

.entry-content h3 {
  margin-top: 1.5em;
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: var(--content);
  margin-block: 35px;
}

.amenity-grid li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.room-photo-section {
  margin-top: clamp(50px, 7vw, 85px);
  padding-top: clamp(42px, 6vw, 70px);
  border-top: 1px solid var(--line);
}

.room-photo-section .section-heading {
  max-width: 720px;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--aqua);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 260ms ease;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.booking-form,
.contact-card {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 38px rgba(71, 25, 37, 0.09);
}

.booking-form label {
  display: block;
  margin-bottom: 18px;
  color: var(--ink);
  font-weight: 700;
}

.booking-form input:not([type="checkbox"]),
.booking-form textarea,
.booking-form select {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #b8a7a2;
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.booking-form textarea {
  min-height: 140px;
  resize: vertical;
}

.booking-form input[type="submit"] {
  min-height: 50px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  color: #321820;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.booking-form input[type="submit"]:hover {
  background: #c79a54;
}

.booking-form .wpcf7-acceptance label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-card {
  position: sticky;
  top: 110px;
  background: var(--sea-dark);
  color: var(--white);
}

.contact-card a {
  color: var(--white);
}

.contact-list li {
  padding-block: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

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

.contact-list span {
  display: block;
  color: #e1c89c;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cta-band {
  padding-block: 60px;
  background: var(--sea);
  color: var(--white);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-inner h2,
.cta-inner p {
  margin-bottom: 0;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  padding-block: 64px 28px;
  border-top: 3px solid #ab783e;
  background: #5c2637;
  color: #f0dfd8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 48px;
}

.footer-brand img {
  width: 210px;
  margin-bottom: 18px;
}

.site-footer h2 {
  color: #e3bd75;
  font-family: inherit;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.site-footer a:hover {
  color: #e8c98f;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(227, 189, 117, 0.38);
  font-size: 0.88rem;
}

.error-page {
  min-height: 55vh;
  display: grid;
  place-items: center;
  padding-block: 90px;
  text-align: center;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

@media (min-width: 700px) {
  .page-content > p,
  .page-content > .wide.split > div > p,
  .section > .container.split > div > p {
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 72px;
    gap: 16px;
  }

  .brand {
    max-width: min(58vw, 170px);
  }

  .brand img {
    width: auto;
    height: 46px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    visibility: visible;
    opacity: 1;
  }

  .site-nav {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    max-height: calc(100svh - 72px);
    overflow-y: auto;
    padding: 22px;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: #4b1827;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 16px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature:nth-child(2) {
    border-right: 0;
  }

  .feature:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    position: static;
  }

  .card-grid,
  .amenity-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container,
  .narrow {
    width: min(calc(100% - 28px), var(--content));
  }

  .header-inner {
    min-height: 72px;
  }

  .brand {
    max-width: min(58vw, 150px);
  }

  .brand img {
    width: auto;
    height: 40px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .site-nav {
    inset: 72px 0 auto;
    max-height: calc(100svh - 72px);
  }

  .hero {
    min-height: 650px;
  }

  .hero-media img {
    object-position: 62% center;
  }

  .hero-media::after {
    background: linear-gradient(0deg, rgba(58, 18, 30, 0.95) 0%, rgba(74, 25, 40, 0.46) 80%);
  }

  .feature-strip {
    margin-top: 0;
    padding-top: 14px;
  }

  .feature-grid,
  .card-grid,
  .amenity-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature:last-child {
    border-bottom: 0;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .cta-inner,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
