/*
Theme Name: Velos Constructions
Theme URI: https://www.velostec.com/
Description: Flatsome child theme for Velos Constructions — luxury residence construction in Athens, Paros & Antiparos. Ships the approved mockup design as UX Builder elements (one category per page).
Author: Velos Constructions
Template: flatsome
Version: 1.1.4
*/

/* Design CSS lives in assets/velos.css (enqueued by functions.php).
   Small WordPress-integration overrides only below this line. */

/* Flatsome page wrappers must not constrain or pad the full-bleed sections. */
body.velos #main,
body.velos #content {
  padding: 0;
  background: var(--velos-cream, #F1EBE3);
}
body.velos .page-wrapper {
  padding-top: 0;
  padding-bottom: 0;
}

/* Polylang language links: same look as the mockup's <button> toggles
   (custom.css only targets `.velos-lang button` / `.d-lang button`). */
body.velos .velos-lang a {
  width: 38px; height: 38px; min-height: 0; border-radius: 50%; overflow: hidden; border: 0; margin: 0; padding: 0; cursor: pointer;
  background: transparent; display: flex; align-items: center; justify-content: center; line-height: 0; flex: 0 0 auto;
  opacity: .45; filter: grayscale(.35); transition: opacity .4s var(--ease), filter .4s var(--ease), transform .4s var(--ease);
}
body.velos .velos-lang a svg { width: 29px; height: 29px; display: block; }
body.velos .velos-lang a:hover { opacity: .8; filter: none; transform: translateY(-1px); }
body.velos .velos-lang a.active { opacity: 1; filter: none; }
body.velos .velos-drawer-foot .d-lang a {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden; border: 0; padding: 0; background: transparent; cursor: pointer;
  opacity: .45; filter: grayscale(.35); transition: .3s var(--ease); display: flex;
}
body.velos .velos-drawer-foot .d-lang a.active { opacity: 1; filter: none; }
body.velos .velos-drawer-foot .d-lang a svg { width: 36px; height: 36px; display: block; }
@media (max-width: 849px) {
  body.velos .velos-lang a svg { width: 24px; height: 24px; }
}
@media (max-width: 360px) {
  body.velos .velos-drawer-foot .d-lang a { width: 32px; height: 32px; }
  body.velos .velos-drawer-foot .d-lang a svg { width: 32px; height: 32px; }
}

/* ---- Journal templates (home.php / archive.php / single.php) ----------
   velos.css styles the mockup's client-side pagination (.blog-pagination
   button); the templates use real WP pagination links — same look. */
body.velos .blog-pagination a.page-numbers,
body.velos .blog-pagination span.page-numbers {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--velos-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--velos-font-head); font-size: 15px; color: var(--velos-text);
  text-decoration: none; transition: background .25s, border-color .25s, color .25s;
}
body.velos .blog-pagination a.page-numbers:hover { border-color: var(--velos-secondary); color: var(--velos-secondary); }
body.velos .blog-pagination span.page-numbers.current { background: var(--velos-text); border-color: var(--velos-text); color: var(--velos-cream); }
body.velos .blog-pagination span.page-numbers.dots { border: 0; width: auto; }

/* Gutenberg content inside .velos-article: images get the .art-img look. */
body.velos .velos-article figure.wp-block-image,
body.velos .velos-article p > img {
  margin: 36px 0; border-radius: var(--r-lg); overflow: hidden;
}
body.velos .velos-article figure.wp-block-image img { width: 100%; height: auto; display: block; border-radius: var(--r-lg); }
body.velos .velos-article figure.wp-block-image figcaption {
  font-family: var(--velos-font-head); font-size: 14px; letter-spacing: .04em;
  color: var(--velos-secondary); text-align: center; margin-top: 12px;
}
body.velos .velos-article blockquote {
  font-family: var(--velos-font-head); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4;
  color: var(--velos-text); border-left: 3px solid var(--velos-secondary);
  padding: 6px 0 6px 26px; margin: 36px 0;
}
body.velos .velos-article blockquote p { font-size: inherit; color: inherit; margin: 0; }

