/* =============================================
   Foxcreek Kennel — Site Additions & Improvements
   ============================================= */

/* --- Breed Card (dog_breed / bread-title) — sidebar & inner pages ---
   These styles mirror the inline block in index.html so inner pages
   render the card overlay correctly. */
.dog_breed {
  position: relative;
  max-width: 100%;
  width: 100%;
  margin: 0 auto 0;
  display: block;
}
.dog_breed img {
  width: 100%;
  display: block;
  border-radius: 3px;
}
.dog_breed .bread-title {
  background: url(../img/frame.png) no-repeat center bottom;
  font-family: 'MonotypeCorsivaRegular', cursive;
  text-align: center;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  line-height: 45px;
  font-size: 24px;
  border-radius: 0 0 6px 6px;
  color: #fff;
}

/* --- Dropdown Menu Support --- */
.top_menu ul li {
  position: relative;
}

/* Desktop nav: hide the sub-collapser toggle — hover handles dropdowns
   on desktop, so the arrow is unnecessary and was overlapping text. */
ul.slimmenu:not(.collapsed) li .sub-collapser {
  display: none;
}
.top_menu ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ccc;
  z-index: 9999;
  min-width: 200px;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.top_menu ul li ul li {
  display: block;
  margin: 0;
  border-bottom: 1px solid #bbb;
}
.top_menu ul li ul li a {
  display: block;
  float: none;
  border-right: none;
  padding: 8px 14px;
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.4;
}
.top_menu ul li:hover > ul {
  display: block;
}

/* --- Interior Page Hero / Banner --- */
.page-hero {
  background:
    linear-gradient(rgba(0, 50, 0, 0.72), rgba(0, 50, 0, 0.72)),
    url("../images/bg.jpg") center center / cover no-repeat fixed;
  padding: 30px 0 20px;
  text-align: center;
  border-bottom: 2px solid #004700;
  margin-bottom: 10px;
}
.page-hero h1 {
  font-size: 2.4em;
  color: #e8e8e8;
  margin-bottom: 8px;
}
.page-hero .cta-call {
  display: inline-block;
  margin-top: 10px;
  font-size: 1.2em;
  color: #e8e8e8;
}

/* --- CTA Call Box --- */
.cta-box {
  background: rgba(0, 71, 0, 0.55);
  border: 1px solid #557755;
  border-radius: 6px;
  padding: 18px 22px;
  margin: 20px 0;
  text-align: center;
}
.cta-box h3 {
  margin-bottom: 8px;
  color: #e0e0e0;
}
.cta-box a.cta-phone-link {
  font-size: 1.5em;
  font-family: Arial, Helvetica, sans-serif;
  color: #e8e8e8;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  padding: 6px 18px;
  border: 2px solid #ccc;
  border-radius: 4px;
  margin-top: 6px;
  transition: background 0.2s;
}
.cta-box a.cta-phone-link:hover {
  background: rgba(255,255,255,0.12);
}

/* --- Page Content Sections --- */
.page-content {
  padding: 10px 0 30px;
}
.page-content p {
  margin-bottom: 18px;
}
.page-content h2 {
  margin-top: 30px;
  margin-bottom: 12px;
  border-bottom: 1px solid #446644;
  padding-bottom: 4px;
}

/* --- FAQ Accordion --- */
.faq-item {
  margin-bottom: 16px;
  border: 1px solid #446644;
  border-radius: 5px;
  overflow: hidden;
}
.faq-question {
  background: rgba(0, 60, 0, 0.5);
  padding: 14px 18px;
  cursor: pointer;
  font-family: 'MonotypeCorsivaRegular', Georgia, serif;
  font-size: 1.15em;
  color: #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-question:hover {
  background: rgba(0, 80, 0, 0.6);
}
.faq-question .faq-arrow {
  font-style: normal;
  font-size: 1em;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-question.open .faq-arrow {
  transform: rotate(180deg);
}
.faq-answer {
  display: none;
  padding: 14px 18px;
  background: rgba(0, 30, 0, 0.35);
}
.faq-answer p {
  margin: 0;
}

/* --- Champions Grid Improvements --- */
.champion-intro {
  background: rgba(0, 50, 0, 0.4);
  border-left: 4px solid #557755;
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: 0 5px 5px 0;
}
.champion-intro p {
  margin: 0;
  font-style: italic;
  font-size: 1.05em;
}
.champions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 0;
}
.champions-grid .champ-thumb {
  flex: 0 0 auto;
  text-align: center;
}
.champions-grid .champ-thumb img {
  border: 2px solid #557755;
  border-radius: 4px;
  display: block;
}
.champ-section-title {
  font-family: 'MonotypeCorsivaRegular', Georgia, serif;
  font-size: 1.5em;
  color: #cccccc;
  margin: 24px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #446644;
}

