/**
 * True Believers Cane Corso - Site Styles
 * Primary: #32523F | Secondary: #E9E4D2
 * Mobile-first, accessible, premium breeder aesthetic.
 */

:root {
  --color-primary: #32523F;
  --color-primary-dark: #2a4535;
  --color-secondary: #E9E4D2;
  --color-white: #fff;
  --color-dark: #1a1a1a;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-soft: 0 4px 20px rgba(50, 82, 63, 0.08);
  --shadow-hover: 0 8px 30px rgba(50, 82, 63, 0.12);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
}

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap');

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

html {
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-white);
  padding-top: 72px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(1.875rem, 4vw, 2.75rem); }
h2 { font-size: clamp(2.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

/* ---- Header / Nav ---- */
.site-header .navbar {
  background-color: var(--color-primary) !important;
  box-shadow: var(--shadow-soft);
}

.site-header .navbar-brand .brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
}

.site-header .nav-link {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0.5rem 0.75rem !important;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
  color: var(--color-white) !important;
  text-decoration: underline;
}

.site-header .btn-cta {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
}

.site-header .btn-cta:hover {
  background-color: #fff;
  color: var(--color-primary-dark);
}

/* ---- Buttons ---- */
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}

.btn-outline-primary {
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  border-radius: var(--radius);
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ---- Sections ---- */
.section {
  padding: 4rem 0;
}

.section--sand {
  background-color: var(--color-secondary);
}

.section--white {
  background-color: #fff;
}

.section--green {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section--green h1,
.section--green h2,
.section--green h3 {
  color: var(--color-white);
}

.section--green .btn-outline-primary {
  border-color: var(--color-white);
  color: var(--color-white);
}

.section--green .btn-outline-primary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* ---- Hero ---- */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-color: var(--color-primary);
  background-image: url('/images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

/* Lighter overlay so hero image shows through more */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(50, 82, 63, 0.45) 0%, rgba(42, 69, 53, 0.55) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero .hero-content {
  text-align: left;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  color: var(--color-white);
}

.hero .lead.hero-subhead {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.95;
  text-transform: uppercase;
  margin-bottom: 0;
}

.hero .btn-group-cta {
  margin-top: 1.5rem;
  gap: 0.75rem;
}

/* ---- Page hero (e.g. puppies page) ---- */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  background-color: var(--color-primary);
  background-image: url('/images/hero2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}
/* Same overlay as home page hero */
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(50, 82, 63, 0.45) 0%, rgba(42, 69, 53, 0.55) 100%);
  pointer-events: none;
  z-index: 0;
}
.page-hero .page-hero__container {
  position: relative;
  z-index: 1;
  padding-top: 3rem;
  padding-bottom: 3rem;
  padding-left: 2rem;
  padding-right: 2rem;
}
@media (min-width: 768px) {
  .page-hero .page-hero__container {
    padding-top: 4rem;
    padding-bottom: 4rem;
    padding-left: 3rem;
    padding-right: 3rem;
  }
}
.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.page-hero__lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 42em;
  margin-bottom: 1.5rem;
}

.page-hero--pricing {
  background-image: url('/images/hero3.jpg');
}

/* ---- Section with background image ---- */
.section-bg-image {
  position: relative;
  background-color: var(--color-primary);
  background-image: url('/images/bg-section1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-white);
}

.section-bg-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(50, 82, 63, 0.72) 0%, rgba(42, 69, 53, 0.78) 100%);
  pointer-events: none;
  z-index: 0;
}

.section-bg-image .container {
  position: relative;
  z-index: 1;
}

.section-bg-image__content {
  text-align: left;
}

.section-bg-image h2 {
  color: var(--color-white);
}

.section-bg-image p {
  color: rgba(255, 255, 255, 0.95);
}

.section-bg-veteran {
  background-image: url('/images/veteran-owned.webp');
}
.section-bg-veteran::before {
  background: rgba(60, 60, 60, 0.8);
}

/* ---- Trust / Features ---- */
.trust-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: 100%;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.trust-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.trust-card .trust-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.trust-card .trust-icon .bi {
  font-size: 1.35rem;
}

/* Section headline icons */
.section-heading-icon {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-size: 2rem;
}
.hero .section-heading-icon,
.section--green .section-heading-icon,
.section-bg-image .section-heading-icon {
  color: rgba(255, 255, 255, 0.95);
}

/* ---- Cards (puppies, etc.) ---- */
.puppy-card,
.gallery-card,
.shirt-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
}

.puppy-card:hover,
.gallery-card:hover,
.shirt-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.puppy-card .card-img-top,
.gallery-card img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.pricing-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0;
}
.pricing-card__img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  display: block;
}
.pricing-card__placeholder {
  aspect-ratio: 16/10;
  background: var(--color-secondary);
  display: block;
}
.pricing-card__price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
}

.gallery-card img {
  display: block;
}

.badge-status {
  font-weight: 600;
  padding: 0.35em 0.65em;
}

/* ---- Customer love / Testimonials ---- */
.customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.customer-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ---- CTA band ---- */
.cta-band {
  padding: 3rem 0;
  text-align: center;
}

/* ---- Available puppies in hero (home + puppies page) ---- */
.available-puppies-hero {
  margin-top: 1.25rem;
  padding: 1rem 0;
  border-left: 4px solid var(--color-secondary);
  padding-left: 1rem;
}
.hero .available-puppies-hero,
.page-hero .available-puppies-hero {
  color: var(--color-white);
}
.available-puppies-hero__title {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 600;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
  opacity: 0.95;
}
.available-puppies-hero__list {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0;
  opacity: 0.98;
}
.available-puppies-hero .btn-outline-light {
  border-width: 2px;
}
.page-hero .available-puppies-hero .btn-outline-light {
  margin-top: 0.5rem;
}

/* ---- Embed form (e.g. puppy request page) ---- */
.embed-form-wrapper {
  min-height: 300px;
}
.embed-form-wrapper iframe {
  width: 100%;
  min-height: 500px;
  border: 0;
}

.reviews-embed-wrapper {
  min-height: 200px;
}
.reviews-embed-wrapper iframe {
  width: 100%;
  min-height: 300px;
  border: 0;
}

/* ---- Printify store embed (shirts page) ---- */
.printify-store-embed {
  width: 100%;
  min-height: 800px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
}
.printify-store-embed .printify-iframe {
  width: 100%;
  height: 800px;
  min-height: 800px;
  border: 0;
}

/* ---- Footer ---- */
.site-footer a:hover {
  text-decoration: underline;
}

/* ---- Utility ---- */
.img-placeholder {
  background: var(--color-secondary);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 600;
}

/* ---- Gallery masonry-style ---- */
.gallery-grid {
  column-count: 2;
  column-gap: 1rem;
}

@media (min-width: 576px) {
  .gallery-grid { column-count: 2; }
}

@media (min-width: 768px) {
  .gallery-grid { column-count: 3; }
}

@media (min-width: 992px) {
  .gallery-grid { column-count: 4; }
}

.gallery-grid .gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

.gallery-grid .gallery-item__link {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.gallery-grid .gallery-item__link:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.02);
}
.gallery-grid .gallery-item__link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.gallery-grid .gallery-item img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  vertical-align: middle;
}

/* ---- Forms ---- */
.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(50, 82, 63, 0.25);
}

/* ---- Accessibility ---- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0.5rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0.5rem;
}

/* ---- Page titles ---- */
.page-header {
  padding: 2rem 0 1rem;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

/* ---- Breadcrumb (visual) ---- */
.breadcrumb-nav {
  font-size: 0.9rem;
}

.breadcrumb-nav a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}
