/*
Theme Name: Bear Creek Dobermans
Theme URI: https://bearcreekdobermans.com/
Author: OpenAI
Description: A lightweight, photography-first WordPress theme for Bear Creek Dobermans. Uses only WordPress core features and creates a complete starter site when activated.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: bear-creek-dobermans
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --bcd-ink: #171411;
  --bcd-muted: #6d645d;
  --bcd-rust: #985237;
  --bcd-rust-dark: #743923;
  --bcd-cream: #f7f3ec;
  --bcd-sand: #e8dfd3;
  --bcd-white: #ffffff;
  --bcd-border: rgba(23, 20, 17, 0.14);
  --bcd-shadow: 0 20px 60px rgba(23, 20, 17, 0.12);
  --bcd-radius: 2px;
  --bcd-content: 1180px;
  --bcd-narrow: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--bcd-ink);
  background: var(--bcd-cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bcd-rust-dark); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--bcd-rust); }

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  color: var(--bcd-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.8rem, 7vw, 5.9rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.7rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
p { margin-top: 0; }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 243, 236, 0.96);
  border-bottom: 1px solid var(--bcd-border);
  backdrop-filter: blur(12px);
}
.admin-bar .site-header { top: 32px; }
.site-header__inner {
  width: min(calc(100% - 40px), var(--bcd-content));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.site-branding { display: flex; align-items: center; min-width: 0; }
.custom-logo-link img { max-height: 58px; width: auto; }
.site-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-title a { color: var(--bcd-ink); text-decoration: none; }
.site-description {
  margin: 7px 0 0;
  color: var(--bcd-muted);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-navigation a {
  color: var(--bcd-ink);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a { color: var(--bcd-rust); }
.primary-navigation li:last-child > a {
  display: inline-flex;
  padding: 11px 17px;
  color: var(--bcd-white);
  background: var(--bcd-rust);
  border: 1px solid var(--bcd-rust);
}
.primary-navigation li:last-child > a:hover { background: var(--bcd-rust-dark); border-color: var(--bcd-rust-dark); }
.menu-toggle {
  display: none;
  padding: 8px 0;
  color: var(--bcd-ink);
  background: transparent;
  border: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

/* General layout */
.site-main { min-height: 55vh; }
.content-wrap { width: min(calc(100% - 40px), var(--bcd-content)); margin: 0 auto; }
.content-narrow { width: min(calc(100% - 40px), var(--bcd-narrow)); margin: 0 auto; }
.page-header {
  padding: clamp(80px, 10vw, 150px) 0 60px;
  text-align: center;
}
.page-header p { max-width: 680px; margin: 20px auto 0; color: var(--bcd-muted); }
.entry-content > * { margin-left: auto; margin-right: auto; }
.entry-content > :where(:not(.alignfull):not(.alignwide)) { width: min(calc(100% - 40px), var(--bcd-narrow)); }
.entry-content > .alignwide { width: min(calc(100% - 40px), var(--bcd-content)); }
.entry-content > .alignfull { width: 100%; max-width: none; }
.entry-content > * + * { margin-top: 28px; }
.entry-content > .alignfull + .alignfull { margin-top: 0; }

/* Core blocks */
.wp-block-button__link,
.bcd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 23px;
  border-radius: 0;
  background: var(--bcd-rust);
  color: var(--bcd-white) !important;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.wp-block-button__link:hover,
.bcd-button:hover { background: var(--bcd-rust-dark); transform: translateY(-1px); }
.is-style-outline > .wp-block-button__link {
  color: var(--bcd-white) !important;
  background: transparent;
  border: 1px solid rgba(255,255,255,.78);
}
.is-style-outline > .wp-block-button__link:hover { color: var(--bcd-ink) !important; background: var(--bcd-white); }

.wp-block-separator { border: 0; border-top: 1px solid var(--bcd-border); }
.wp-block-quote { border-left: 3px solid var(--bcd-rust); padding-left: 24px; }

