/*
Theme Name: Can Toni d'Atzaró 2027
Theme URI: https://cantoniatzaro.com/
Author: Can Toni d'Atzaró
Description: Tema de bloques ligero y autónomo para Can Toni d'Atzaró. No depende de WPBakery, Slider Revolution ni Fleurdesel.
Version: 0.5.7
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: can-toni-atzaro-2027
*/

:root {
  --cta-shadow-soft: 0 18px 50px rgba(24, 36, 29, 0.10);
  --cta-shadow-card: 0 12px 32px rgba(24, 36, 29, 0.12);
  --cta-radius-sm: 10px;
  --cta-radius-md: 18px;
  --cta-radius-lg: 30px;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.admin-bar .cta-site-header {
  top: 32px;
}

a {
  text-underline-offset: 0.2em;
}

.cta-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(30, 41, 35, 0.10);
  box-shadow: 0 6px 24px rgba(30, 41, 35, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cta-site-header .wp-block-navigation-item__content {
  text-decoration: none;
}

.cta-site-header .wp-block-navigation-item__content:hover,
.cta-site-header .wp-block-navigation-item__content:focus-visible {
  color: var(--wp--preset--color--terracotta);
}

.cta-site-header .wp-block-image img {
  display: block;
  height: auto;
}

.cta-header-button .wp-block-button__link {
  white-space: nowrap;
}

.cta-site-header .cta-nav-availability {
  display: none !important;
}

.cta-hero {
  min-height: clamp(620px, 82vh, 860px);
}

.cta-hero .wp-block-cover__image-background {
  filter: saturate(0.88) contrast(1.03);
}

.cta-hero .wp-block-cover__inner-container {
  width: 100%;
}

.cta-hero-panel {
  max-width: 760px;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--cta-radius-lg);
  background: rgba(24, 36, 29, 0.64);
  box-shadow: var(--cta-shadow-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cta-eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cta-trust-strip {
  position: relative;
  z-index: 2;
  margin-top: -1px;
}

.cta-trust-strip .wp-block-column {
  padding: 1rem 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.cta-trust-strip .wp-block-column:last-child {
  border-right: 0;
}

.cta-section {
  padding-top: clamp(4.5rem, 8vw, 8rem);
  padding-bottom: clamp(4.5rem, 8vw, 8rem);
}

.cta-section-tight {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.cta-intro-image img,
.cta-experience-card img,
.cta-room-card img,
.cta-gallery-grid img {
  width: 100%;
  object-fit: cover;
}

.cta-intro-image img {
  min-height: 520px;
  border-radius: var(--cta-radius-lg);
  box-shadow: var(--cta-shadow-soft);
}

.cta-room-card,
.cta-experience-card,
.cta-amenity-card,
.cta-testimonial-card,
.cta-booking-panel {
  overflow: hidden;
  border: 1px solid rgba(30, 41, 35, 0.10);
  border-radius: var(--cta-radius-md);
  box-shadow: var(--cta-shadow-card);
}

.cta-room-card {
  height: 100%;
  background: var(--wp--preset--color--paper);
}

/* Responsive and accessibility polish — 2026-09-14 */
.cta-site-header {
  border-bottom: 0;
}

.cta-booking-slot {
  border: 0 !important;
  outline: 0 !important;
}

@media (min-width: 782px) and (max-width: 1024px) {
  body.page-id-101 main .wp-block-columns {
    flex-wrap: wrap !important;
  }

  body.page-id-101 main .wp-block-columns > .wp-block-column {
    flex-basis: calc(50% - 0.75rem) !important;
    flex-grow: 0;
  }

  body.page-id-101 .cta-testimonial-card {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
}

@media (max-width: 781px) {
  body.page-id-101 .cta-testimonial-card {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }
}

/* Keyboard focus and touch targets — 2026-09-14 */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px #111 !important;
}

@media (max-width: 1024px) {
  .cta-site-header .wp-block-navigation-item__content,
  .cta-site-footer a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
}
