/*
Theme Name:   Hello Elementor Child – Villa Small Paradise
Theme URI:    https://www.villa-smallparadise.gr
Description:  Child theme for Villa Small Paradise. Brand colors sampled from the official logo. Keep all custom CSS here so parent theme updates never overwrite it.
Author:       Villa Small Paradise / Luxury Rentals
Template:     hello-elementor
Version:      1.3.2
Text Domain:  hello-elementor-child
*/

/* =========================================================
   1. BRAND TOKENS (from the logo)
   ---------------------------------------------------------
   Leaf Green  #4A7019  – "Small Paradise", the garden
   Deep Navy   #252A51  – "Villa" script, night sky
   Ivory       #F7F5EF  – neoclassical marble, warm light
   Sage Mist   #E4EADD  – soft section backgrounds
   Aegean Gold #C9A96A  – buttons / accents (sunset luxury)
   Ink Grey    #3A3A3A  – body text
   ========================================================= */
:root {
  --vsp-green:  #4A7019;
  --vsp-navy:   #252A51;
  --vsp-ivory:  #F7F5EF;
  --vsp-sage:   #E4EADD;
  --vsp-gold:   #C9A96A;
  --vsp-ink:    #3A3A3A;
}

/* 2. Base refinements ------------------------------------ */
body {
  color: var(--vsp-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--vsp-navy);
  color: var(--vsp-ivory);
}

img { height: auto; }

a { transition: color .25s ease; }

/* 3. Reusable helper classes (add them in Elementor >
      Advanced > CSS Classes on any widget) ---------------- */

/* Small uppercase label above headings */
.vsp-eyebrow {
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--vsp-green);
}

/* Elegant hover lift for image boxes / cards */
.vsp-lift { transition: transform .35s ease, box-shadow .35s ease; }
.vsp-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(37, 42, 81, .12);
}

/* Buttons: calm by default, gold on hover (site-wide) */
.elementor-button {
  transition: all .3s ease;
  letter-spacing: 2px;
}

/* Thin gold rule, like the arcs in the logo */
.vsp-rule .elementor-divider-separator {
  border-color: var(--vsp-gold) !important;
}

/* Uniform photo grid — applies AUTOMATICALLY to every
   Elementor Basic Gallery on the site. Every thumbnail is
   cropped to the same 4:3 frame (no gaps), while the
   lightbox still opens the full, uncropped photo. */
.elementor-image-gallery .gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .5s ease;
}
.elementor-image-gallery .gallery-icon {
  overflow: hidden;               /* keeps the zoom inside the frame */
}
.elementor-image-gallery .gallery-item:hover img {
  transform: scale(1.05);
}

/* Optional per-widget tweaks (Advanced > CSS Classes):
   vsp-gal-top    -> crop keeps the TOP of the photo
   vsp-gal-square -> square 1:1 thumbnails instead of 4:3 */
.vsp-gal-top .gallery-item img    { object-position: top; }
.vsp-gal-square .gallery-item img { aspect-ratio: 1 / 1; }

/* 4. Single article (blog post) styling ------------------ */

/* Readable column */
body.single-post .site-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 22px 90px;
}

/* Title */
body.single-post h1.entry-title,
body.single-post .page-header h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.2;
  color: var(--vsp-navy);
  text-align: center;
  margin: 30px 0 10px;
}

/* Date */
.vsp-article-meta {
  text-align: center;
  margin: 0 0 30px;
}
.vsp-article-meta time {
  font-family: "Jost", sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--vsp-green);
}

/* Featured image */
.vsp-article-hero {
  margin: 0 0 40px;
}
.vsp-article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Body typography */
body.single-post .site-main p,
body.single-post .site-main li {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.85;
  color: var(--vsp-ink);
}
body.single-post .site-main h2,
body.single-post .site-main h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  color: var(--vsp-navy);
  margin: 44px 0 14px;
}
body.single-post .site-main h2 { font-size: 30px; }
body.single-post .site-main h3 { font-size: 24px; }

body.single-post .site-main a {
  color: var(--vsp-green);
  text-decoration: none;
  border-bottom: 1px solid var(--vsp-gold);
}
body.single-post .site-main a:hover {
  color: var(--vsp-navy);
  border-color: var(--vsp-navy);
}

body.single-post .site-main img {
  max-width: 100%;
  height: auto;
  margin: 26px 0;
}

body.single-post .site-main blockquote {
  border-left: 3px solid var(--vsp-gold);
  background: var(--vsp-ivory);
  margin: 30px 0;
  padding: 22px 28px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 21px;
  color: var(--vsp-navy);
}
body.single-post .site-main blockquote p {
  font-family: inherit;
  font-size: inherit;
  margin: 0;
}

/* Related articles under the post */
.vsp-article-related {
  margin-top: 70px;
  padding-top: 50px;
  border-top: 1px solid var(--vsp-sage);
}

@media (max-width: 640px) {
  body.single-post h1.entry-title,
  body.single-post .page-header h1 { font-size: 32px; }
}

/* 5. Sticky (fixed) header ------------------------------- */
/* position:sticky breaks when any ancestor has overflow
   hidden (Hello/Elementor set this on the #page wrapper),
   so we use position:fixed instead. The class
   vsp-header-fixed is added by our JS, which also measures
   the header height and pads the body so nothing jumps.
   On scroll, the navy top bar folds away — add the class
   vsp-topbar to that section (Advanced > CSS Classes). */
body.vsp-header-fixed header#masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 990;
}
body.vsp-header-fixed.admin-bar header#masthead {
  top: 32px;                       /* below the WP admin bar */
}
@media (max-width: 782px) {
  body.vsp-header-fixed.admin-bar header#masthead { top: 46px; }
}

.vsp-topbar {
  max-height: 90px;
  overflow: hidden;
  transition: max-height .35s ease, opacity .35s ease, padding .35s ease;
}
body.vsp-scrolled .vsp-topbar {
  max-height: 0 !important;
  opacity: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.vsp-scrolled header#masthead {
  box-shadow: 0 6px 24px rgba(37, 42, 81, .12);
}

/* 6. Back to top button ---------------------------------- */
.vsp-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 980;
  width: 46px;
  height: 46px;
  border: 1px solid var(--vsp-gold);
  background: var(--vsp-navy);
  color: var(--vsp-gold);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .35s ease;
}
.vsp-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.vsp-top:hover,
.vsp-top:focus-visible {
  background: var(--vsp-gold);
  color: var(--vsp-navy);
}
@media (max-width: 640px) {
  .vsp-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* 7. Quality floor --------------------------------------- */
:focus-visible {
  outline: 2px solid var(--vsp-gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
