/* ==========================================================================
   Dustycorns Cleaning — Main Stylesheet
   Colours, layout, and components for all pages.
   Edit the :root custom properties below to change brand colours globally.
   ========================================================================== */

/* --- Google Fonts are loaded in each HTML <head> --- */

/* ==========================================================================
   1. CSS Custom Properties (Brand Colours & Tokens)
   ========================================================================== */

:root {
  /* Brand colours */
  --color-pink:   #E91E8C;   /* Primary — logo, accents */
  --color-cyan:   #5DD5E8;   /* Secondary */
  --color-lilac:  #8B7BC7;   /* Footer, buttons */
  --color-cream:  #FAF6F2;   /* Header background */
  --color-text:   #2C2C2C;   /* Body text */
  --color-white:  #FFFFFF;

  /* Frosted card */
  --card-bg:      rgba(255, 255, 255, 0.4);
  --card-border:  rgba(255, 255, 255, 0.6);

  /* Page background gradient */
  --gradient: linear-gradient(135deg, #FFD4E5 0%, #C9B8E8 50%, #A8E8F0 100%);

  /* Spacing & shape */
  --radius-card:   14px;
  --radius-btn:    24px;
  --shadow-card:   0 4px 24px rgba(139, 123, 199, 0.13);
  --shadow-header: 0 2px 12px rgba(139, 123, 199, 0.10);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-script:  'Dancing Script', cursive;
  --font-body:    'Inter', 'Open Sans', sans-serif;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--gradient);
  background-attachment: fixed;
  background-size: cover;
  min-height: 100vh;
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

/* ==========================================================================
   3. Typography Helpers
   ========================================================================== */

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

/* Pink underline accent beneath section titles */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-pink);
  border-radius: 2px;
  margin: 0.45rem auto 0;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 2.5rem;
  font-style: italic;
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  outline: none;
}

.btn:active {
  transform: translateY(0);
}

/* Primary pink button */
.btn-pink {
  background: var(--color-pink);
  color: var(--color-white);
}

/* Lilac button */
.btn-lilac {
  background: var(--color-lilac);
  color: var(--color-white);
}

/* Ghost / outline button */
.btn-outline {
  background: transparent;
  color: var(--color-pink);
  border: 2px solid var(--color-pink);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--color-pink);
  color: var(--color-white);
}

/* ==========================================================================
   5. Frosted Glass Card
   ========================================================================== */

.card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2rem;
}

/* ==========================================================================
   6. Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-cream);
  box-shadow: var(--shadow-header);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

/* Brand / logo block */
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: var(--color-pink);
  text-transform: uppercase;
}

.brand-tagline {
  font-family: var(--font-script);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-pink);
  margin-top: 2px;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-list a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  color: var(--color-text);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a.active {
  background: rgba(233, 30, 140, 0.08);
  color: var(--color-pink);
  outline: none;
}

/* Phone button on header */
.header-cta {
  flex-shrink: 0;
}

/* Hamburger button (mobile only) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Animate hamburger to X when open */
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==========================================================================
   7. Floating "Get a Quote" Button
   ========================================================================== */

.quote-float {
  position: fixed;
  top: 90px;    /* sits below sticky header */
  right: 1.25rem;
  z-index: 90;
  background: var(--color-lilac);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-btn);
  box-shadow: 0 4px 16px rgba(139, 123, 199, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}

.quote-float:hover,
.quote-float:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(139, 123, 199, 0.45);
  outline: none;
}

/* ==========================================================================
   8. Footer
   ========================================================================== */

.site-footer {
  background: var(--color-lilac);
  color: var(--color-white);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  margin-top: 4rem;
}

/* ==========================================================================
   9. Page Wrapper / Section Spacing
   ========================================================================== */

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

section {
  margin-bottom: 4rem;
}

/* ==========================================================================
   10. Hero Section (index.html)
   ========================================================================== */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem 2rem;
  gap: 1.5rem;
}

.hero-mascot {
  width: min(340px, 80vw);
  /* Coloured rectangle fallback if image missing */
  min-height: 300px;
  background: linear-gradient(135deg, #FFD4E5, #C9B8E8);
  border-radius: 16px;
  object-fit: contain;
}

.hero-location {
  font-size: 1.05rem;
  color: #555;
  font-style: italic;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   11. Two-Column Grid Layouts
   ========================================================================== */

/* Side-by-side cards — stack on mobile, row on desktop */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* ==========================================================================
   12. Mission / Values Cards
   ========================================================================== */

.intro-card h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-pink);
  margin-bottom: 0.75rem;
}

.values-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-lilac);
  margin-bottom: 0.6rem;
}

/* ==========================================================================
   13. Services Preview Cards (index.html)
   ========================================================================== */

