/*
Theme Name: Everything Ibiza
Theme URI: https://everythingibiza.com
Author: Everything Ibiza
Author URI: https://everythingibiza.com
Description: Custom classic WordPress theme with ACF flexible sections and Property CPT.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: everything-ibiza
*/

/* Intentionally minimal. Most styling is from Tailwind CDN classes in templates. */

/* Brand color tokens used by Tailwind utility fallback classes. */
:root {
  --ei-forest-rgb: 96 148 182;
  --ei-sand-rgb: 245 245 239;
  --ei-amber-rgb: 164 191 209;
}

/* Fallbacks for custom Tailwind color utilities (forest/sand/amber). */
.text-forest { color: rgb(var(--ei-forest-rgb)) !important; }
.text-forest\/70 { color: rgb(var(--ei-forest-rgb) / 0.7) !important; }
.text-forest\/80 { color: rgb(var(--ei-forest-rgb) / 0.8) !important; }
.text-sand { color: rgb(var(--ei-sand-rgb)) !important; }
.text-sand\/60 { color: rgb(var(--ei-sand-rgb) / 0.6) !important; }
.text-sand\/70 { color: rgb(var(--ei-sand-rgb) / 0.7) !important; }
.text-sand\/80 { color: rgb(var(--ei-sand-rgb) / 0.8) !important; }
.text-amber { color: rgb(var(--ei-amber-rgb)) !important; }

.bg-forest { background-color: rgb(var(--ei-forest-rgb)) !important; }
.bg-forest\/10 { background-color: rgb(var(--ei-forest-rgb) / 0.1) !important; }
.bg-forest\/60 { background-color: rgb(var(--ei-forest-rgb) / 0.6) !important; }
.bg-sand { background-color: rgb(var(--ei-sand-rgb)) !important; }
.bg-sand\/40 { background-color: rgb(var(--ei-sand-rgb) / 0.4) !important; }
.bg-amber { background-color: rgb(var(--ei-amber-rgb)) !important; }
.bg-amber\/20 { background-color: rgb(var(--ei-amber-rgb) / 0.2) !important; }

.border-forest { border-color: rgb(var(--ei-forest-rgb)) !important; }
.border-forest\/40 { border-color: rgb(var(--ei-forest-rgb) / 0.4) !important; }
.border-forest\/60 { border-color: rgb(var(--ei-forest-rgb) / 0.6) !important; }

