/* ==============================
   BASE / RESET (Mobile-first)
============================== */

* { box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #4a3f2f;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;

  background-image: url('../images/constellation-background-dark.jpg');
  background-size: auto;
  background-position: center;
  background-repeat: repeat;
}

/* ==============================
   TYPOGRAPHY (Mobile-first)
============================== */

h1, h2, h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #2c2c2c;
  line-height: 1.2;
  margin: 0 auto 0.8em;
}

h1 { font-size: clamp(1.8rem, 5.5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.3rem, 3.5vw, 1.8rem); }

/* Unified readable width/alignment inside content */
.content-inner h1,
.content-inner h2,
.content-inner p.content-p,
.content-inner ul,
.content-inner ol,
.content-inner address,
.intro-text {
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  text-align: left;
  padding-left: 0;
  padding-right: 0;
}


.content-inner h3 {
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}

/* Intro & paragraphs */
.intro-text,
.content-inner p.content-p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #4a3f2f;
  margin-bottom: 1.5rem;
}

/* ==============================
   SHINY BRONZE TITLES
============================== */

/* Slight left hang for content headings only (not hero/banner) */
h1.page-title,
h6.product-title {
  display: block;
  margin-left: -0.4rem;
  padding-left: 0.4rem;

  background: linear-gradient(
    to right,
    #8c6239 0%,
    #c9a36a 30%,
    #f5e6c8 50%,
    #c9a36a 70%,
    #8c6239 100%
  );
  background-size: 100%;

  box-shadow:
    0 0 6px rgba(201,163,106,0.4),
    inset 0 0 3px rgba(255,255,255,0.4);
}

/* Small bronze rule under normal content H2s */
.content-inner h2::after {
  content: "";
  display: block;
  width: 1in;
  max-width: 90px;
  height: 2px;
  margin: 0.5rem 0 1.2rem;
  border-radius: 2px;

  background: linear-gradient(
    to right,
    #8c6239 0%,
    #c9a36a 30%,
    #f5e6c8 50%,
    #c9a36a 70%,
    #8c6239 100%
  );
}

/* ==============================
   MAIN CONTENT STRUCTURE
============================== */

.main-content {
  position: relative;
  width: 100%;
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.content-inner {
  width: min(92%, 60rem);
  background-color: rgba(173, 216, 230, 0.85);
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  margin: 0 auto;
}

/* Custom paw bullets */
.content-inner ul li {
  list-style: none;
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.8em;
}

.content-inner ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.03em;
  width: 1.3em;
  height: 1.3em;
  background-image: url('../images/paw-cursor.png');
  background-size: contain;
  background-repeat: no-repeat;
}

/* ==============================
   FORMAL PAGES - FAQ / PRIVACY / TERMS
============================== */

/* Disable paw bullets on formal / legal pages */
ul.formal-list li {
  list-style: disc;
  padding-left: 0;
  margin-left: 1.25em;
}

ul.formal-list li::before {
  content: none;
  background-image: none;
}

/* Make sure headings can host pseudo-elements cleanly */
.formal-title,
.formal-h2 {
  position: relative;
}

/* Main document title */
.formal-title {
  margin: 0 0 1.25rem;
  line-height: 1.15;
  padding-bottom: 0.85rem;
}

/* Section headings */
.formal-h2 {
  margin: 2rem 0 0.75rem;
  line-height: 1.2;
  padding-bottom: 0.45rem;
}

/* long bronze rule under title */
h1.formal-title::after,
h3.order-card-name::after {
  content: "";
  display: block;
  max-width: 60rem;
  height: 2px;
  margin: 0.5rem 0 1.2rem;
  border-radius: 2px;

  background: linear-gradient(
    to right,
    #8c6239 0%,
    #c9a36a 30%,
    #f5e6c8 50%,
    #c9a36a 70%,
    #8c6239 100%
  );
}

/* ==============================
   FEATURED IMAGES
============================== */

.featured-image {
  max-width: 100%;
  margin: 2rem auto;
  text-align: center;
}

.featured-image img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #CD7F32;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
  max-width: 100%;
}

.featured-images {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2.5rem 0;
}

.featured-images .featured-image {
  max-width: 100%;
  margin: 0;
}

