:root {
  --bg: #f8f5f0;
  --bg-alt: #ffffff;
  --text: #4e3b34;
  --accent: #5FB5AE;
  --accent-soft: #c7ebe7;
  --muted: #7a6a60;
  --card: #ffffff;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 18px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 70px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  color: #fff;
}

.brand-text-title {
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-text-sub {
  font-size: .8rem;
  opacity: .85;
}

.menu {
  display: flex;
  gap: 18px;
  align-items: center;
}

.menu a {
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
  opacity: .95;
}

.menu a.cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: #1f1a17;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.burger {
  display: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* Mobile Header Controls */
.mobile-header-actions {
  display: none;
  /* Hidden on Desktop */
  align-items: center;
  /* Vertical center */
  flex-direction: row;
  /* Force row layout */
  gap: 15px;
  /* Space between Burger and Toggle */
}

/* Refined Glass Design */
.lang-item-header {
  color: #ffffff;
  font-weight: 700;
  /* Reduced from 900 for a cleaner look */
  font-size: 0.9rem;
  /* Slightly smaller */
  text-decoration: none;
  line-height: 1;
  padding: 6px 12px;
  /* Tighter padding */
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  /* Thinner & more subtle border */
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  /* Very subtle tint */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  /* Softer text shadow */
  transition: all 0.2s ease;
}

.lang-item-header:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* HERO with background image */
.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/hero-bg.jpg") center/cover no-repeat;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
  z-index: -1;
}

.hero-inner {
  max-width: 720px;
  padding: 20px;
}

.hero-logo {
  width: 110px;
  margin: 0 auto 16px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-eyebrow {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: .78rem;
  margin-bottom: 10px;
  opacity: .9;
}

.hero h1 {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin: 0 0 12px;
}

.hero-tag {
  font-size: 1.05rem;
  opacity: .92;
  margin-bottom: 18px;
}

.hero-rating {
  margin-bottom: 18px;
  font-size: .95rem;
  opacity: .9;
}

.hero-rating .star {
  color: #ffd86b;
  font-size: 1.15rem;
  margin-right: 2px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.btn-primary {
  background: #fff;
  color: #1d1815;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.btn-outline {
  background: var(--accent);
  border: 2px solid var(--accent);
  color: #fff;
}

/* Make outline buttons visible and consistent on white service cards */
.service-card .btn-outline {
  border-color: var(--accent);
  color: #ffffff;
  line-height: 1;
  padding: 10px 20px;
}

.service-card .btn-outline:hover {
  background: #3d2a20;
  border-color: #3d2a20;
  color: #fff;
}

/* Make outline buttons visible on white about cards (e.g., choose-client-type page) */
.about-card .btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  line-height: 1;
  padding: 10px 20px;
}

.about-card .btn-outline:hover {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

/* Services: subscription call-to-action card */
.services-cta {
  margin-top: 18px;
  background: var(--accent-soft);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.services-cta-text {
  font-size: 1rem;
  color: var(--text);
}

/* Make the subscription CTA more noticeable (recommended) */
.services-cta.highlight {
  background: linear-gradient(135deg, #d9f2ef 0%, var(--accent-soft) 100%);
  border-left: 6px solid var(--accent);
  padding: 18px 22px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.services-cta.highlight .services-cta-text {
  font-size: 1.05rem;
  line-height: 1.4;
}

.services-cta.highlight .btn-primary {
  padding: 12px 26px;
  font-size: 1rem;
  white-space: nowrap;
}

/* Subscriptions page: comparison table */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 12px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.pricing-table th,
.pricing-table td {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 14px 14px;
  text-align: left;
  vertical-align: top;
}

.pricing-table thead th {
  background: #f7f7f7;
  font-weight: 800;
}

.th-sub {
  display: block;
  font-weight: 700;
  color: var(--muted);
  font-size: .85rem;
  margin-top: 6px;
}

.scroll-indicator {
  margin-top: 36px;
  font-size: .85rem;
  opacity: .8;
}

/* GENERIC SECTIONS */
section {
  padding: 70px 0;
}

/* Offset anchor scrolling so headings don’t sit under the fixed nav */


section.alt {
  background: var(--bg-alt);
}

section h2 {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-top: 0;
  margin-bottom: 18px;
}

section p.lead {
  max-width: 720px;
  color: var(--muted);
}

/* ABOUT */
.about-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: start;
}

.about-card {
  background: var(--card);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-soft);
}

.about-highlight {
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: .9rem;
  margin-top: 10px;
}

/* SUBURBS */
.suburb-panel {
  background: var(--card);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}

.suburb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.suburb-pill {
  padding: 6px 11px;
  border-radius: 999px;
  background: #f3f1ec;
  font-size: .9rem;
}

/* SERVICES & PRICING */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 10px;
}

.service-card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  margin-top: 0;
}

/* footer area in cards so buttons & prices align */
.service-footer {
  margin-top: auto;
  padding-top: 10px;
}

.price-block {
  margin-bottom: 8px;
}

.price-main {
  font-weight: 700;
}

.price-sub {
  font-size: .9rem;
  color: var(--muted);
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.gallery-grid figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #fff;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
}

/* CONTACT */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: start;
}

