/*
Theme Name: Taue Uga Tours
Description: The Taue Uga Tours one-page site. Every word and photograph on it
  is edited from Pages > Home; this theme only renders them. Hand-written CSS,
  no framework and no build step, which is why the page stays small.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: taue-uga
*/

/* The hero's four background photographs are not here: they are editable, so
   their rules are written into the page head by tut_hero_styles(). */

:root { --ink:#2e2140; --grape:#5b3a9c; --grape-deep:#2a1a47; --amethyst:#ae6ce3; --mist:#ede4fa; --lilac:#c9a9f0; --gold:#ffd45f; --shell:#f8f3fc; --paper:#fcf6ea; --rose:#ff6b9d; --rose-deep:#a02a7a; --white:#fffdfe; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--shell); color:var(--ink); font-family:Arial,Helvetica,sans-serif; }
a { color:inherit; text-decoration:none; }
/* Links inside running text need an affordance, since the rule above
   strips it everywhere. */
.fb-link { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
.fb-link:hover { text-decoration-thickness:2px; }
a:focus-visible,button:focus-visible { border-radius:2px; outline:2px solid var(--amethyst); outline-offset:3px; }

.nav-shell { align-items:center; backdrop-filter:blur(12px); background:rgba(42,26,71,.88); border-bottom:1px solid rgba(255,255,255,.22); color:var(--white); display:flex; height:88px; justify-content:space-between; padding:0 clamp(22px,5vw,78px); position:absolute; top:0; width:100%; z-index:10; }
.brand { align-items:center; display:inline-flex; gap:12px; line-height:1; }
.brand-logo { display:block; filter:drop-shadow(0 5px 14px rgba(0,0,0,.28)); height:72px; object-fit:contain; object-position:left center; width:225px; }
.footer-logo { height:96px; width:285px; }
.nav-shell nav { align-items:center; display:flex; font-size:13px; gap:34px; }
.nav-book { border:1px solid var(--gold); border-radius:100px; color:var(--gold); padding:13px 21px; }

.hero { background:var(--grape-deep); color:var(--white); min-height:880px; overflow:hidden; padding:225px clamp(24px,8vw,130px) 100px; position:relative; }
/* Four photographs cross-fading behind the wash. 32s round trip: each is
   held for 7s, then takes 1s to hand over. Every slide after the first
   carries a negative delay so its turn lands 8s after the one before, and
   the first frame on load is the lead image rather than a blank. Adding or
   removing a slide means changing the duration, all the delays and the
   keyframe percentages together. */
.hero-slides { inset:0; position:absolute; }
.hero-slide { animation:heroSlide 32s ease-in-out infinite; background-position:center; background-repeat:no-repeat; background-size:cover; inset:0; opacity:0; position:absolute; }
/* Mirrored: the guest and the crab sit at ~30% in the original, which is
   where the wash is near-opaque and the headline sits. Flipping puts them
   at ~70%, in the clear, without upscaling the photo. */
.hero-slide-1 { opacity:1; transform:scaleX(-1); }
.hero-slide-2 { animation-delay:-24s; }
/* Cropped to the hero's own proportions with the crab already placed at
   ~70%, so this needs no repositioning and `cover` barely has to zoom. */
.hero-slide-3 { animation-delay:-16s; }
/* Lava sits at ~66% across this crop, clear of the wash and the headline.
   68% also keeps her in frame on phones, where `cover` throws away most of
   a 1.6:1 photo's width. */
.hero-slide-4 { animation-delay:-8s; background-position:68% center; }
@keyframes heroSlide { 0%,21.88% { opacity:1; } 25%,96.88% { opacity:0; } 100% { opacity:1; } }
.hero-wash { background:linear-gradient(90deg,rgba(42,26,71,.97) 0%,rgba(91,58,156,.84) 38%,rgba(91,58,156,.14) 76%); inset:0; position:absolute; }
.hero-noise { background-image:radial-gradient(rgba(255,255,255,.15) .6px,transparent .6px); background-size:7px 7px; inset:0; opacity:.14; position:absolute; }
.hero-orbit { border:1px solid rgba(255,212,95,.34); border-radius:50%; position:absolute; }
.hero-orbit-one { height:640px; right:-70px; top:145px; width:640px; }
.hero-orbit-two { height:420px; right:40px; top:255px; width:420px; }
.hero-orbit:after { background:var(--rose); border-radius:50%; box-shadow:0 0 25px var(--rose); content:""; height:12px; left:8%; position:absolute; top:19%; width:12px; }
.hero-content { max-width:850px; position:relative; z-index:2; }
.eyebrow,.section-kicker { color:var(--rose-deep); font-size:11px; font-weight:800; letter-spacing:.24em; text-transform:uppercase; }
.hero h1 { font:400 clamp(62px,8.5vw,126px)/.88 Georgia,serif; letter-spacing:-.06em; margin:27px 0 34px; }
.hero h1 em { color:var(--gold); font-weight:400; }
.hero-copy { color:rgba(255,255,255,.76); font-size:clamp(17px,2vw,22px); line-height:1.6; max-width:610px; }
.hero-actions { align-items:center; display:flex; flex-wrap:wrap; gap:32px; margin-top:46px; }
.primary-button { align-items:center; background:var(--gold); border-radius:100px; color:var(--grape-deep); display:inline-flex; font-size:14px; font-weight:800; gap:32px; padding:18px 24px; }
.primary-button span,.final-cta a span { font-size:20px; }
.text-link { border-bottom:1px solid rgba(255,255,255,.4); font-size:13px; padding:9px 0; }
.text-link span { color:var(--gold); margin-left:12px; }
.hero-card { bottom:72px; display:flex; flex-direction:column; gap:5px; position:absolute; right:clamp(24px,8vw,130px); z-index:2; }
.hero-card .rating { color:var(--gold); font-size:13px; letter-spacing:.18em; }
.hero-card strong { font-family:Georgia,serif; font-size:24px; font-weight:400; }
.hero-card span:last-child { color:rgba(255,255,255,.6); font-size:12px; }
.hero-word { bottom:-116px; color:rgba(255,255,255,.035); font:900 370px/1 Arial,sans-serif; letter-spacing:-.08em; margin:0; position:absolute; right:-10px; }

.intro { background:linear-gradient(135deg,var(--shell) 0%,var(--mist) 100%); display:grid; gap:10vw; grid-template-columns:1.25fr .75fr; padding:130px clamp(24px,8vw,130px) 92px; }
.intro h2,.story h2,.booking h2 { font:400 clamp(42px,5vw,72px)/1.04 Georgia,serif; letter-spacing:-.045em; margin:20px 0; }
.intro-copy { color:#5a5068; font-size:16px; line-height:1.75; padding-top:25px; }
.social-proof { align-items:center; border-top:1px solid rgba(91,58,156,.24); display:flex; gap:18px; margin-top:34px; padding-top:24px; }
.social-proof strong { color:var(--grape); font:400 42px Georgia,serif; }
.social-proof span { font-size:11px; letter-spacing:.1em; line-height:1.4; max-width:140px; text-transform:uppercase; }

.steps { background:var(--white); border-bottom:1px solid rgba(91,58,156,.24); border-top:1px solid rgba(91,58,156,.24); display:grid; grid-template-columns:repeat(3,1fr); margin:0 clamp(24px,8vw,130px) 130px; }
.steps article { min-height:285px; padding:32px 38px; }
.steps article + article { border-left:1px solid rgba(91,58,156,.24); }
.steps article > span { color:var(--rose-deep); font-size:11px; font-weight:800; }
.steps h3 { font:400 30px Georgia,serif; margin:72px 0 16px; }
.steps p { color:#6e6480; font-size:13px; line-height:1.65; margin:0; }

/* ---- Meet the uga: the printed tri-fold, opened out -------------------
   Three paper panels butted together on the dark ground. The brochure
   prints its folds as hard colour changes rather than rules, so the cream
   / grape / cream sequence is what reads as the fold; the gold ticks above
   and below each join are the only marks added. Panel widths are equal, so
   the fixed-ratio plates line up without being told to. */
.tour-gallery { background:var(--grape-deep); color:var(--white); padding:110px clamp(24px,8vw,130px) 120px; }
.gallery-heading { display:grid; gap:0 10vw; grid-template-columns:1.25fr .75fr; margin-bottom:64px; }
.gallery-heading h2 { font:400 clamp(40px,4.6vw,68px)/1.02 Georgia,serif; letter-spacing:-.045em; margin:18px 0 0; }
/* The short bar the brochure sets under every panel headline. */
.gallery-heading h2:after { background:var(--gold); content:""; display:block; height:3px; margin-top:30px; width:116px; }
.gallery-heading > p { align-self:end; color:rgba(255,255,255,.66); font-size:15px; line-height:1.7; margin:0; max-width:460px; }

.brochure { box-shadow:0 36px 76px rgba(0,0,0,.45); display:grid; grid-template-columns:repeat(3,1fr); position:relative; }
.fold { background:var(--paper); color:var(--ink); display:flex; flex-direction:column; padding:42px clamp(22px,2.4vw,34px) 36px; position:relative; }
.fold-dark { background:var(--grape); color:var(--white); }
/* Fold ticks, drawn in the ground above and below each join. */
.fold + .fold:before,.fold + .fold:after { background:var(--gold); content:""; height:15px; left:-1px; position:absolute; width:2px; }
.fold + .fold:before { top:-23px; }
.fold + .fold:after { bottom:-23px; }

.fold-step { color:var(--rose-deep); font-size:11px; font-weight:800; letter-spacing:.24em; margin:0; text-transform:uppercase; }
.fold-step span:after { content:"/"; margin:0 8px 0 7px; opacity:.5; }
.fold-dark .fold-step { color:var(--gold); }
/* Two lines plus the rule, reserved, so a headline that wraps does not
   push its own plate out of line with the other two. The 20px is the
   rule's own 18px margin and 2px height. */
.fold h3 { font:400 clamp(25px,2.4vw,33px)/1.12 Georgia,serif; letter-spacing:-.03em; margin:17px 0 0; min-height:calc(2.24em + 20px); }
.fold h3:after { background:var(--rose-deep); content:""; display:block; height:2px; margin-top:18px; opacity:.45; width:52px; }
.fold-dark h3:after { background:var(--gold); opacity:1; }

/* Full-bleed to the panel edges, as the brochure prints them. The ratio is
   declared so the panel keeps its height before the photo arrives. */
.fold-plate { aspect-ratio:4 / 5; border-top:3px solid var(--gold); margin:30px calc(-1 * clamp(22px,2.4vw,34px)) 0; overflow:hidden; position:relative; }
.fold-plate img { display:block; filter:contrast(1.04) saturate(1.06); height:100%; object-fit:cover; transition:transform .7s ease; width:100%; }
.fold:hover .fold-plate img { transform:scale(1.03); }
.fold:nth-child(1) .fold-plate img { object-position:center 42%; }
.fold:nth-child(2) .fold-plate img { object-position:center 26%; }
.fold:nth-child(3) .fold-plate img { object-position:center 60%; }
.fold-plate figcaption { background:var(--gold); bottom:24px; color:var(--grape-deep); font:800 10px/1 Arial,sans-serif; left:0; letter-spacing:.22em; padding:12px 17px; position:absolute; text-transform:uppercase; }
.fold-copy { color:#5a5068; font-size:14px; line-height:1.75; margin:26px 0 0; }
.fold-dark .fold-copy { color:rgba(255,255,255,.76); }
/* Pinned to the foot of the centre panel, where the leaflet prints it. */
.fold-mark { color:var(--gold); font-size:10px; font-weight:800; letter-spacing:.24em; margin:36px 0 0; padding-top:18px; border-top:1px solid rgba(255,255,255,.22); text-transform:uppercase; }
.fold-mark span { margin:0 4px; opacity:.5; }
.fold-dark .fold-copy + .fold-mark { margin-top:auto; }

/* Three panels still read down to here; below it the serif headlines start
   breaking across three lines. */
@media (max-width:1100px) {
  .fold { padding:34px 22px 30px; }
  .fold-plate { margin-left:-22px; margin-right:-22px; }
  .fold h3 { font-size:24px; }
}
.story { background:linear-gradient(135deg,var(--grape-deep),var(--grape)); color:var(--white); display:grid; grid-template-columns:1fr 1fr; min-height:760px; }
.story-art { background:var(--grape-deep); margin:0; overflow:hidden; position:relative; }
.story-art:after { background:linear-gradient(180deg,rgba(42,26,71,.02),rgba(42,26,71,.5)); content:""; inset:0; position:absolute; }
.story-art img { filter:contrast(1.05) saturate(1.06); height:100%; object-fit:cover; object-position:center 36%; width:100%; }
.story-art figcaption { backdrop-filter:blur(7px); background:rgba(42,26,71,.66); border-left:2px solid var(--gold); bottom:28px; font:500 11px/1.9 Arial,sans-serif; left:28px; letter-spacing:.16em; padding:13px 20px; position:absolute; text-transform:uppercase; z-index:1; }
.story-art figcaption strong { display:block; font:400 17px/1.3 Georgia,serif; letter-spacing:.02em; text-transform:none; }
.story-art > span { bottom:30px; color:rgba(255,255,255,.1); font:800 130px Arial,sans-serif; left:50%; position:absolute; transform:translateX(-50%); }
.story-copy { padding:118px clamp(40px,8vw,125px); }
.hero .eyebrow,.tour-gallery .section-kicker { color:var(--rose); }
.section-kicker.light { color:var(--gold); }
.story-copy > p:not(.section-kicker) { color:rgba(255,255,255,.66); font-size:16px; line-height:1.75; }
.story ul { list-style:none; margin:42px 0 0; padding:0; }
.story li { border-top:1px solid rgba(255,255,255,.17); font-size:13px; padding:17px 0 17px 26px; position:relative; }
.story li:before { color:var(--gold); content:"+"; left:0; position:absolute; }

.booking { background:linear-gradient(180deg,var(--white),var(--shell)); display:grid; gap:8vw; grid-template-columns:.8fr 1.2fr; padding:130px clamp(24px,8vw,130px); }
.booking-heading > p:not(.section-kicker) { color:#6b6179; line-height:1.7; max-width:440px; }
.contact-stack { border-top:1px solid rgba(91,58,156,.25); margin-top:42px; }
.contact-stack a { border-bottom:1px solid rgba(91,58,156,.25); display:flex; flex-direction:column; gap:6px; padding:17px 0; }
.contact-stack span { color:#736a83; font-size:10px; letter-spacing:.12em; text-transform:uppercase; }
.contact-stack strong { font:400 18px Georgia,serif; }
.booking-form { background:var(--white); border-top:6px solid var(--amethyst); box-shadow:0 35px 90px rgba(42,26,71,.14); padding:clamp(28px,5vw,60px); }
.form-label { color:var(--rose-deep); font-size:10px; font-weight:800; letter-spacing:.2em; margin:0 0 30px; text-transform:uppercase; }
.field-grid { display:grid; gap:24px; grid-template-columns:1fr 1fr; }
.booking-form label { color:#3a2f4a; display:block; font-size:11px; font-weight:800; letter-spacing:.05em; margin-bottom:23px; text-transform:uppercase; }
.booking-form input,.booking-form select,.booking-form textarea { background:transparent; border:0; border-bottom:1px solid #cfc6dc; border-radius:0; color:var(--ink); display:block; font:400 15px Arial,sans-serif; margin-top:9px; outline:0; padding:12px 0; text-transform:none; width:100%; }
.booking-form textarea { border:1px solid #cfc6dc; padding:14px; resize:vertical; }
.booking-form input:focus,.booking-form select:focus,.booking-form textarea:focus { border-color:var(--amethyst); }
.optional { color:#79708b; float:right; font-weight:400; }
.submit-button { align-items:center; background:var(--grape); border:0; border-radius:100px; color:var(--white); cursor:pointer; display:flex; font-size:13px; font-weight:800; justify-content:space-between; margin-top:8px; padding:17px 22px; width:100%; }
.submit-button .submit-arrow { color:var(--gold); font-size:20px; }
.submit-button[disabled] { cursor:progress; opacity:.6; }
/* Off screen rather than display:none, which some form bots skip. */
.honeypot { left:-9999px; position:absolute; top:auto; width:1px; }
.form-error { background:#fdeceb; border-left:3px solid #a4221c; color:#7d1b16; font-size:13px; line-height:1.65; margin:20px 0 0; padding:13px 15px; }
.form-error a { color:#7d1b16; text-decoration:underline; }
.form-note { color:#746b81; font-size:10px; line-height:1.5; margin:15px 0 0; text-align:center; }
.success-card h3 { font:400 42px Georgia,serif; margin:20px 0; }
.success-card > p:not(.form-label) { color:#686078; line-height:1.7; }
.success-icon { align-items:center; background:var(--gold); border-radius:50%; display:flex; font-size:28px; height:58px; justify-content:center; width:58px; }
.dark-button { margin-top:25px; }
/* The only control that undoes a mis-sent booking, and it was a 107x17
   tap target. inline-flex plus the 44px floor keeps the underline
   hugging the text while the hit area reaches the touch minimum. */
.reset-button { align-items:center; background:transparent; border:0; cursor:pointer; display:inline-flex; font-weight:700; margin-top:6px; min-height:44px; padding:0 2px; text-decoration:underline; }
.form-success[hidden],.booking-form[hidden] { display:none; }

.final-cta { align-items:center; background:linear-gradient(90deg,var(--amethyst),var(--lilac)); color:var(--grape-deep); display:flex; justify-content:space-between; padding:58px clamp(24px,8vw,130px); }
.final-cta p { font:italic 400 clamp(30px,4vw,58px) Georgia,serif; margin:0; }
.final-cta a { align-items:center; background:var(--grape); border-radius:100px; color:var(--white); display:flex; font-size:13px; font-weight:800; gap:35px; padding:18px 24px; }
footer { align-items:center; background:var(--grape-deep); color:var(--white); display:flex; justify-content:space-between; padding:55px clamp(24px,8vw,130px); }
footer > p { color:rgba(255,255,255,.55); font-size:12px; }
footer > div { display:flex; font-size:12px; gap:25px; }

@media (max-width:850px) {
  .nav-shell { height:72px; }
  .nav-shell nav a:not(.nav-book) { display:none; }
  .nav-book { padding:11px 15px; }
  .hero { min-height:780px; padding-top:180px; }
  .hero-card { bottom:45px; left:24px; right:auto; }
  .hero-word { bottom:-45px; font-size:180px; }
  .intro,.story,.booking { grid-template-columns:1fr; }
  .intro { gap:24px; padding-bottom:60px; padding-top:90px; }
  .steps { grid-template-columns:1fr; margin-bottom:90px; }
  .steps article { min-height:220px; }
  .steps article + article { border-left:0; border-top:1px solid rgba(91,58,156,.24); }
  .steps h3 { margin-top:42px; }
  .tour-gallery { padding-bottom:90px; padding-top:90px; }
  .gallery-heading { gap:24px; grid-template-columns:1fr; }
  .gallery-heading > p { align-self:start; }
  .brochure { grid-template-columns:1fr; }
  .fold { padding:38px 26px 34px; }
  .fold-plate { aspect-ratio:3 / 2; margin-left:-26px; margin-right:-26px; }
  .fold h3 { font-size:30px; min-height:0; }
  .fold-dark .fold-copy + .fold-mark { margin-top:36px; }
  /* The join is horizontal now, so the ticks move to its two ends. */
  .fold + .fold:before { bottom:auto; height:2px; left:-23px; top:-1px; width:15px; }
  .fold + .fold:after { bottom:auto; height:2px; left:auto; right:-23px; top:-1px; width:15px; }
  .story-art { min-height:520px; }
  .booking { padding-bottom:90px; padding-top:90px; }
  .contact-stack { margin-bottom:30px; }
  /* 16px is the floor below which iOS Safari zooms the page in when a
     field is tapped, and it does not zoom back out. The fields were
     15px. 44px is the touch-target minimum; the text inputs were 42. */
  .booking-form input,.booking-form select,.booking-form textarea { font-size:16px; }
  .booking-form input,.booking-form select { min-height:44px; }
  .final-cta,footer { align-items:flex-start; flex-direction:column; gap:30px; }
  footer > div { width:100%; }
}

@media (max-width:560px) {
  .brand-logo { height:57px; width:166px; }
  .footer-logo { height:86px; width:245px; }
  .hero h1 { font-size:58px; }
  .hero-actions { align-items:flex-start; flex-direction:column; }
  /* Pinned to the hero's bottom-left, the review card overlapped the
     bottom 13px of the "Discover the experience" link and, sitting
     later in the DOM, took its taps. In flow it cannot reach it. */
  .hero-card { margin-top:44px; position:static; }
  .field-grid { gap:0; grid-template-columns:1fr; }
  .story-copy { padding:80px 26px; }
  .gallery-heading { margin-bottom:46px; }
  .story-art { min-height:430px; }
  .story-art > span { font-size:90px; }
  .booking-form { padding:30px 22px; }
  .final-cta a { justify-content:space-between; width:100%; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  /* The brochure plates' .7s zoom is the only other movement on the page. */
  .fold-plate img { transition:none; }
  .fold:hover .fold-plate img { transform:none; }
  .hero-slide { animation:none; }
}