/* ---- Contact Form 7 inside the Velos form designs -------------------
   CF7 wraps every control in <span class="wpcf7-form-control-wrap">; these
   rules make that wrapper invisible to the layout so .cta-form (modal) and
   .velos-form.float-labels (contact page) render exactly like the mockup. */
body.velos .wpcf7-form .wpcf7-form-control-wrap { display: block; width: 100%; position: static; }
body.velos .wpcf7-form .field input:not([type=checkbox]):not([type=radio]),
body.velos .wpcf7-form .field textarea,
body.velos .wpcf7-form .field select { width: 100%; }

/* acceptance checkbox → same look as the mockup .consent row */
body.velos .wpcf7-form .consent .wpcf7-form-control-wrap { width: auto; }
body.velos .wpcf7-form .consent .wpcf7-list-item { margin: 0; }
body.velos .wpcf7-form .consent .wpcf7-acceptance label { display: flex; align-items: center; gap: 12px; cursor: pointer; font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; }
body.velos .wpcf7-form .consent a { color: var(--velos-secondary); text-decoration: underline; }

/* native select in the floating-label form gets the gold chevron */
body.velos .velos-form .field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23BA9F67'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%209l6%206%206-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; background-size: 14px;
}

/* CF7 submit renders as <input> — pseudo-element hover fill can't apply, so
   pin the solid v-btn look explicitly (field styling must never catch it). */
body.velos .wpcf7-form input.v-btn { appearance: none; -webkit-appearance: none; cursor: pointer; }
body.velos .wpcf7-form input.v-btn.on-light {
  background: var(--velos-text) !important;
  border: 1px solid var(--velos-text) !important;
  color: var(--velos-cream) !important;
  box-shadow: none;
}
body.velos .wpcf7-form input.v-btn.on-light:hover {
  background: var(--velos-secondary) !important;
  border-color: var(--velos-secondary) !important;
  transform: translateY(-2px);
}
body.velos .wpcf7-form input.v-btn.on-dark {
  background: transparent !important;
  border: 1px solid var(--velos-cream) !important;
  color: var(--velos-cream) !important;
}
body.velos .wpcf7-form input.v-btn.on-dark:hover {
  background: var(--velos-cream) !important;
  color: var(--velos-text) !important;
  transform: translateY(-2px);
}