.hover\:bg-forest:hover { background-color: rgb(var(--ei-forest-rgb)) !important; }
.hover\:bg-forest\/10:hover { background-color: rgb(var(--ei-forest-rgb) / 0.1) !important; }
.hover\:text-forest:hover { color: rgb(var(--ei-forest-rgb)) !important; }
.hover\:text-white:hover { color: #ffffff !important; }
.hover\:text-white\/80:hover { color: rgb(255 255 255 / 0.8) !important; }
.hover\:text-amber:hover { color: rgb(var(--ei-amber-rgb)) !important; }
.hover\:border-forest:hover { border-color: rgb(var(--ei-forest-rgb)) !important; }
.hover\:border-forest\/40:hover { border-color: rgb(var(--ei-forest-rgb) / 0.4) !important; }

/* Gradient stop fallbacks for custom forest shades. */
.from-forest\/60 { --tw-gradient-from: rgb(var(--ei-forest-rgb) / 0.6) var(--tw-gradient-from-position) !important; --tw-gradient-to: rgb(var(--ei-forest-rgb) / 0) var(--tw-gradient-to-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.from-forest\/70 { --tw-gradient-from: rgb(var(--ei-forest-rgb) / 0.7) var(--tw-gradient-from-position) !important; --tw-gradient-to: rgb(var(--ei-forest-rgb) / 0) var(--tw-gradient-to-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.from-forest\/75 { --tw-gradient-from: rgb(var(--ei-forest-rgb) / 0.75) var(--tw-gradient-from-position) !important; --tw-gradient-to: rgb(var(--ei-forest-rgb) / 0) var(--tw-gradient-to-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.via-forest\/45 { --tw-gradient-to: rgb(var(--ei-forest-rgb) / 0) var(--tw-gradient-to-position) !important; --tw-gradient-stops: var(--tw-gradient-from), rgb(var(--ei-forest-rgb) / 0.45) var(--tw-gradient-via-position), var(--tw-gradient-to) !important; }
.via-forest\/60 { --tw-gradient-to: rgb(var(--ei-forest-rgb) / 0) var(--tw-gradient-to-position) !important; --tw-gradient-stops: var(--tw-gradient-from), rgb(var(--ei-forest-rgb) / 0.6) var(--tw-gradient-via-position), var(--tw-gradient-to) !important; }
.to-forest\/10 { --tw-gradient-to: rgb(var(--ei-forest-rgb) / 0.1) var(--tw-gradient-to-position) !important; }
.to-forest\/25 { --tw-gradient-to: rgb(var(--ei-forest-rgb) / 0.25) var(--tw-gradient-to-position) !important; }
.to-forest\/50 { --tw-gradient-to: rgb(var(--ei-forest-rgb) / 0.5) var(--tw-gradient-to-position) !important; }
.to-forest\/55 { --tw-gradient-to: rgb(var(--ei-forest-rgb) / 0.55) var(--tw-gradient-to-position) !important; }

/* Theme button utility for primary brand actions. */
button.ei-btn-primary,
a.ei-btn-primary {
  background-color: #6094b6 !important;
  color: #ffffff !important;
}

button.ei-btn-primary:hover,
a.ei-btn-primary:hover {
  background-color: #4f85a8 !important;
  color: #ffffff !important;
}

@media (min-width: 768px) {
  body.logged-in .md\:pt-\[155px\] {
    padding-top: 157px !important;
  }
}

/* WordPress admin bar: offset fixed header so it isn't hidden behind the bar */
body.admin-bar header {
  top: 46px; /* mobile admin bar height */
}

@media screen and (min-width: 783px) {
  body.admin-bar header {
    top: 32px; /* desktop admin bar height */
  }
}

.ei-overview-body {
  position: relative;
}

.ei-overview-body.is-collapsed {
  max-height: 260px;
  overflow: hidden;
}

.ei-overview-body.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  pointer-events: none;
}

/* ─── Hero search bar overlap: push next section down ─── */
/* Desktop: adds ~64px on top of the section's natural pt-20 (5rem/80px) */
.search-hero + section {
  padding-top: 9rem; /* ~144px ≈ 80px (pt-20) + 64px extra */
}

/* Mobile: stacked layout needs more clearance due to larger search bar */
@media (max-width: 767px) {
  .search-hero + section {
    padding-top: 2rem;
  }
}

/* ─── Contact Form 7 styles ─── */

/* Reset CF7's default <p> wrapper margins so they don't break grid layouts */
.wpcf7-form p {
  margin: 0;
  padding: 0;
  display: contents;
}

/* Input + textarea base styles */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  display: block;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #1e293b;
  background-color: #ffffff;
  outline: none;
  transition: box-shadow 0.15s ease;
  font-family: inherit;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
  box-shadow: 0 0 0 2px rgb(var(--ei-forest-rgb) / 0.4);
  border-color: rgb(var(--ei-forest-rgb) / 0.4);
}

.wpcf7-form input[type="text"]::placeholder,
.wpcf7-form input[type="email"]::placeholder,
.wpcf7-form input[type="tel"]::placeholder,
.wpcf7-form textarea::placeholder {
  color: #94a3b8;
}

/* Textarea: fixed 4-row height to match design */
.wpcf7-form textarea {
  resize: vertical;
  height: 6.5rem;
  min-height: 6.5rem;
  margin-top: 1rem;
}

/* Submit button */
.wpcf7-form input[type="submit"] {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background-color: rgb(var(--ei-forest-rgb));
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 14px rgb(var(--ei-forest-rgb) / 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wpcf7-form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgb(var(--ei-forest-rgb) / 0.3);
}

/* Validation error highlight */
.wpcf7-form .wpcf7-not-valid {
  border-color: #f87171 !important;
}

.wpcf7-form .wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
  display: block;
}

/* Response message */
.wpcf7-response-output {
  margin-top: 1rem !important;
  padding: 0.75rem 1rem !important;
  border-radius: 0.75rem !important;
  font-size: 0.875rem !important;
  border: none !important;
}
