/* ==========================================================================
   PURRING PLACE - MASTER BRAND STYLESHEET

   Brand palette:
   - Deep Teal: #315C5B
   - Deep Teal Hover: #244645
   - Muted Gold: #C6A15B
   - Warm Cream: #F7F2E8
   - Charcoal: #303536

   Typography:
   - Headings: Cormorant Garamond
   - Body: Inter
   ========================================================================== */

/* 1. Self-hosted fonts */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-VariableFont_wght.woff2")
    format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Italic-VariableFont_wght.woff2")
    format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-VariableFont_opsz,wght.woff2")
    format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Italic-VariableFont_opsz,wght.woff2")
    format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* 2. Brand variables */

:root {
  --color-deep-teal: #315C5B;
  --color-deep-teal-hover: #244645;
  --color-muted-gold: #C6A15B;
  --color-warm-cream: #F7F2E8;
  --color-charcoal: #303536;
  --color-border: #E2D9C8;
  --color-input-border: #737B7B;
  --color-white: #FFFFFF;
  --color-error: #8A1C1C;
  --color-error-background: #FDF2F2;
  --color-help-text: #555D5E;

  --font-heading:
    "Cormorant Garamond",
    Georgia,
    serif;

  --font-body:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;

  --focus-outline: 3px solid var(--color-deep-teal-hover);
  --content-width: 750px;
}

/* 3. Base reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body,
h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}

body {
  min-height: 100vh;
  background-color: var(--color-warm-cream);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--color-deep-teal);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-deep-teal-hover);
}

[hidden] {
  display: none !important;
}

/* 4. Keyboard accessibility */

.skip-link {
  position: absolute;
  top: -80px;
  left: 15px;
  z-index: 2000;
  padding: 10px 18px;
  border-radius: 4px;
  background-color: var(--color-deep-teal);
  color: var(--color-white);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 15px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 3px;
}

.visually-hidden {
  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;
}

/* 5. Page layouts */

.landing-body {
  display: flex;
  flex-direction: column;
}

.landing-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1rem 0;
}

.page-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.landing-container {
  width: 100%;
  max-width: 600px;
  margin: auto;
  text-align: center;
}

.enquiry-container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto 40px;
  padding: 0 15px;
}

.thankyou-container {
  width: 100%;
  max-width: 650px;
  margin: 20px auto 40px;
  padding: 0 15px;
}

.legal-container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto 40px;
  padding: 0 15px;
}

/* 6. Headers and navigation */

.brand-header {
  margin-bottom: 2rem;
  text-align: center;
}

.main-logo {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
}

.site-header {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto 25px;
  padding: 15px 15px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo-link {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 4px;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 55px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 2px solid transparent;
  color: var(--color-charcoal);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--color-muted-gold);
  color: var(--color-deep-teal-hover);
}

.nav-links a.active,
.nav-links a[aria-current="page"] {
  font-weight: 700;
}

/* 7. Cards */

.card {
  padding: 3.5rem 2.25rem;
  border: 1px solid rgba(198, 161, 91, 0.35);
  border-radius: 16px;
  background-color: var(--color-white);
  box-shadow: 0 10px 30px rgba(48, 53, 54, 0.04);
}

.form-card {
  padding: 40px 35px;
  border: 1px solid rgba(198, 161, 91, 0.25);
  border-radius: 12px;
  background-color: var(--color-white);
  box-shadow: 0 10px 25px rgba(49, 92, 91, 0.06);
}

.thankyou-card {
  padding: 45px 35px;
  text-align: center;
}

/* 8. Typography */

.badge {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--color-muted-gold);
  border-radius: 50px;
  background-color: var(--color-warm-cream);
  color: var(--color-deep-teal-hover);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title,
.page-title {
  font-family: var(--font-heading);
  color: var(--color-deep-teal);
  font-weight: 700;
  line-height: 1.2;
}

.hero-title {
  margin-bottom: 0.5rem;
  font-size: 2.25rem;
}

.page-title {
  margin-bottom: 6px;
  font-size: 2.2rem;
}

.hero-body {
  max-width: 460px;
  margin: 0 auto;
  color: var(--color-charcoal);
  font-size: 1.05rem;
}

.page-intro {
  margin-bottom: 12px;
  color: var(--color-charcoal);
  font-size: 0.95rem;
}

.thankyou-message {
  margin-bottom: 25px;
  color: var(--color-charcoal);
  font-size: 1rem;
  line-height: 1.6;
}

/* 9. Decorative divider */

.divider {
  max-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.25rem auto 1.5rem;
}

.gold-line {
  height: 1px;
  flex-grow: 1;
  background-color: var(--color-muted-gold);
}

.paw-icon {
  color: var(--color-deep-teal);
  font-size: 0.85rem;
}

/* 10. Buttons */

.btn {
  display: inline-block;
  min-height: 44px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.1s ease;
}

