/* ==========================================================================
   rexthedog.com — Main Stylesheet
   ========================================================================== */

/* 1. Reset & Base */
/* ========================================================================== */

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

body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #696969;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
}


/* 2. Typography */
/* ========================================================================== */

body {
  font-family: 'Merriweather', serif;
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Josefin Sans', sans-serif;
  color: #333333;
  margin-top: 0;
}

p {
  margin-top: 0;
  margin-bottom: 15px;
}


/* 3. Navigation */
/* ========================================================================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: transparent;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 25px;
}

.nav-links a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 400;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.75;
}

.nav-links a.active {
  font-weight: 600;
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile menu overlay */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 60px;
}

.nav-mobile-menu.is-open {
  display: flex;
}

.nav-mobile-menu a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 18px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #ffffff;
  padding: 15px 0;
  display: block;
  font-weight: 400;
  transition: opacity 0.2s;
}

.nav-mobile-menu a:hover {
  opacity: 0.75;
}

.nav-mobile-menu a.active {
  font-weight: 600;
}

/* Close button inside mobile menu */
.nav-close {
  position: absolute;
  top: 20px;
  right: 40px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
}


/* 4. Hero / Fullwidth Header */
/* ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
  padding: 0 20px;
}

.hero-content h1 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 72px;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.1;
}

.hero-content .subtitle {
  font-family: 'Merriweather', serif;
  font-style: italic;
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 30px;
}

/* Scroll arrow */
.scroll-arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: #ffffff;
  font-size: 28px;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Page header — individual pet pages (Rex, Scooter, Leroy) */
.page-header {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-header .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.page-header .hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
}

.page-header h1 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 72px;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0;
  line-height: 1.1;
}


/* 5. Split Panel Sections (home) */
/* ========================================================================== */

.split-row {
  display: flex;
  min-height: 600px;
}

.split-row .image-col {
  flex: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.split-row .text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  background: #ffffff;
}

.split-row .text-col h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 42px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #333333;
  margin-bottom: 10px;
}

.split-row .text-col h4 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 300;
  color: #696969;
  margin-bottom: 25px;
}

.split-row .text-col p {
  font-family: 'Merriweather', serif;
  font-size: 15px;
  line-height: 1.8;
  color: #696969;
  margin-bottom: 15px;
}

.split-row .text-col blockquote {
  font-family: 'Merriweather', serif;
  font-style: italic;
  color: #333333;
  border-left: 3px solid #333333;
  padding-left: 20px;
  margin: 20px 0;
}


/* 6. Gallery / Masonry Grid */
/* ========================================================================== */

.gallery {
  columns: 3;
  column-gap: 4px;
  padding: 4px;
  background: #ffffff;
}

.gallery a {
  display: block;
  break-inside: avoid;
  margin-bottom: 4px;
}

.gallery img {
  width: 100%;
  display: block;
  transition: opacity 0.2s;
}

.gallery a:hover img {
  opacity: 0.9;
}


/* 7. Buttons */
/* ========================================================================== */

.btn-outline {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  margin-top: 10px;
}

.btn-outline:hover {
  background: #ffffff;
  color: #333333;
}

/* Dark variant — for use on white backgrounds */
.btn-outline-dark {
  border-color: #333333;
  color: #333333;
}

.btn-outline-dark:hover {
  background: #333333;
  color: #ffffff;
}


/* 8. Footer */
/* ========================================================================== */

footer {
  background: #222222;
  color: #ffffff;
  text-align: center;
  padding: 30px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 8px;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}


/* 9. Responsive (≤768px) */
/* ========================================================================== */

@media (max-width: 768px) {

  /* Nav: hide links, show hamburger */
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  nav {
    padding: 15px 20px;
  }

  /* Hero */
  .hero-content h1,
  .page-header h1 {
    font-size: 42px;
    letter-spacing: 4px;
  }

  .hero-content .subtitle {
    font-size: 15px;
  }

  /* Split row: stack vertically */
  .split-row {
    flex-direction: column;
  }

  .split-row .image-col {
    min-height: 300px;
  }

  .split-row .text-col {
    padding: 40px 30px;
  }

  .split-row .text-col h2 {
    font-size: 30px;
  }

  /* Gallery: 2 columns */
  .gallery {
    columns: 2;
  }

}

@media (max-width: 480px) {

  /* Gallery: 1 column */
  .gallery {
    columns: 1;
  }

  .hero-content h1,
  .page-header h1 {
    font-size: 32px;
    letter-spacing: 3px;
  }

}