/* --- Breed Page Improvements --- */
.breed-info-block {
  margin-bottom: 24px;
}
.breed-cta-inline {
  text-align: center;
  padding: 18px;
  margin: 20px 0;
  background: rgba(0, 60, 0, 0.45);
  border-radius: 6px;
}
.breed-cta-inline h2, .breed-cta-inline h3 {
  margin-bottom: 6px;
}

/* --- Sitemap / About Page layout --- */
.content-section {
  margin-bottom: 30px;
}
.content-section h2 {
  color: #cccccc;
}

/* --- Footer improvements --- */
.footer .white_area {
  margin-top: 10px;
}

/* --- Responsive tweaks --- */
@media (max-width: 767px) {
  .page-hero h1 {
    font-size: 1.7em;
  }
  .cta-box a.cta-phone-link {
    font-size: 1.2em;
  }
  .champions-grid {
    gap: 8px;
  }
}

/* =============================================
   Contact & Application Forms
   ============================================= */

.contact-form-wrap {
  background: rgba(0, 50, 0, 0.35);
  border: 1px solid #446644;
  border-radius: 6px;
  padding: 28px 32px;
  margin: 0 auto 30px;
}

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

.form-group label {
  display: block;
  font-size: 1em;
  font-weight: bold;
  color: #e0e0e0;
  margin-bottom: 6px;
}

.required-star {
  color: #ff9090;
  font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 1em;
  line-height: 1.4;
  color: #1a1a1a;
  background: #f9f9f9;
  border: 1px solid #888;
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
}

.form-group 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 fill='%23555' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #5a9e5a;
  box-shadow: 0 0 0 3px rgba(90, 158, 90, 0.3);
}

.form-submit-btn {
  display: block;
  width: 100%;
  padding: 16px 20px;
  font-size: 1.15em;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  background: #2a6e2a;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  min-height: 52px;
  transition: background 0.2s;
  box-sizing: border-box;
}

.form-submit-btn:hover,
.form-submit-btn:active {
  background: #1e5c1e;
}

/* --- Form Validation Error Styles --- */
label.error {
  display: block;
  color: #ff9090;
  font-size: 0.87em;
  font-weight: normal;
  margin-top: 5px;
  margin-bottom: 0;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e05555;
  box-shadow: 0 0 0 3px rgba(220, 80, 80, 0.25);
}

.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
  border-color: #5a9e5a;
  box-shadow: none;
}

.phone-hint {
  display: block;
  font-size: 0.82em;
  color: #aaa;
  margin-top: 4px;
}

/* --- Form Submission Feedback Banners --- */
.form-feedback {
  display: none;
  border-radius: 5px;
  padding: 18px 20px;
  margin-bottom: 22px;
  font-size: 1em;
  line-height: 1.5;
  text-align: center;
}

.form-feedback.form-success {
  background: #1a4d1a;
  border: 1px solid #4caf50;
  color: #b9f6b9;
}

.form-feedback.form-error {
  background: #4d1a1a;
  border: 1px solid #e05555;
  color: #ffc0c0;
}

.form-feedback .feedback-icon {
  font-size: 1.4em;
  display: block;
  margin-bottom: 6px;
}

.form-submit-btn:disabled {
  background: #555;
  cursor: not-allowed;
}

/* =============================================
   Mobile Layout — screens 600px and below
   ============================================= */