.service-preview-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-preview-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-pink);
}

.service-preview-card .learn-more {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-lilac);
  margin-top: auto;
  gap: 0.3rem;
  transition: gap 0.15s ease;
}

.service-preview-card .learn-more:hover {
  gap: 0.55rem;
}

.service-preview-card .learn-more::after {
  content: '\2192'; /* right arrow */
}

/* ==========================================================================
   14. Contact CTA Strip (index.html)
   ========================================================================== */

.cta-strip {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-strip h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-pink);
}

.cta-phone {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-lilac);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   15. Services Page (services.html)
   ========================================================================== */

.service-card h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-pink);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 1.2rem 0 0.5rem;
}

.service-card ul {
  list-style: disc;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-card ul li {
  font-size: 0.97rem;
  line-height: 1.5;
}

.service-card .closing-line {
  margin-top: 1.2rem;
  font-style: italic;
  color: #555;
  font-size: 0.95rem;
}

.service-card .btn {
  margin-top: 1.5rem;
}

/* ==========================================================================
   16. About Page (about.html)
   ========================================================================== */

.about-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-pink);
  text-align: center;
  margin-bottom: 2.5rem;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.about-text p {
  margin-bottom: 1.1rem;
  line-height: 1.75;
}

/* Pull quote styling */
.about-quote {
  border-left: 4px solid var(--color-pink);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #444;
  line-height: 1.8;
}

.about-signoff {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-lilac);
  margin-top: 1rem;
}

.about-photo {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(139,123,199,0.2);
  background: linear-gradient(160deg, #C9B8E8, #FFD4E5);
  margin: 0 auto;
}

/* ==========================================================================
   17. FAQ Page (faq.html)
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 820px;
  margin: 0 auto;
}

/* Each FAQ item is a <details> element wrapped in a card */
.faq-item {
  padding: 0; /* padding handled inside */
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  list-style: none;    /* hide default triangle in Firefox */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.15s ease;
  user-select: none;
}

/* Remove default triangle in Chrome/Safari */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-pink);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item[open] summary {
  color: var(--color-pink);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  line-height: 1.75;
  color: #444;
  border-top: 1px solid rgba(255,255,255,0.5);
}

/* ==========================================================================
   18. Contact Page (contact.html)
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Form */
.contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid rgba(139, 123, 199, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  margin-bottom: 1.1rem;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B7BC7' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--color-lilac);
  box-shadow: 0 0 0 3px rgba(139, 123, 199, 0.18);
}

.form-group {
  margin-bottom: 0.2rem;
}

/* Inline success message */
.form-success {
  display: none;
  background: rgba(93, 213, 232, 0.2);
  border: 1.5px solid var(--color-cyan);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  text-align: center;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 600;
}

.form-success.visible {
  display: block;
}

/* Contact info card */
.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-pink);
  margin-bottom: 1.2rem;
}

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
  font-size: 0.97rem;
  line-height: 1.5;
}

.contact-info-row strong {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-lilac);
  display: block;
  margin-bottom: 0.15rem;
}

.contact-info-row a {
  color: var(--color-pink);
  font-weight: 600;
  transition: opacity 0.15s ease;
}

.contact-info-row a:hover {
  opacity: 0.75;
}

/* ==========================================================================
   19. Page-level title block (used on inner pages)
   ========================================================================== */

.page-title-block {
  text-align: center;
  padding: 2.5rem 1rem 0.5rem;
}

.page-title-block h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--color-text);
  display: inline-block;
  position: relative;
  padding-bottom: 0.5rem;
}

/* Pink underline on page titles */
.page-title-block h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--color-pink);
  border-radius: 2px;
}

/* ==========================================================================
   20. Responsive Breakpoints
   ========================================================================== */

/* --- Tablet and up (768px+) --- */
@media (min-width: 768px) {
  .two-col-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .contact-layout {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }

  .hero-mascot {
    width: 380px;
  }
}

/* --- Desktop (1024px+) --- */
@media (min-width: 1024px) {
  .header-inner {
    gap: 2rem;
  }

  .nav-list {
    gap: 0.5rem;
  }

  .nav-list a {
    font-size: 0.92rem;
  }
}

/* --- Mobile nav behaviour (below 768px) --- */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  /* On mobile, header is a column so the nav can slide below */
  .header-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .header-cta {
    margin-left: auto;
    /* Hide text, show as icon-like compact button on very small screens */
  }

  .site-nav {
    width: 100%;
    order: 3;
    /* Collapsed by default */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.open {
    max-height: 400px;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    padding: 0.5rem 0 1rem;
    gap: 0.15rem;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    border-radius: 8px;
  }

  .quote-float {
    font-size: 0.78rem;
    padding: 0.45rem 0.85rem;
  }
}
