
/* From the Olympia Girls - eenvoudige website-stijl
   Bewust zonder frameworks: makkelijk te openen en te bewerken in FrontPage. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f7f4f1;
  color: #403b38;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: #705b50; }
a:hover { color: #4f4038; }

.site-header {
  background: #fff;
  border-bottom: 1px solid #e4ddd8;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px 0;
}
.logo-area {
  text-align: center;
  padding-bottom: 12px;
}
.logo-area img {
  width: 100%;
  max-width: 1180px;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}
.language-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin: 8px 0 15px;
}
.language-row a {
  display: inline-block;
  padding: 3px;
  border: 1px solid #e3dcd7;
  border-radius: 5px;
  background: #fff;
}
.language-row img { display: block; height: 34px; width: auto; }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  padding: 0 0 16px;
}
.main-nav a {
  text-decoration: none;
  color: #554943;
  padding: 9px 13px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
}
.main-nav a:hover,
.main-nav a.active {
  background: #e9dfd8;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 55px;
}
.hero {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  background: #e9dfd8;
  border-radius: 14px;
  overflow: hidden;
  min-height: 430px;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  display: block;
}
.hero-copy {
  padding: 48px 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: bold;
  color: #977d70;
  margin: 0 0 8px;
}
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #584b45;
  font-weight: normal;
}
h1 { font-size: 45px; line-height: 1.12; margin: 0 0 17px; }
h2 { font-size: 34px; line-height: 1.2; margin: 0 0 17px; }
h3 { font-size: 23px; margin: 0 0 8px; }
.lead { font-size: 18px; color: #625751; }
.button {
  display: inline-block;
  text-decoration: none;
  background: #735e53;
  color: #fff !important;
  padding: 11px 18px;
  border-radius: 5px;
  font-weight: bold;
  margin: 7px 5px 0 0;
}
.button:hover { opacity: .88; }

.section { margin-top: 58px; }
.section-title { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.two-col {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 28px;
  align-items: start;
}
.card {
  background: #fff;
  border: 1px solid #e5ded9;
  border-radius: 10px;
  padding: 27px;
}
.card + .card { margin-top: 18px; }
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.link-card {
  display: block;
  text-decoration: none;
  color: #403b38;
  background: #fff;
  border: 1px solid #e5ded9;
  border-radius: 10px;
  padding: 25px;
}
.link-card:hover { border-color: #cdbdb3; transform: translateY(-2px); }
.link-card .icon { font-size: 27px; }
.link-card p { margin-bottom: 0; color: #6b605a; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.photo-grid a { display: block; }
.photo-grid img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.photo-caption { text-align: center; padding: 8px 0 4px; }

.dog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.dog-card {
  background: #fff;
  border: 1px solid #e5ded9;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #403b38;
}
.dog-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
}
.dog-card div { padding: 16px; }
.dog-card p { margin: 4px 0 0; color: #716660; font-size: 14px; }

.news-item {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 25px;
  align-items: center;
  background: #fff;
  border: 1px solid #e5ded9;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
}
.news-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 7px;
}
.news-item h3 { margin-bottom: 3px; }

.contact-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid #e5ded9;
  border-radius: 12px;
  padding: 35px;
}
.contact-box .big { font-size: 19px; }

.quote {
  border-left: 4px solid #c9b6aa;
  padding: 4px 0 4px 20px;
  color: #625751;
  font-style: italic;
}

.site-footer {
  background: #514742;
  color: #eee7e2;
  padding: 25px 24px;
  text-align: center;
  font-size: 13px;
}
.footer-inner { max-width: 1180px; margin: 0 auto; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo img { min-height: 300px; max-height: 430px; }
  .hero-copy { padding: 38px 30px; }
  .two-col { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .dog-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .header-inner { padding-left: 12px; padding-right: 12px; }
  .page { padding-left: 14px; padding-right: 14px; }
  h1 { font-size: 35px; }
  h2 { font-size: 29px; }
  .main-nav a { font-size: 13px; padding: 8px 9px; }
  .dog-grid, .photo-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .news-item img { height: 230px; }
}

/* Styling for the existing individual FrontPage pages */
.legacy-page {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5ded9;
  border-radius: 10px;
  padding: 30px;
}
.legacy-page img { max-width: 100%; height: auto; }
.legacy-page h1, .legacy-page h2 { text-align: center; }

/* Tweede rij Onze honden: Milo, twee vrije plaatsen en Poes */
.dog-card-placeholder { cursor: default; }
a.dog-card-placeholder { cursor: pointer; }
.dog-placeholder-image {
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  background: #f3ebe4;
  color: #806858;
  font-size: 18px;
  font-style: italic;
}

.dog-photo-placeholder{
 aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;
 background:#f3ebe4;color:#806858;border-radius:12px;font-style:italic;
 text-align:center;padding:12px;box-sizing:border-box
}

/* Vaste fotovakken: foto's veranderen de pagina-afmetingen niet */
.dog-photo-grid {
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:14px;
 width:100%;
 box-sizing:border-box;
}
.dog-photo-grid > * {
 width:100%;
 min-width:0;
 aspect-ratio:1/1;
 overflow:hidden;
 box-sizing:border-box;
}
.dog-photo-grid img {
 display:block;
 width:100% !important;
 height:100% !important;
 max-width:100% !important;
 max-height:100% !important;
 object-fit:contain;
 object-position:center;
}
.dog-photo-grid .dog-photo-placeholder {
 width:100%;
 height:100%;
 aspect-ratio:1/1;
}
@media(max-width:700px){
 .dog-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}