/* Homepage */
.bcd-hero {
  min-height: clamp(620px, 80vh, 860px);
  display: flex;
  align-items: center;
}
.bcd-hero .wp-block-cover__background { background: linear-gradient(90deg, rgba(10,9,8,.78) 0%, rgba(10,9,8,.54) 42%, rgba(10,9,8,.08) 76%) !important; opacity: 1 !important; }
.bcd-hero .wp-block-cover__inner-container {
  width: min(calc(100% - 40px), var(--bcd-content));
  margin: 0 auto;
}
.bcd-hero__content { max-width: 720px; color: var(--bcd-white); }
.bcd-eyebrow {
  margin-bottom: 18px !important;
  color: #f1c9b6;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.bcd-hero h1 { margin-bottom: 22px; color: var(--bcd-white); }
.bcd-hero__lead { max-width: 650px; color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.bcd-hero .wp-block-buttons { margin-top: 32px; }

.bcd-section { padding: clamp(75px, 9vw, 130px) 0; }
.bcd-section--white { background: var(--bcd-white); }
.bcd-section--dark { background: var(--bcd-ink); color: rgba(255,255,255,.82); }
.bcd-section--dark h2,
.bcd-section--dark h3 { color: var(--bcd-white); }
.bcd-section__intro { max-width: 820px; margin: 0 auto 52px; text-align: center; }
.bcd-section__intro p { color: var(--bcd-muted); font-size: 1.08rem; }
.bcd-kicker { color: var(--bcd-rust); font-size: 0.78rem; font-weight: 750; letter-spacing: 0.16em; text-transform: uppercase; }

.bcd-card-grid { gap: 20px !important; }
.bcd-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  box-shadow: var(--bcd-shadow);
}
.bcd-card .wp-block-cover__background { background: linear-gradient(180deg, rgba(10,9,8,.02) 35%, rgba(10,9,8,.88) 100%) !important; opacity: 1 !important; }
.bcd-card .wp-block-cover__inner-container { align-self: flex-end; padding: 34px; }
.bcd-card h3 { margin-bottom: 10px; color: var(--bcd-white); font-size: 2rem; }
.bcd-card p { margin-bottom: 22px; color: rgba(255,255,255,.78); }
.bcd-text-link { color: var(--bcd-white) !important; font-size: 0.77rem; font-weight: 750; letter-spacing: 0.12em; text-decoration: none; text-transform: uppercase; }
.bcd-text-link::after { content: "  →"; }

.bcd-split { gap: clamp(35px, 7vw, 90px) !important; align-items: center !important; }
.bcd-split .wp-block-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--bcd-shadow); }
.bcd-split__copy p { color: var(--bcd-muted); }
.bcd-points { margin: 28px 0 0; padding: 0; list-style: none; }
.bcd-points li { position: relative; margin: 12px 0; padding-left: 26px; }
.bcd-points li::before { content: ""; position: absolute; top: .72em; left: 0; width: 13px; height: 1px; background: var(--bcd-rust); }

.bcd-stat-grid { gap: 18px !important; margin-top: 45px; }
.bcd-stat { padding: 28px; background: var(--bcd-white); border-top: 3px solid var(--bcd-rust); box-shadow: 0 12px 35px rgba(23,20,17,.07); }
.bcd-stat h3 { margin-bottom: 7px; font-size: 1.25rem; }
.bcd-stat p { margin-bottom: 0; color: var(--bcd-muted); font-size: .95rem; }

.bcd-gallery { gap: 14px !important; }
.bcd-gallery figure { overflow: hidden; }
.bcd-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 250ms ease; }
.bcd-gallery figure:hover img { transform: scale(1.025); }

.bcd-cta { text-align: center; }
.bcd-cta p { max-width: 650px; margin-left: auto; margin-right: auto; }