.btn-primary {
  border-color: var(--color-deep-teal);
  background-color: var(--color-deep-teal);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(49, 92, 91, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  border-color: var(--color-deep-teal-hover);
  background-color: var(--color-deep-teal-hover);
  color: var(--color-white);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:disabled {
  border-color: #646A6B;
  background-color: #646A6B;
  color: var(--color-white);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-block {
  width: 100%;
}

.early-enquiry-box {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.early-enquiry-text {
  margin-bottom: 1rem;
  color: var(--color-charcoal);
  font-size: 0.9rem;
}

/* 11. Forms */

.form-group {
  margin-bottom: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--color-deep-teal-hover);
  font-size: 0.9rem;
  font-weight: 700;
}

.required {
  color: var(--color-error);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1.5px solid var(--color-input-border);
  border-radius: 6px;
  background-color: var(--color-warm-cream);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: 1rem;
  transition:
    background-color 0.2s ease-in-out,
    border-color 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--color-deep-teal);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-deep-teal);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(49, 92, 91, 0.15);
}

.helper-text {
  display: block;
  margin-top: 5px;
  color: var(--color-help-text);
  font-size: 0.82rem;
  line-height: 1.4;
}

#required-fields {
  margin-bottom: 26px;
}

#form-status {
  min-height: 1.4em;
  margin-top: 10px;
  text-align: center;
}

/* 12. Notices and errors */

.disclaimer-banner {
  margin: 26px 0 22px;
  padding: 16px 18px;
  border-left: 4px solid var(--color-muted-gold);
  border-radius: 0 8px 8px 0;
  background-color: rgba(198, 161, 91, 0.14);
  text-align: left;
}

.disclaimer-banner p {
  color: var(--color-charcoal);
  font-size: 0.88rem;
  line-height: 1.5;
}

.disclaimer-banner strong {
  color: var(--color-deep-teal-hover);
}

.error-banner {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-left: 4px solid var(--color-error);
  border-radius: 0 6px 6px 0;
  background-color: var(--color-error-background);
  color: var(--color-error);
  font-size: 0.9rem;
  font-weight: 600;
}

.error-banner:focus {
  outline: var(--focus-outline);
  outline-offset: 3px;
}

/* 13. Information and process boxes */

.steps-box {
  margin: 25px 0;
  padding: 22px 20px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background-color: var(--color-warm-cream);
  text-align: left;
}

.steps-box h2 {
  margin-bottom: 12px;
  color: var(--color-deep-teal);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1.3;
}

.steps-box p {
  margin-bottom: 12px;
  color: var(--color-charcoal);
  font-size: 0.9rem;
}

.steps-box p:last-child {
  margin-bottom: 0;
}

.steps-box ol,
.steps-box ul {
  margin-left: 20px;
  color: var(--color-charcoal);
  font-size: 0.9rem;
}

.steps-box li {
  margin-bottom: 10px;
}

.steps-box li:last-child {
  margin-bottom: 0;
}

.thankyou-actions {
  margin-top: 20px;
}

/* 14. Privacy and legal content */

.privacy-summary {
  margin: 22px 0 26px;
  padding: 16px 18px;
  border-left: 4px solid var(--color-deep-teal);
  border-radius: 0 8px 8px 0;
  background-color: var(--color-warm-cream);
  font-size: 0.88rem;
}

.privacy-summary p {
  margin-bottom: 12px;
}

.privacy-summary p:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--color-deep-teal);
  font-family: var(--font-heading);
  font-size: 1.55rem;
  line-height: 1.3;
}

.legal-content h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--color-deep-teal-hover);
  font-size: 1rem;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

/* 15. Footer */

.site-footer {
  margin-top: 2.5rem;
  padding: 1.8rem 1rem;
  border-top: 1px solid var(--color-border);
  background-color: transparent;
  text-align: center;
}

.footer-container {
  max-width: 650px;
  margin: 0 auto;
}

.footer-tagline {
  margin-bottom: 0.5rem;
  color: var(--color-deep-teal);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.footer-compliance {
  margin-bottom: 0.5rem;
  color: var(--color-charcoal);
  font-size: 0.82rem;
  line-height: 1.5;
}

.footer-compliance a {
  font-weight: 600;
}

.copyright {
  color: var(--color-help-text);
  font-size: 0.78rem;
}

/* 16. Responsive layout */

@media (max-width: 600px) {
  .landing-wrapper {
    padding-top: 1.25rem;
  }

  .header-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-logo-link {
    width: 100%;
    justify-content: center;
  }

  .brand-logo {
    max-width: 190px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
  }

  .nav-links a {
    padding-right: 12px;
    padding-left: 12px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .card,
  .form-card,
  .thankyou-card {
    padding: 2rem 1.25rem;
  }

  .hero-title,
  .page-title {
    font-size: 1.8rem;
  }

  .main-logo {
    max-width: 220px;
  }

  .footer-tagline {
    letter-spacing: 0.07em;
  }
}

@media (max-width: 360px) {
  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    width: 100%;
    justify-content: center;
  }

  .btn {
    width: 100%;
    padding-right: 18px;
    padding-left: 18px;
  }
}

/* 17. Reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