@media (max-width: 600px) {

  /* --- Stack all Foundation grid columns --- */
  .row > [class*="columns"] {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    box-sizing: border-box;
  }

  /* --- Stack custom-width utility classes --- */
  .myfour, .myfive, .myseven {
    width: 100% !important;
    float: none !important;
    padding: 0 10px;
  }

  /* --- Header: tighten and center everything --- */
  .header {
    padding: 8px 0 4px;
  }
  .logo {
    padding: 0 10%;
  }
  .logo img {
    max-width: 180px;
    margin: 0 auto;
    display: block;
  }

  /* Location text: smaller on mobile */
  .header .three.columns h3 {
    font-size: 1em;
    margin-bottom: 4px;
  }

  /* Phone CTA in header: more compact */
  .phone_img a.phone {
    margin-top: 10px;
    font-size: 20px;
    padding: 8px 12px 6px;
  }
  .phone_img p {
    font-size: 15px;
    margin: 4px 0;
  }

  /* --- Main menu bar --- */
  .outer_menu {
    background: none;
  }

  /* --- Home hero section --- */
  .home-hero-overlay {
    padding: 20px 0 14px;
  }
  .home-hero-banner h1 {
    font-size: 1.4em;
    padding: 0 10px;
  }

  /* Dog breed boxes on home page: constrain width */
  .dog_breed {
    max-width: 80%;
    margin: 0 auto 16px;
  }

  /* Home page "call now" section */
  .home-hero-banner .phone_img h1 {
    font-size: 1.3em;
  }

  /* --- CTA box: full-width, easy-to-tap phone button --- */
  .cta-box {
    padding: 14px 14px;
    margin: 14px 0;
  }
  .cta-box a.cta-phone-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.35em;
    padding: 14px 12px;
    text-align: center;
    margin-top: 10px;
    border-radius: 6px;
  }

  /* --- Page hero banner --- */
  .page-hero {
    padding: 16px 0 12px;
    background-attachment: scroll;
  }
  .page-hero h1 {
    font-size: 1.4em;
    padding: 0 12px;
    word-break: break-word;
  }
  .page-hero .cta-call {
    font-size: 1em;
  }

  /* --- Facebook iframes: constrain and reduce height --- */
  iframe[src*="facebook"] {
    width: 100% !important;
    max-width: 100%;
    height: 260px !important;
  }

  /* --- Revolution Slider: better mobile scaling --- */
  .fullwidthbanner {
    margin-bottom: 16px !important;
    overflow: hidden;
  }
  .fullwidthbanner .tp-caption {
    transform: none !important;
  }
  .fullwidthbanner .tp-caption img {
    max-width: 85vw !important;
    max-height: 160px !important;
    width: auto !important;
    height: auto !important;
  }

  /* --- Champions grid: 2 per row on phones --- */
  .champions-grid .champ-thumb {
    flex: 0 0 calc(50% - 6px);
    max-width: calc(50% - 6px);
  }

  /* --- FAQ: tighter padding --- */
  .faq-question {
    font-size: 1em;
    padding: 12px 14px;
  }

  /* --- Breed content --- */
  .breed_dogs {
    padding: 0 5%;
    background-image: none;
    min-height: 0;
  }
  .breed-info-block,
  .breed-cta-inline {
    margin-bottom: 16px;
  }

  /* --- Content sections --- */
  .page-content {
    padding: 6px 0 20px;
  }
  .page-content h2 {
    font-size: 1.3em;
    margin-top: 20px;
  }

  /* --- General typography --- */
  p, li {
    font-size: 16px;
  }
  h1 { font-size: 1.6em; }
  h2 { font-size: 1.35em; }
  h3 { font-size: 1.15em; }

  /* --- Footer --- */
  .footer {
    margin-top: 16px;
    padding: 14px 0 8px;
  }

  /* --- Prevent horizontal overflow --- */
  .row {
    overflow-x: hidden;
  }
  img {
    max-width: 100%;
    height: auto;
  }

  /* --- Form validation feedback --- */
  label.error {
    font-size: 0.9em;
    margin-bottom: 0;
  }

/* --- Forms: mobile-friendly inputs --- */
  .contact-form-wrap {
    padding: 18px 16px;
    margin: 0 0 20px;
  }
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 13px 12px;
    min-height: 48px;
  }
  .form-group label {
    font-size: 1.05em;
    margin-bottom: 8px;
  }
  .form-submit-btn {
    font-size: 1.2em;
    padding: 18px 16px;
    min-height: 56px;
  }
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