/* Onze honden: alle 8 kaarten exact dezelfde mediahoogte en uitlijning */
.dog-grid { align-items: start; }
.dog-grid .dog-card { align-self: start; }
.dog-grid .dog-card > img,
.dog-grid .dog-card > .dog-placeholder-image {
  display: block;
  width: 100%;
  height: 270px !important;
  margin: 0 !important;
  box-sizing: border-box;
}
.dog-grid .dog-card > img {
  object-fit: contain;
  object-position: center;
}
.dog-grid .dog-card > .dog-placeholder-image {
  display: flex;
  align-items: center;
  justify-content: center;
}


/* 8 vaste fotovakken per hond + vergroting zonder Javascript */
.dog-photo-grid{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:16px;
}
.dog-photo-box{
 aspect-ratio:1/1;
 min-width:0;
 overflow:hidden;
}
.dog-photo-link{
 display:block;
 width:100%;
 height:100%;
}
.dog-photo-link img{
 width:100% !important;
 height:100% !important;
 object-fit:contain;
 display:block;
}
.dog-lightbox{
 display:none;
 position:fixed;
 inset:0;
 z-index:9999;
 background:rgba(0,0,0,.88);
 padding:24px;
 box-sizing:border-box;
 align-items:center;
 justify-content:center;
}
.dog-lightbox:target{display:flex}
.dog-lightbox-inner{
 max-width:1100px;
 width:100%;
 height:calc(100vh - 48px);
 display:flex;
 flex-direction:column;
 align-items:center;
 justify-content:center;
 gap:14px;
}
.dog-lightbox-inner img{
 max-width:100%;
 max-height:calc(100vh - 110px);
 width:auto;
 height:auto;
 object-fit:contain;
}
.dog-lightbox-back{
 display:inline-block;
 background:#f5efe8;
 color:#5d4636;
 padding:10px 18px;
 border-radius:8px;
 text-decoration:none;
 font-weight:bold;
}
@media(max-width:800px){
 .dog-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* Documentknoppen bij iedere hond */
.dog-documents{
 display:flex;
 flex-wrap:wrap;
 gap:12px;
 justify-content:center;
 margin:22px 0 10px;
}
.dog-pdf-button{
 display:inline-block;
 min-width:120px;
 padding:10px 18px;
 text-align:center;
 text-decoration:none;
 border-radius:8px;
 background:#eadfd4;
 color:#5d4636;
 font-weight:bold;
 box-sizing:border-box;
}
.dog-pdf-button:hover{filter:brightness(.96)}


/* PDF-documenten openen zoals de vergrote foto's, met Terug-knop */
.dog-pdf-viewer{
 display:none;
 position:fixed;
 inset:0;
 z-index:10000;
 background:rgba(0,0,0,.88);
 padding:24px;
 box-sizing:border-box;
 align-items:center;
 justify-content:center;
}
.dog-pdf-viewer:target{display:flex}
.dog-pdf-viewer-inner{
 width:min(1000px,100%);
 height:calc(100vh - 48px);
 display:flex;
 flex-direction:column;
 gap:12px;
 align-items:center;
}
.dog-pdf-object{
 width:100%;
 flex:1;
 min-height:0;
 border:0;
 background:white;
}
.dog-pdf-back{flex:0 0 auto}


/* PDF groot in beeld */
.dog-pdf-viewer{
 padding:10px !important;
}
.dog-pdf-viewer-inner{
 width:96vw !important;
 max-width:none !important;
 height:96vh !important;
 margin:0 !important;
}
.dog-pdf-object{
 display:block !important;
 width:100% !important;
 height:calc(96vh - 58px) !important;
 min-height:calc(96vh - 58px) !important;
 flex:none !important;
}
.dog-pdf-back{
 margin:0 !important;
}


/* DEFINITIEVE OPMAAK HONDENPAGINA'S */
.dog-photo-gallery{
  max-width:1100px;
  margin-left:auto;
  margin-right:auto;
  box-sizing:border-box;
}
.dog-photo-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:16px !important;
  width:100% !important;
  box-sizing:border-box !important;
}
.dog-photo-grid .dog-photo-box{
  width:100% !important;
  min-width:0 !important;
  aspect-ratio:1/1 !important;
  height:auto !important;
  padding:8px !important;
  margin:0 !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.dog-photo-grid .dog-photo-link{
  width:100% !important;
  height:100% !important;
  display:block !important;
}
.dog-photo-grid .dog-photo-box img{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  display:block !important;
  margin:0 !important;
}
.dog-photo-grid .dog-photo-placeholder{
  width:100% !important;
  height:100% !important;
  box-sizing:border-box !important;
}
.dog-documents{
  display:flex !important;
  flex-wrap:wrap !important;
  justify-content:center !important;
  gap:12px !important;
  margin:22px 0 10px !important;
}
.dog-lightbox,.dog-pdf-viewer{
  box-sizing:border-box !important;
}
.dog-pdf-viewer{
  display:none !important;
  position:fixed !important;
  inset:0 !important;
  z-index:10000 !important;
  background:rgba(0,0,0,.88) !important;
  padding:10px !important;
  align-items:center !important;
  justify-content:center !important;
}
.dog-pdf-viewer:target{display:flex !important}
.dog-pdf-viewer-inner{
  width:96vw !important;
  max-width:none !important;
  height:96vh !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  gap:10px !important;
}
.dog-pdf-object{
  display:block !important;
  width:100% !important;
  height:calc(96vh - 58px) !important;
  min-height:0 !important;
  border:0 !important;
  background:#fff !important;
}
@media(max-width:800px){
  .dog-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}
