/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* Bark Street Grooming custom styles */
    :root {
      --bg-color: #FFF6E5;
      --primary-orange: #FDB927;
      --primary-dark: #e0a01f;
      --text-dark: #1a1a1a;
      --text-grey: #666;
      --white: #ffffff;
      --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
      --radius-btn: 50px;
      --radius-card: 20px;
    }

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

    body {
      font-family: 'Nunito', sans-serif;
      background-color: var(--bg-color);
      color: var(--text-dark);
      overflow-x: hidden;
    }

    /* --- Navigation --- */
    nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 2rem 5%;
    }

    .logo {
      font-weight: 900;
      font-size: 1.8rem;
      display: flex;
      flex-direction: column;
      line-height: 1;
    }

    .logo span {
      font-size: 0.8rem;
      font-weight: 700;
      letter-spacing: 1px;
      margin-top: 5px;
      text-transform: uppercase;
      color: var(--text-grey);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 20px;
      font-weight: 700;
    }

    .social-link {
      color: var(--text-dark);
      text-decoration: none;
      transition: color 0.3s;
    }

    .social-link:hover {
      color: var(--primary-dark);
    }

    .lang-select {
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    /* --- Hero Section --- */
    .hero {
      display: grid;
      grid-template-columns: 1fr 1fr;
      padding: 2rem 5% 5rem;
      align-items: center;
      min-height: 80vh;
    }

    .hero-content {
      max-width: 600px;
      z-index: 2;
    }

    h1 {
      font-size: 3.5rem;
      line-height: 1.2;
      margin-bottom: 1rem;
      font-weight: 900;
      opacity: 0;
      animation: fadeUp 0.8s ease forwards;
    }

    .subtitle {
      font-size: 1.2rem;
      color: var(--text-dark);
      margin-bottom: 2.5rem;
      font-weight: 700;
      opacity: 0;
      animation: fadeUp 0.8s ease 0.2s forwards;
    }

    .cta-group {
      display: flex;
      gap: 20px;
      align-items: center;
      position: relative;
      opacity: 0;
      animation: fadeUp 0.8s ease 0.4s forwards;
    }

    .btn {
      padding: 15px 40px;
      border-radius: var(--radius-btn);
      font-weight: 900;
      text-decoration: none;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .btn-outline {
      background: var(--white);
      color: var(--primary-orange);
      border: 2px solid transparent;
    }

    .btn-primary {
      background: var(--primary-orange);
      color: var(--white);
      box-shadow: 0 10px 20px rgba(253, 185, 39, 0.3);
    }

    /* Handwritten arrow section */
    .handwritten-note {
      position: absolute;
      right: -20px;
      top: -10px;
      font-family: 'Caveat', cursive;
      font-size: 1.5rem;
      transform: rotate(-5deg);
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 10px;
    }

    .arrow-svg {
      width: 40px;
      height: 40px;
      transform: rotate(90deg) scaleY(-1);
    }

    .truck-illustration {
      margin-top: 4rem;
      width: 250px;
      animation: driveIn 1.5s ease-out forwards;
      opacity: 0;
    }

    /* --- Hero Images / Blobs --- */
    .hero-visuals {
      position: relative;
      height: 600px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .blob-grid {
      position: relative;
      width: 100%;
      height: 100%;
    }

    /* Creating the image bubbles */
    .img-bubble {
      position: absolute;
      background-size: cover;
      background-position: center;
      border: 4px solid white;
      box-shadow: var(--shadow-soft);
      --base-transform: translate(0px, 0px);
      transform: var(--base-transform);
      animation: float-main 6s ease-in-out infinite;
    }

    /* Big center blob */
    .bubble-main {
      width: 320px;
      height: 320px;
      top: 50%;
      left: 50%;
      --base-transform: translate(-50%, -50%);
      border-radius: 50%;
      background-image: url('https://images.unsplash.com/photo-1517849845537-4d257902454a?auto=format&fit=crop&w=600&q=80');
      z-index: 2;
    }

    /* Smaller orbiting blobs */
    .bubble-1 {
      width: 120px;
      height: 120px;
      top: 15%;
      left: 20%;
      border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
      background-image: url('https://images.unsplash.com/photo-1537151608828-ea2b11777ee8?auto=format&fit=crop&w=300&q=80');
      animation-delay: 0s;
      animation-name: float-1;
    }

    .bubble-2 {
      width: 140px;
      height: 140px;
      top: 10%;
      right: 15%;
      border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
      background-image: url('https://images.unsplash.com/photo-1583511655857-d19b40a7a54e?auto=format&fit=crop&w=300&q=80');
      animation-delay: 1s;
      animation-name: float-2;
    }

    .bubble-3 {
      width: 110px;
      height: 110px;
      bottom: 20%;
      left: 25%;
      border-radius: 50%;
      background-image: url('https://images.unsplash.com/photo-1591769225440-811ad7d6eca6?auto=format&fit=crop&w=300&q=80');
      animation-delay: 2s;
      animation-name: float-3;
    }

    .bubble-4 {
      width: 130px;
      height: 130px;
      bottom: 15%;
      right: 20%;
      border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%;
      background-image: url('https://images.unsplash.com/photo-1587300003388-59208cc962cb?auto=format&fit=crop&w=300&q=80');
      animation-delay: 3s;
      animation-name: float-4;
    }

    /* Paw prints background decoration */
    .bg-paw {
      position: absolute;
      color: rgba(253, 185, 39, 0.15);
      z-index: -1;
      font-size: 4rem;
      transform: rotate(20deg);
    }

    /* --- Reviews Section --- */
    .reviews-section {
      background: white;
      padding: 4rem 5%;
      border-top-left-radius: 60px;
      border-top-right-radius: 60px;
      margin-top: -50px;
      position: relative;
      z-index: 10;
    }

    .section-header {
      text-align: center;
      margin-bottom: 3rem;
    }

    .section-header h2 {
      font-size: 2.5rem;
      margin-bottom: 1.5rem;
    }

    .google-rating-box {
      background: #f8f9fa;
      display: inline-flex;
      align-items: center;
      gap: 15px;
      padding: 15px 30px;
      border-radius: 15px;
      margin-bottom: 2rem;
    }

    .g-logo span:nth-child(1) { color: #4285F4; }
    .g-logo span:nth-child(2) { color: #EA4335; }
    .g-logo span:nth-child(3) { color: #FBBC05; }
    .g-logo span:nth-child(4) { color: #4285F4; }
    .g-logo span:nth-child(5) { color: #34A853; }
    .g-logo span:nth-child(6) { color: #EA4335; }
    .g-logo { font-weight: bold; font-size: 1.5rem; }

    .reviews-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 25px;
    }

    .review-card {
      background: #fdfdfd;
      border: 1px solid #eee;
      padding: 25px;
      border-radius: var(--radius-card);
      transition: 0.3s;
      opacity: 0; /* Hidden for JS observer */
      transform: translateY(30px);
    }

    .review-card.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .review-card:hover {
      box-shadow: 0 15px 30px rgba(0,0,0,0.08);
      transform: translateY(-5px);
      border-color: transparent;
    }

    .user-header {
      display: flex;
      align-items: center;
      gap: 15px;
      margin-bottom: 15px;
    }

    .avatar {
      width: 45px;
      height: 45px;
      background: var(--primary-orange);
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      font-size: 1.2rem;
    }

    .user-info h4 { font-size: 1rem; margin-bottom: 2px; }
    .user-info p { font-size: 0.8rem; color: #888; }
    .verified-badge { color: #4285F4; margin-left: 5px; font-size: 0.9rem; }

    .stars { color: #FBBC05; margin-bottom: 10px; font-size: 0.9rem; }
    .review-text { font-size: 0.95rem; line-height: 1.6; color: #444; }

    /* --- Map Section --- */
    .map-section {
      background: #fff7e6;
      padding: 4rem 5%;
    }

    .map-card {
      max-width: 1100px;
      margin: 0 auto;
      background: white;
      border-radius: var(--radius-card);
      box-shadow: 0 20px 40px rgba(0,0,0,0.08);
      overflow: hidden;
    }

    .map-frame {
      width: 100%;
      height: 420px;
      border: 0;
      display: block;
    }

    /* --- Animations --- */
    @keyframes float-main {
      0% { transform: var(--base-transform) translateY(0px); }
      50% { transform: var(--base-transform) translateY(-20px); }
      100% { transform: var(--base-transform) translateY(0px); }
    }
    @keyframes float-1 {
      0% { transform: var(--base-transform) translate(0px, 0px); }
      50% { transform: var(--base-transform) translate(8px, -18px); }
      100% { transform: var(--base-transform) translate(0px, 0px); }
    }

    @keyframes float-2 {
      0% { transform: var(--base-transform) translate(0px, 0px); }
      50% { transform: var(--base-transform) translate(-10px, -22px); }
      100% { transform: var(--base-transform) translate(0px, 0px); }
    }

    @keyframes float-3 {
      0% { transform: var(--base-transform) translate(0px, 0px); }
      50% { transform: var(--base-transform) translate(6px, -14px); }
      100% { transform: var(--base-transform) translate(0px, 0px); }
    }

    @keyframes float-4 {
      0% { transform: var(--base-transform) translate(0px, 0px); }
      50% { transform: var(--base-transform) translate(-6px, -16px); }
      100% { transform: var(--base-transform) translate(0px, 0px); }
    }

    @keyframes fadeUp {
      to { opacity: 1; transform: translateY(0); }
      from { opacity: 0; transform: translateY(20px); }
    }

    @keyframes driveIn {
      from { opacity: 0; transform: translateX(-100px); }
      to { opacity: 1; transform: translateX(0); }
    }

    /* Mobile Adjustments */
    @media (max-width: 900px) {
      .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
        padding-top: 1rem;
      }

      .hero-content { margin: 0 auto; }

      .cta-group {
        justify-content: center;
      }

      .handwritten-note {
        display: none; /* Hide on mobile to save space */
      }

      .hero-visuals {
        height: 400px;
      }

      .bubble-main { width: 250px; height: 250px; }
      h1 { font-size: 2.5rem; }

      .map-frame {
        height: 320px;
      }
    }

    @media (max-width: 600px) {
      nav {
        padding: 1.5rem 6%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
      }

      .logo {
        font-size: 1.5rem;
        text-align: left;
      }

      .hero {
        padding: 1.5rem 6% 3.5rem;
        min-height: auto;
      }

      h1 { font-size: 2.1rem; }

      .subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.8rem;
      }

      .cta-group {
        flex-wrap: wrap;
        gap: 12px;
      }

      .btn {
        width: 100%;
        text-align: center;
        padding: 14px 28px;
      }

      .hero-visuals {
        height: 380px;
      }

      .bubble-main { width: 250px; height: 250px; }
      .bubble-1 { width: 110px; height: 110px; top: 6%; left: 10%; }
      .bubble-2 { width: 125px; height: 125px; top: 2%; right: 6%; }
      .bubble-3 { width: 105px; height: 105px; bottom: 10%; left: 8%; }
      .bubble-4 { width: 115px; height: 115px; bottom: 6%; right: 10%; }

      .img-bubble {
        border-width: 5px;
        box-shadow: 0 18px 35px rgba(0,0,0,0.12);
      }

      .reviews-section {
        padding: 3rem 6%;
        margin-top: -30px;
      }

      .section-header h2 {
        font-size: 2rem;
      }

      .google-rating-box {
        padding: 12px 20px;
        gap: 10px;
      }

      .review-card {
        padding: 20px;
      }

      .map-section {
        padding: 3rem 6%;
      }

      .map-frame {
        height: 260px;
      }
    }


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