/* Inner pages */
.bcd-page-section { padding: 35px 0 85px; }
.bcd-profile-grid { gap: 22px !important; }
.bcd-profile-card { background: var(--bcd-white); box-shadow: 0 14px 40px rgba(23,20,17,.08); }
.bcd-profile-card .wp-block-image { margin: 0; }
.bcd-profile-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.bcd-profile-card__body { padding: 28px; }
.bcd-profile-card__body h3 { margin-bottom: 7px; }
.bcd-profile-card__body p { color: var(--bcd-muted); font-size: .95rem; }
.bcd-info-box { padding: 30px; background: var(--bcd-white); border-left: 3px solid var(--bcd-rust); }
.bcd-contact-list { padding: 0; list-style: none; }
.bcd-contact-list li { padding: 11px 0; border-bottom: 1px solid var(--bcd-border); }

/* Posts */
.post-card { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--bcd-border); }
.post-card h2 { font-size: 2.3rem; }
.entry-meta { margin-bottom: 18px; color: var(--bcd-muted); font-size: .86rem; text-transform: uppercase; letter-spacing: .08em; }

/* Footer */
.site-footer { padding: 72px 0 24px; color: rgba(255,255,255,.74); background: #11100f; }
.site-footer__grid {
  width: min(calc(100% - 40px), var(--bcd-content));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
}
.site-footer h2,
.site-footer h3 { color: var(--bcd-white); }
.site-footer h2 { font-size: 2rem; }
.site-footer h3 { font-family: inherit; font-size: .78rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 8px 0; }
.site-footer__bottom {
  width: min(calc(100% - 40px), var(--bcd-content));
  margin: 52px auto 0;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.13);
  font-size: .82rem;
}

/* Forms */
input, textarea, select {
  width: 100%;
  padding: 14px 15px;
  color: var(--bcd-ink);
  background: var(--bcd-white);
  border: 1px solid var(--bcd-border);
  border-radius: 0;
  font: inherit;
}
button, input[type="submit"] {
  padding: 13px 22px;
  color: var(--bcd-white);
  background: var(--bcd-rust);
  border: 0;
  border-radius: 0;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .primary-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 18px 20px 25px;
    background: var(--bcd-cream);
    border-bottom: 1px solid var(--bcd-border);
  }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-navigation a { display: block; padding: 12px 0; }
  .primary-navigation li:last-child > a { margin-top: 8px; justify-content: center; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .admin-bar .site-header { top: 46px; }
  .site-header__inner { min-height: 72px; }
  .site-description { display: none; }
  .site-title { font-size: 1rem; }
  .bcd-hero { min-height: 650px; }
  .bcd-card { min-height: 440px; }
  .bcd-section { padding: 75px 0; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__grid > :first-child { grid-column: auto; }
  .site-footer__bottom { flex-direction: column; }
}

/* PHP-rendered homepage components */
.bcd-hero {
  position: relative;
  background-color: #171411;
  background-repeat: no-repeat;
}
.bcd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,9,8,.84) 0%, rgba(10,9,8,.62) 42%, rgba(10,9,8,.12) 78%);
}
.bcd-hero > .wp-block-cover__inner-container { position: relative; z-index: 1; }
.bcd-button-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.bcd-button--outline { color: #fff !important; background: transparent; border: 1px solid rgba(255,255,255,.78); }
.bcd-button--outline:hover { color: var(--bcd-ink) !important; background: #fff; }
.bcd-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bcd-card {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.bcd-card__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,9,8,.03) 30%, rgba(10,9,8,.9) 100%); }
.bcd-card__content { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; padding: 34px; }
.bcd-card__content h3 { margin-bottom: 10px; color: #fff; font-size: 2rem; }
.bcd-card__content p { color: rgba(255,255,255,.8); }
.bcd-split-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(38px, 7vw, 90px); }
.bcd-split-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--bcd-shadow); }
.bcd-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bcd-gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bcd-centered { margin-top: 34px; text-align: center; }

@media (max-width: 900px) {
  .bcd-feature-grid { grid-template-columns: 1fr; }
  .bcd-card { min-height: 480px; }
  .bcd-split-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .bcd-gallery-grid { grid-template-columns: 1fr 1fr; }
}
