/* PawsomeNest™ Calming Orthopedic Dog Bed Storybook CSS */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@300;400;500;600;700&family=Caveat:wght@600&display=swap');

:root {
  --bg-primary: #fdfaf6;
  --bg-secondary: #f6efe2;
  --bg-cozy-card: #ffffff;
  --accent-brown: #966f4c;
  --accent-brown-light: rgba(150, 111, 76, 0.07);
  --accent-sage: #6b8a7a;
  --text-main: #4a443e;
  --text-muted: #8c8378;
  --shadow-plush: 0 16px 36px rgba(150, 111, 76, 0.06);
  --border-cozy: 1.5px dashed rgba(150, 111, 76, 0.15);
  --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Nunito', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  color: #35302c;
  letter-spacing: -0.01em;
}

.handwritten {
  font-family: 'Caveat', cursive;
  font-size: 24px;
  color: var(--accent-brown);
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Wavy Section Separator */
.wave-divider {
  width: 100%;
  height: 60px;
  background-color: var(--bg-secondary);
  clip-path: ellipse(65% 100% at 50% 0%);
}

.wave-divider-reverse {
  width: 100%;
  height: 60px;
  background-color: var(--bg-secondary);
  clip-path: ellipse(65% 100% at 50% 100%);
}

/* Header */
header {
  border-bottom: 1.5px dashed rgba(150, 111, 76, 0.15);
  background-color: #ffffff;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-brown);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
  padding: 8px 18px;
  border-radius: 30px;
  border: 1.5px solid rgba(150, 111, 76, 0.15);
  background: #fff;
  font-family: 'Fredoka', sans-serif;
}

.back-btn:hover {
  background: var(--accent-brown-light);
  transform: scale(1.05) rotate(-1deg);
}

.logo {
  font-family: 'Fredoka', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--accent-brown);
}

/* Storybook Hero Block */
.hero {
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
}

.tagline {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-brown);
  background: var(--accent-brown-light);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
  border: 1px solid rgba(150, 111, 76, 0.12);
  font-family: 'Fredoka', sans-serif;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 50px);
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--accent-sage);
}

.hero p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* Polaroid Media Frame with Tape */
.polaroid-frame {
  background: #ffffff;
  padding: 16px 16px 44px 16px;
  box-shadow: 0 20px 40px rgba(150, 111, 76, 0.07);
  border-radius: 2px;
  transform: rotate(-1.8deg);
  border: 1px solid rgba(150, 111, 76, 0.06);
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}

/* Realistic tape effect at top of polaroid */
.polaroid-frame::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 100px;
  height: 30px;
  background-color: rgba(246, 239, 226, 0.6);
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  border: 1px dashed rgba(150, 111, 76, 0.1);
  z-index: 10;
}

.polaroid-img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  display: block;
}

.polaroid-caption {
  text-align: center;
  margin-top: 20px;
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: var(--accent-brown);
  line-height: 1;
}

/* Cushion Size Selector */
.size-selector {
  margin-bottom: 30px;
}

.size-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: 'Fredoka', sans-serif;
}

.size-cushions {
  display: flex;
  gap: 12px;
}

@media (max-width: 968px) {
  .size-cushions {
    justify-content: center;
  }
}

.cushion-btn {
  background: #ffffff;
  border: 1.5px solid rgba(150, 111, 76, 0.12);
  color: var(--text-main);
  padding: 12px 20px;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  transition: var(--transition);
  box-shadow: var(--shadow-plush);
}

.cushion-btn:hover {
  transform: translateY(-3px) rotate(1deg) scale(1.03);
  border-color: var(--accent-brown);
}

.cushion-btn.active {
  background: var(--accent-brown-light);
  border-color: var(--accent-brown);
  color: var(--accent-brown);
  transform: translateY(-2px) scale(1.05);
}

.size-description {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Pricing Display */
.price-display {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 36px;
  font-weight: 600;
  color: #35302c;
  font-family: 'Fredoka', sans-serif;
}

@media (max-width: 968px) {
  .price-display {
    justify-content: center;
  }
}

.price-strike {
  font-size: 18px;
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 400;
}

/* Cozy Buy Button */
.cozy-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--accent-brown);
  color: #ffffff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 16px;
  padding: 16px 36px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(150, 111, 76, 0.2);
  transition: var(--transition);
  text-decoration: none;
}

