/*
Theme Name: Harties Weekend
Theme URI: https://harties-weekend.co.za
Author: Harties Weekend
Description: Light, airy child theme for Harties Weekend, built on Twenty Twenty-Five. Brand colours, Cormorant Garamond and Figtree fonts, pill buttons and soft cards from the Harties Weekend brand guide v1.0.
Template: twentytwentyfive
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: harties-weekend
*/

/* Small touches theme.json can't express */
.wp-block-button__link:focus-visible,
a:focus-visible { outline: 3px solid var(--wp--preset--color--dam-water); outline-offset: 3px; }

/* Labels: add the class "hw-label" plus one of the variants to a Paragraph block */
.hw-label { display:inline-flex; align-items:center; font-family:var(--wp--preset--font-family--figtree); font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; padding:6px 10px; border-radius:999px; line-height:1; }
.hw-checked  { background:var(--wp--preset--color--sage-light); color:var(--wp--preset--color--sage-deep); }
.hw-featured { background:var(--wp--preset--color--sunset-light); color:var(--wp--preset--color--sunset-deep); }
.hw-sponsored{ background:#fff; color:var(--wp--preset--color--stone); border:1px solid var(--wp--preset--color--outline); }
.hw-wedding  { background:var(--wp--preset--color--blush-light); color:var(--wp--preset--color--blush-deep); }

/* Cards: add the class "hw-card" to a Group block */
.hw-card { background:#fff; border:1px solid var(--wp--preset--color--hairline); border-radius:20px; overflow:hidden; box-shadow:var(--wp--preset--shadow--card); }

/* Local's note: add the class "hw-note" to a Paragraph block */
.hw-note { font-family:var(--wp--preset--font-family--cormorant-garamond); font-style:italic; font-weight:500; font-size:1.25rem; line-height:1.35; color:var(--wp--preset--color--dam-water); }

/* Header stays readable over content */
.hw-header { position:sticky; top:0; z-index:20; backdrop-filter:blur(8px); }
body.admin-bar .hw-header { top:32px; }
@media (max-width:782px){ body.admin-bar .hw-header { top:46px; } }

/* Same looks via the editor's Styles panel */
.is-style-hw-checked,.is-style-hw-featured,.is-style-hw-sponsored,.is-style-hw-wedding{ display:inline-flex !important; width:auto; font-family:var(--wp--preset--font-family--figtree); font-size:11px !important; font-weight:600; letter-spacing:.08em; text-transform:uppercase; padding:6px 10px; border-radius:999px; line-height:1 !important; }
.is-style-hw-checked  { background:var(--wp--preset--color--sage-light); color:var(--wp--preset--color--sage-deep); }
.is-style-hw-featured { background:var(--wp--preset--color--sunset-light); color:var(--wp--preset--color--sunset-deep); }
.is-style-hw-sponsored{ background:#fff; color:var(--wp--preset--color--stone); border:1px solid var(--wp--preset--color--outline); }
.is-style-hw-wedding  { background:var(--wp--preset--color--blush-light); color:var(--wp--preset--color--blush-deep); }
.is-style-hw-note { font-family:var(--wp--preset--font-family--cormorant-garamond); font-style:italic; font-weight:500; font-size:1.25rem; line-height:1.35; color:var(--wp--preset--color--dam-water); }
.is-style-hw-card { background:#fff; border:1px solid var(--wp--preset--color--hairline); border-radius:20px; overflow:hidden; box-shadow:var(--wp--preset--shadow--card); padding:24px; }

/* =========================================================
   v1.1  Motion, glow and polish
   ========================================================= */
:root { --hw-ease: cubic-bezier(.2,.7,.2,1); }
html { scroll-behavior: smooth; }
::selection { background: #fce9db; color: #18302f; }
.hw-sr { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* Buttons: lift and a soft teal glow on hover */
.wp-block-button__link, .hw-btn, .wpcf7-submit, .directorist-btn {
  transition: transform .25s var(--hw-ease), box-shadow .35s var(--hw-ease), background-color .25s, color .25s !important;
}
.wp-block-button__link:hover, .hw-btn:hover, .wpcf7-submit:hover, .directorist-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(39,107,114,.65), 0 0 0 4px rgba(220,236,236,.9) !important;
}
.wp-block-button__link:active, .hw-btn:active { transform: translateY(0); }

/* Glow buttons: the sunset call to action */
.is-style-glow .wp-block-button__link, .hw-glow, .wpcf7-submit.hw-glow {
  background: #ee9a62 !important; border-color: #ee9a62 !important; color: #18302f !important;
  animation: hw-glow 3s var(--hw-ease) infinite;
}
.is-style-glow .wp-block-button__link:hover, .hw-glow:hover {
  box-shadow: 0 14px 36px -8px rgba(238,154,98,.85), 0 0 0 5px rgba(252,233,219,.95) !important; animation-play-state: paused;
}
@keyframes hw-glow {
  0% { box-shadow: 0 0 0 0 rgba(238,154,98,.55); }
  70% { box-shadow: 0 0 0 16px rgba(238,154,98,0); }
  100% { box-shadow: 0 0 0 0 rgba(238,154,98,0); }
}
.is-style-outline .wp-block-button__link:hover { background: #dcecec !important; }

/* Header: shrinks on scroll, sunset underline on menu */
.hw-header { transition: padding .35s var(--hw-ease), box-shadow .35s, background-color .35s; }
.hw-header.is-scrolled { padding-top: 8px !important; padding-bottom: 8px !important; box-shadow: 0 10px 30px -18px rgba(24,48,47,.45); background-color: rgba(247,249,247,.9) !important; }
.hw-header .wp-block-site-logo img { transition: width .35s var(--hw-ease), height .35s; }
.hw-header.is-scrolled .wp-block-site-logo img { width: 158px !important; height: auto; }
.hw-header .wp-block-navigation-item__content { position: relative; text-decoration: none !important; }
.hw-header .wp-block-navigation-item__content::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: #ee9a62; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--hw-ease);
}
.hw-header .wp-block-navigation-item__content:hover::after,
.hw-header .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }

/* Links in text: animated underline */
.wp-block-post-content p a:not(.wp-block-button__link), .wp-block-post-content li a {
  text-decoration: none; background: linear-gradient(#ee9a62,#ee9a62) 0 100% / 100% 1px no-repeat;
  transition: background-size .35s var(--hw-ease), color .2s;
}
.wp-block-post-content p a:not(.wp-block-button__link):hover, .wp-block-post-content li a:hover { background-size: 100% 40%; background-image: linear-gradient(#fce9db,#fce9db); color: #18302f; }

/* Reveal on scroll (only when JS runs and motion is welcome) */
.hw-motion .hw-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--hw-ease), transform .8s var(--hw-ease); }
.hw-motion .hw-reveal.is-in { opacity: 1; transform: none; }

/* Cards: lift, image zoom, pointer light */
.directorist-listing-single, .hw-card, .is-style-hw-card, .hw-glowcard, .wp-block-post { position: relative; transition: transform .45s var(--hw-ease), box-shadow .45s var(--hw-ease); }
.directorist-listing-single:hover, .hw-card:hover, .is-style-hw-card:hover, .hw-glowcard:hover {
  transform: translateY(-6px); box-shadow: 0 2px 4px rgba(24,48,47,.05), 0 24px 48px -20px rgba(24,48,47,.35) !important;
}
.directorist-listing-single::after, .hw-card::after, .is-style-hw-card::after, .hw-glowcard::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(320px circle at var(--mx,50%) var(--my,50%), rgba(252,233,219,.55), transparent 60%);
}
.directorist-listing-single:hover::after, .hw-card:hover::after, .is-style-hw-card:hover::after, .hw-glowcard:hover::after { opacity: 1; }
.directorist-listing-single img, .wp-block-post-featured-image img { transition: transform .8s var(--hw-ease); }
.directorist-listing-single:hover img, .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.05); }
.wp-block-post-featured-image { overflow: hidden; border-radius: 20px; }

/* ---------- Hero with parallax scene ---------- */
.hw-hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px,4vw,56px); align-items: center; margin-top: 8px !important; }
.hw-hero > * { min-width: 0; }
.hw-hero__eyebrow { font: 600 12px/1.3 var(--wp--preset--font-family--figtree); letter-spacing: .12em; text-transform: uppercase; color: #566b6a; margin: 0 0 14px; }
.hw-hero h1 { margin: 0; font-size: clamp(48px, 6.6vw, 88px) !important; line-height: .98 !important; }
.hw-hero h1 em { font-style: italic; color: #276b72; }
.hw-hero__lead { font-size: 19px; line-height: 1.6; color: #566b6a; max-width: 44ch; margin: 22px 0 26px; }
.hw-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hw-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; font: 600 15px/1 var(--wp--preset--font-family--figtree); text-decoration: none !important; border: 1px solid #276b72; background: #276b72; color: #fff !important; }
.hw-btn--ghost { background: #fff; color: #18302f !important; border-color: #7d9491; }
.hw-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 14px; color: #566b6a; }
.hw-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hw-trust i { width: 8px; height: 8px; border-radius: 50%; background: #3f6139; box-shadow: 0 0 0 4px #e7eee0; }

.hw-scene { position: relative; aspect-ratio: 5/4.2; border-radius: 32px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #fce9db 0%, #f9d9c4 48%, #f4c2a2 62%); box-shadow: 0 30px 60px -30px rgba(24,48,47,.45); }
.hw-scene > * { position: absolute; will-change: transform; }
.hw-scene__sun { width: 34%; aspect-ratio: 1; border-radius: 50%; left: 44%; top: 30%; background: radial-gradient(circle at 50% 45%, #f6b27f, #ee9a62 62%);
  box-shadow: 0 0 60px 20px rgba(238,154,98,.35); }
.hw-scene__glow { inset: 0; background: radial-gradient(60% 40% at 61% 50%, rgba(255,236,214,.7), transparent 70%); }
.hw-scene__ridge { left: -6%; right: -6%; bottom: 37%; width: 112%; height: auto; }
.hw-scene__ridge--back { bottom: 39%; opacity: .55; }
.hw-scene__water { left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(180deg, #2b727a, #1f5d64); }
.hw-scene__water::before { content:""; position:absolute; left:40%; width:44%; top:0; height:100%; background: linear-gradient(180deg, rgba(246,178,127,.45), transparent 70%); filter: blur(10px); }
.hw-ripple { position: absolute; height: 6px; border-radius: 3px; background: #dcecec; opacity: .85; animation: hw-shimmer 4.5s ease-in-out infinite; }
@keyframes hw-shimmer { 0%,100% { transform: translateX(0); opacity: .85; } 50% { transform: translateX(10px); opacity: .45; } }
.hw-boat { width: 12%; left: 12%; bottom: 30%; animation: hw-drift 26s linear infinite; }
@keyframes hw-drift { 0% { transform: translateX(-20%); } 50% { transform: translateX(160%); } 100% { transform: translateX(-20%); } }
.hw-bird { width: 5%; animation: hw-fly 14s ease-in-out infinite; }
@keyframes hw-fly { 0%,100% { transform: translate(0,0); } 50% { transform: translate(18px,-8px); } }

/* Search sits over the hero edge */
.hw-search-wrap { position: relative; z-index: 3; margin-top: -8px !important; }
.hw-search-wrap .directorist-search-contents { padding: 0 !important; background: transparent !important; }

/* Chips */
.hw-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hw-chip-row a { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; border: 1px solid #7d9491;
  color: #18302f !important; font: 500 15px/1 var(--wp--preset--font-family--figtree); text-decoration: none !important; transition: transform .25s var(--hw-ease), box-shadow .3s, background-color .25s, border-color .25s; }
.hw-chip-row a svg { width: 16px; height: 16px; stroke: #276b72; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hw-chip-row a:hover { transform: translateY(-2px); background: #dcecec; border-color: #276b72; box-shadow: 0 10px 24px -12px rgba(39,107,114,.6); }

/* Bands */
.hw-band { border-radius: 32px; padding: clamp(28px, 5vw, 64px) !important; position: relative; overflow: hidden; }
.hw-band--blush { background: #f9e8e4; }
.hw-band--sun { background: #fce9db; }
.hw-band--water { background: #dcecec; }
.hw-band--night { background: #1d3b3c; color: #fff; }
.hw-band--night h2, .hw-band--night h3 { color: #fff !important; }
.hw-band--night p { color: #c9d6d4; }
.hw-band--night::before { content: ""; position: absolute; width: 280px; height: 280px; right: -80px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle at 45% 45%, #f6b27f, #ee9a62 65%); box-shadow: 0 0 90px 30px rgba(238,154,98,.25); animation: hw-float 9s ease-in-out infinite; }
@keyframes hw-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(14px); } }
.hw-eyebrow { font: 600 12px/1.3 var(--wp--preset--font-family--figtree) !important; letter-spacing: .12em !important; text-transform: uppercase; color: #566b6a; }
.hw-band--blush .hw-eyebrow { color: #8e4343; }
.hw-band--night .hw-eyebrow { color: #a9c7c9; }

/* Seal */
.hw-seal { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: #e7eee0; color: #3f6139;
  font: 600 11px/1.25 var(--wp--preset--font-family--figtree); letter-spacing: .08em; text-transform: uppercase; position: relative; }
.hw-seal::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px dashed #a8bb98; animation: hw-spin 24s linear infinite; }
@keyframes hw-spin { to { transform: rotate(360deg); } }

/* Horizon divider */
.hw-divider { display: block; width: 100%; height: 34px; margin: 8px 0 !important; }

/* Forms */
.hw-form { display: grid; gap: 14px; }
.hw-form label { display: grid; gap: 6px; font: 600 14px/1.3 var(--wp--preset--font-family--figtree); color: #18302f; }
.hw-form input[type=text], .hw-form input[type=email], .hw-form input[type=tel], .hw-form select, .hw-form textarea {
  width: 100%; font: 400 16px/1.4 var(--wp--preset--font-family--figtree); padding: 12px 16px; border-radius: 12px; border: 1px solid #7d9491; background: #fff; color: #18302f; box-sizing: border-box; transition: border-color .2s, box-shadow .2s; }
.hw-form input:focus, .hw-form select:focus, .hw-form textarea:focus { outline: none; border-color: #276b72; box-shadow: 0 0 0 4px rgba(39,107,114,.18); }
.hw-form .wpcf7-acceptance { font-weight: 400; font-size: 14px; }
.hw-form .wpcf7-list-item { margin: 0; }
.wpcf7-submit { justify-self: start; height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid #276b72; background: #276b72; color: #fff; font: 600 15px/1 var(--wp--preset--font-family--figtree); cursor: pointer; }
.hw-form--inline { grid-template-columns: 1fr auto; align-items: start; }
.hw-form--inline .wpcf7-acceptance, .hw-form--inline .wpcf7-form-control-wrap[data-name=popia-consent] { grid-column: 1 / -1; }
.hw-band--night .hw-form .wpcf7-acceptance, .hw-band--night .hw-form .wpcf7-acceptance a { color: #c9d6d4; }
.wpcf7-response-output { border-radius: 12px; }

/* Back to top */
.hw-top { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom,0px)); z-index: 50; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: #276b72; color: #ee9a62; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(24,48,47,.6);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .35s, transform .35s var(--hw-ease), box-shadow .3s; }
.hw-top svg { width: 22px; height: 22px; }
.hw-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.hw-top:hover { box-shadow: 0 16px 36px -10px rgba(39,107,114,.8), 0 0 0 4px rgba(220,236,236,.9); }

@media (max-width: 900px) {
  .hw-hero { grid-template-columns: 1fr; }
  .hw-scene { aspect-ratio: 5/3.6; }
}
@media (max-width: 600px) {
  .hw-form--inline { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hw-reveal { opacity: 1 !important; transform: none !important; }
}