/* validation + response messages, styled for both light and modal contexts */
body.velos .wpcf7-form .wpcf7-not-valid-tip {
  display: block; margin-top: 6px;
  font-family: var(--velos-font-head); font-size: 12px; letter-spacing: .04em; color: #b3563e;
}
body.velos .wpcf7 .wpcf7-response-output {
  margin: 16px 0 0; padding: 12px 18px; border: 1px solid var(--velos-secondary); border-radius: 12px;
  font-family: var(--velos-font-head); font-size: 14px; letter-spacing: .02em; color: var(--velos-text);
}
body.velos .velos-modal .wpcf7 .wpcf7-response-output { color: var(--velos-text); background: #fff; }
body.velos .wpcf7 form.invalid .wpcf7-response-output,
body.velos .wpcf7 form.failed .wpcf7-response-output { border-color: #b3563e; color: #b3563e; }
body.velos .wpcf7-spinner { margin: 0 0 0 10px; }

/* ---- .cta-form on LIGHT surfaces -------------------------------------
   The default .cta-form palette (cream labels/inputs) is designed for the
   dark popup/CTA context. On light backgrounds it becomes unreadable.
   These overrides mirror the modal's light styling and apply automatically
   inside the contact page section — or anywhere by adding the `form-light`
   class to the wrapper: <div class="cta-form form-light">. */
body.velos .velos-contactpage .cta-form label,
body.velos .cta-form.form-light label { color: var(--velos-secondary); }

body.velos .velos-contactpage .cta-form input:not([type=submit]):not([type=checkbox]):not([type=radio]),
body.velos .velos-contactpage .cta-form textarea,
body.velos .velos-contactpage .cta-form select,
body.velos .cta-form.form-light input:not([type=submit]):not([type=checkbox]):not([type=radio]),
body.velos .cta-form.form-light textarea,
body.velos .cta-form.form-light select {
  background: #fff; border: 1px solid var(--velos-line); color: var(--velos-text); box-shadow: none;
}
body.velos .velos-contactpage .cta-form input::placeholder,
body.velos .velos-contactpage .cta-form textarea::placeholder,
body.velos .cta-form.form-light input::placeholder,
body.velos .cta-form.form-light textarea::placeholder { color: #9aa08f; }

body.velos .velos-contactpage .cta-form input:not([type=submit]):focus,
body.velos .velos-contactpage .cta-form textarea:focus,
body.velos .velos-contactpage .cta-form select:focus,
body.velos .cta-form.form-light input:not([type=submit]):focus,
body.velos .cta-form.form-light textarea:focus,
body.velos .cta-form.form-light select:focus {
  border-color: var(--velos-secondary) !important; background-color: #fff; outline: none; box-shadow: none !important;
}

body.velos .velos-contactpage .cta-form .select-wrap::after,
body.velos .cta-form.form-light .select-wrap::after {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23BA9F67'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%209l6%206%206-6'/%3E%3C/svg%3E");
}

body.velos .velos-contactpage .cta-form .consent,
body.velos .cta-form.form-light .consent { color: #4a5340; }
body.velos .velos-contactpage .cta-form .consent input,
body.velos .cta-form.form-light .consent input { accent-color: var(--velos-secondary); }
body.velos .velos-contactpage .cta-form .consent a,
body.velos .cta-form.form-light .consent a { color: var(--velos-secondary) !important; }
body.velos .velos-contactpage .cta-form .form-note,
body.velos .cta-form.form-light .form-note { color: var(--velos-secondary); }

/* the glass card wrapper reads as a washed-out box on cream — flatten it */
body.velos .velos-contactpage .cta-form,
body.velos .cta-form.form-light {
  background: transparent; border: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  padding: 0; border-radius: 0; margin-top: 26px;
}
body.velos .velos-contactpage .cta-form .submit-row,
body.velos .cta-form.form-light .submit-row { justify-content: flex-start; }

/* ---- Field geometry re-assert -----------------------------------------
   Flatsome styles inputs globally (square corners, inset shadow, fixed
   height) and can win the specificity tie on CF7 fields — some fields end
   up square while selects stay rounded. Re-assert the Velos geometry last
   so every field matches the design, everywhere. */
body.velos .cta-form input:not([type=submit]):not([type=checkbox]):not([type=radio]),
body.velos .cta-form textarea,
body.velos .cta-form select {
  border-radius: 14px !important;
  padding: 14px 16px;
  height: auto;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  box-sizing: border-box;
  width: 100%;
}
body.velos .cta-form select { padding-right: 44px; }

/* compact version inside the popup modal */
body.velos .velos-modal .cta-form input:not([type=submit]):not([type=checkbox]):not([type=radio]),
body.velos .velos-modal .cta-form textarea,
body.velos .velos-modal .cta-form select {
  border-radius: 12px !important;
  padding: 11px 15px;
}
body.velos .velos-modal .cta-form select { padding-right: 44px; }

/* floating-label form keeps its underline style (no boxes, no radius) */
body.velos .velos-form .field input:not([type=submit]):not([type=checkbox]):not([type=radio]),
body.velos .velos-form .field textarea,
body.velos .velos-form .field select {
  background-color: transparent;
  border: 0;
  border-bottom: 1.5px solid rgba(35, 31, 32, .18);
  border-radius: 0 !important;
  padding: 18px 0 10px;
  height: auto;
  margin: 0;
  box-shadow: none;
  box-sizing: border-box;
  width: 100%;
}
body.velos .velos-form .field select { padding-right: 26px; }
body.velos .velos-form .field input:focus,
body.velos .velos-form .field textarea:focus,
body.velos .velos-form .field select:focus { border-color: var(--velos-secondary); }