.cozy-btn:hover {
  transform: translateY(-3px) scale(1.03);
  background-color: #835f3f;
  box-shadow: 0 10px 25px rgba(150, 111, 76, 0.3);
}

.cozy-btn:active {
  transform: translateY(-1px);
}

.cozy-btn svg {
  width: 16px;
  height: 16px;
}

.guarantee-disclaimer {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Timeline: A day in the life */
.timeline-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
}

.section-title {
  text-align: center;
  font-size: 36px;
  color: #35302c;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 50px auto;
  font-size: 15px;
}

.timeline-feed {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

/* Dotted hand-drawn timeline connector */
.timeline-feed::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  border-left: 2px dotted var(--accent-brown);
  opacity: 0.35;
}

@media (max-width: 768px) {
  .timeline-feed::before {
    left: 20px;
  }
}

.timeline-item {
  display: flex;
  margin-bottom: 60px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-node {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1.5px dashed var(--accent-brown);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-size: 18px;
  box-shadow: var(--shadow-plush);
}

@media (max-width: 768px) {
  .timeline-node {
    left: 20px;
    transform: none;
  }
}

.timeline-content {
  width: 44%;
  background: var(--bg-cozy-card);
  padding: 28px;
  border-radius: 16px;
  box-shadow: var(--shadow-plush);
  border: 1px solid rgba(150, 111, 76, 0.04);
}

@media (max-width: 768px) {
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px;
  }
}

.timeline-item.left .timeline-content {
  margin-left: auto;
}

.timeline-item.right .timeline-content {
  margin-right: auto;
}

.timeline-content span.time {
  font-family: 'Fredoka', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-sage);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}

.timeline-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #35302c;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Polaroid Reviews Section */
.reviews-section {
  padding: 100px 0;
}

.reviews-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.polaroid-review {
  background: #ffffff;
  padding: 24px 24px 36px 24px;
  box-shadow: 0 12px 30px rgba(150, 111, 76, 0.04);
  border: 1px solid rgba(150, 111, 76, 0.06);
  border-radius: 2px;
  transition: var(--transition);
  position: relative;
}

/* Small tape at review tops */
.polaroid-review::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 30px;
  width: 50px;
  height: 20px;
  background-color: rgba(246, 239, 226, 0.4);
  border: 1px dashed rgba(150, 111, 76, 0.1);
  transform: rotate(-5deg);
}

.polaroid-review:hover {
  transform: scale(1.04) rotate(1deg);
  box-shadow: 0 15px 35px rgba(150, 111, 76, 0.08);
  z-index: 10;
}

.polaroid-review:nth-child(1) { transform: rotate(-1.5deg); }
.polaroid-review:nth-child(2) { transform: rotate(2deg); }
.polaroid-review:nth-child(3) { transform: rotate(-0.5deg); }

.review-stars {
  color: #d4a373;
  font-size: 13px;
  margin-bottom: 12px;
}

.review-body {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 80px;
}

.review-sig {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: var(--accent-brown);
  border-top: 1.5px dashed rgba(150, 111, 76, 0.1);
  padding-top: 10px;
  line-height: 1;
}

/* FAQ Simple Cards */
.faq-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
}

.faq-feed {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(150, 111, 76, 0.04);
  padding: 24px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.01);
}

.faq-q {
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #35302c;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q::after {
  content: '▼';
  font-size: 10px;
  color: var(--accent-brown);
  transition: var(--transition);
}

.faq-card.active .faq-q::after {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 0;
}

.faq-card.active .faq-a {
  max-height: 150px;
  margin-top: 12px;
}

/* Footer Cozy */
footer {
  padding: 60px 0;
  background: #ffffff;
  border-top: 1px solid rgba(150, 111, 76, 0.08);
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Fredoka', sans-serif;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--accent-brown);
}

footer p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 16px;
}