form {
  display: grid;
  gap: 10px;
}

input,
textarea {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(95, 181, 174, .25);
}

.contact-card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.contact-card h3 {
  margin-top: 0;
}

/* FOOTER */
footer {
  padding: 40px 0 30px;
  background: #15100f;
  color: #e7e0d6;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  font-size: .9rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 46px;
  border-radius: 12px;
}

.footer-links a {
  color: #e7e0d6;
  display: block;
  margin-bottom: 4px;
  font-size: .9rem;
}

.footer-bottom {
  margin-top: 16px;
  font-size: .8rem;
  opacity: .8;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.inview {
  opacity: 1;
  transform: none;
}

/* RESPONSIVE */
@media(max-width:900px) {

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 700px) {

  /* Show the header actions wrapper */
  .mobile-header-actions {
    display: flex !important;
    /* Force visibility on mobile */
  }

  /* Hide the duplicate link inside the dropdown menu */
  .lang-item-menu {
    display: none;
  }

  .menu {
    display: none;
    position: absolute;
    top: 56px;
    right: 4%;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.92);
    padding: 12px 16px;
    border-radius: 12px;
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    font-size: .95rem;
  }

  .burger {
    display: block;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Subscription CTA: stack nicely on mobile */
  .services-cta.highlight {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-cta.highlight .btn-primary {
    width: 100%;
    text-align: center;
  }
}

/* Pup & Go: make dropdowns (e.g. Preferred time) a bit taller */
form select {
  padding: 10px 14px;
  min-height: 52px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}

form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(95, 181, 174, 0.25);
}

/* Covers the pattern:
   <label>Question text
     <input/select/textarea>
   </label>
*/
form label>input,
form label>select,
form label>textarea {
  display: block;
  margin-top: 6px;
}

/* Covers the pattern:
   <label>Question text</label>
   <input/select/textarea ...>
*/
form label+input,
form label+select,
form label+textarea {
  margin-top: 6px;
}

/* Pup & Go: make form fields full-width and responsive */
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="date"],
form textarea,
form select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Pup & Go: make the booking date box a bit narrower */
.about-card form input[name="booking_date"] {
  max-width: 260px;
}

/* Pup & Go: make the preferred time dropdown match */
.about-card form select[name="booking_time"] {
  max-width: 260px;
}

/* Slightly larger base font size for Simplified Chinese pages for readability */
html[lang="zh-Hans"] {
  font-size: 17px;
}

.radio-pill .hint-italic {
  font-size: 0.9em;
  font-style: italic !important;
  font-weight: 400;
  opacity: 0.85;
}

/* Accessibility: visually hidden (keeps SEO/semantics without changing layout) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form-status {
  font-size: 0.95rem;
  margin-top: 10px;
}

/* Make legal links inside the consent checkbox obvious */
.check-pill a {
  text-decoration: underline;
  font-weight: 800;
}

.check-pill a:hover {
  text-decoration-thickness: 3px;
}

.check-pill a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

.check-pill a {
  cursor: pointer;
}

/* Offset anchor scrolling so headings don’t sit under the fixed nav */
#about,
#services,
#pricing,
#suburbs,
#gallery,
#contact {
  scroll-margin-top: 20px;
}

/* ------------------------------------------------------------------
   MODERN INTERACTIONS: FLOATING LABELS
   ------------------------------------------------------------------ */
.form-group {
  position: relative;
  margin-bottom: 24px;
  /* Space for the label to float */
}

/* Input/Textarea Base Styles for Floating Labels */
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 16px 14px 6px;
  /* Top padding reserved for floating label */
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  /* Remove default arrow for select to style custom if needed, or keep standard */
}

/* Floating Label Style */
.form-group label {
  position: absolute;
  left: 14px;
  top: 14px;
  /* Centered vertically usually, but here fixed near top for "placeholder" look */
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  pointer-events: none;
  /* Let clicks pass through to input */
  transition: all 0.2s ease-out;
  transform-origin: left top;
  background: #fff;
  padding: 0 4px;
  left: 10px;
}

/* The Magic: When focused OR has value (placeholder-shown is false) */
.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label,
.form-group select:focus+label,
.form-group select:valid+label {
  top: 4px;
  transform: scale(0.75);
  font-weight: 700;
  color: var(--accent);
}

/* Error state styling if needed */
.form-group input:invalid:not(:placeholder-shown) {
  border-color: #b3261e;
}

.form-group input:invalid:not(:placeholder-shown)+label {
  color: #b3261e;
}

/* ------------------------------------------------------------------
   MODERN INTERACTIONS: TOAST NOTIFICATIONS
   ------------------------------------------------------------------ */
.toast-container {
  position: fixed;
  top: 90px;
  /* Below nav */
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--card);
  color: var(--text);
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-left: 5px solid var(--accent);
  min-width: 280px;
  max-width: 400px;
  opacity: 0;
  transform: translateX(100%);
  animation: slideIn 0.4s forwards ease-out;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toast.error {
  border-left-color: #b3261e;
}

.toast.success {
  border-left-color: var(--accent);
}

.toast.fade-out {
  animation: fadeOut 0.4s forwards ease-in;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(100%);
  }
}