.featured-image figcaption {
  margin-top: 0.75rem;
  font-style: italic;
  font-size: 0.95rem;
  color: #333;
  text-align: center;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* ==============================
   SPECIAL ELEMENTS
============================== */

.site-status {
  text-align: center;
  width: 100%;
  margin: 0.5rem auto 1.5rem;
  font-size: 0.9rem;
  color: #333;
  opacity: 0.9;
  padding: 0 1rem;
}

.status-open {
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-right: 0.3rem;
  font-size: 0.95rem;
}

.glow {
  color: #8ffbff;
  animation: softGlow 3.5s ease-in-out infinite;
}

@keyframes softGlow {
  0% { opacity: 0.5; text-shadow: 0 0 4px rgba(143, 184, 255, 0.2); }
  50% { opacity: 1; text-shadow: 0 0 6px rgba(143, 184, 255, 0.45), 0 0 12px rgba(143, 184, 255, 0.25); }
  100% { opacity: 0.5; text-shadow: 0 0 4px rgba(143, 184, 255, 0.2); }
}

/* Home button */
.home-button {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  padding: 0.5em 1em;
  font-size: 0.95rem;
  font-weight: bold;
  text-decoration: none;
  color: #CD7F32;
  text-shadow:
    -1px -1px 0 #001F4D,
     1px -1px 0 #001F4D,
    -1px  1px 0 #001F4D,
     1px  1px 0 #001F4D;
  background: linear-gradient(to bottom, #0066cc, #003366);
  border: 2px solid #001F4D;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  min-height: 44px;
  min-width: 120px;
  text-align: center;
}

.home-button:hover {
  background: linear-gradient(to bottom, #3399ff, #004080);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* Tip jar button */
.tip-jar-button {
  display: inline-block;
  margin: 0.5rem 0;
  border: none;
  padding: 0;
}

.tip-jar-button:hover {
  animation: tilt 0.5s ease-in-out;
}

@keyframes tilt {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-10deg); }
  40% { transform: rotate(10deg); }
  60% { transform: rotate(-10deg); }
  80% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}

/* Custom paw cursor */
a, button, .home-button, .tip-jar-button, #quote-box, #snow-box,
input[type="button"], input[type="submit"], .photo-trigger, .featured-image button,
.gallery-item, .gallery-item a, .gallery-item a *, .testimonial-item, .testimonial-item *,
.clickable {
  cursor: url('../images/paw-cursor.png') 8 0, pointer !important;
}

a:hover, button:hover, .home-button:hover, #quote-box:hover, #snow-box:hover,
.gallery-item:hover, .testimonial-item:hover {
  cursor: url('../images/paw-cursor.png') 8 0, pointer !important;
}

/* ==============================
   PAGE BREAK – BRONZE GRADIENT
   (replaces the old flat line)
============================== */
.page-break {
  border: none;
  height: 2px;
  width: 80%;
  max-width: 600px;
  margin: 3rem auto;
  border-radius: 3px;

  /* bronze metal gleam */
  background: linear-gradient(
    to right,
    #8c6239 0%,
    #c9a36a 30%,
    #f5e6c8 50%,
    #c9a36a 70%,
    #8c6239 100%
  );

  /* subtle lift like polished metal */
  box-shadow:
    0 2px 6px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.35);
}

/* Quote box: OFF by default (mobile-first) */
#quote-box { display: none; }

/* ==============================
   BREAKPOINTS (Progressive Enhancements)
============================== */

@media (min-width: 480px) {
  body { background-size: 60%; }
  .content-inner { padding: 2.5rem; max-width: 88%; }
}

@media (min-width: 768px) {
  body { background-size: 45%; }

  .content-inner {
    padding: 3.5rem;
    max-width: 980px;
  }

  .featured-images {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 900px;
    margin: 2.5rem auto;
  }

  .featured-image { max-width: 400px; }
  .featured-image img { max-width: 400px; }

  .formal-page { padding: 1rem 0 3rem; }
}

@media (min-width: 900px) {
  #quote-box {
    display: block;
    position: absolute;
    top: 0;
    left: 5.4rem;
    width: 260px;
    padding: 1.2rem;
    background-color: rgba(173, 216, 230, 0.55);
    color: #4a3f2f;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.4;
    z-index: 10;
    transition: all 0.3s ease;
    cursor: url('../images/paw-cursor.png') 8 0, pointer;

    margin-top: calc(1rem + 1.3rem);
  }

  #quote-box:hover {
    background-color: #5ba0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  }
}

@media (min-width: 1024px) {
  body { background-size: 35%; }

  .content-inner {
    max-width: 1100px;
    padding: 4rem;
  }

  #quote-box { width: 300px; }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  .glow, #quote-box:hover, .home-button:hover, .tip-jar-button:hover {
    animation: none;
    transition: none;
    transform: none;
  }
}

/* Hide floating quote box on phones */
@media (max-width: 768px) {
  #quote-box {
    display: none !important;
  }
}

/* Prevent overlap on smaller screens/tablets */
@media (max-width: 1024px) {
  #quote-box {
    position: static !important;
    margin: 1rem 0 !important;
  }
}
