/* ========================================
   Flatow Furniture — Subpage Styles
   ======================================== */

/* --- Page Hero --- */
.page-hero {
  width: 100%;
  height: 50vh;
  overflow: hidden;
  position: relative;
}

.page-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-hero {
  height: 100vh;
}

@media (max-width: 600px) {
  .about-hero {
    height: 60vh;
  }
}

/* --- Page Content --- */
.page-content {
  padding: 60px 40px 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-content .section-title {
  margin-bottom: 40px;
}

.page-body p {
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.8;
}

.page-body.narrow {
  max-width: 700px;
}

/* --- Active Nav --- */
.main-nav a.active,
.mobile-nav a.active {
  font-weight: 500;
  font-size: 1.9rem;
}

/* --- About Page --- */
.about-page {
  max-width: 1300px;
}

.about-page .about-image {
  position: sticky;
  top: 80px;
  align-self: start;
}

.about-page .about-text p {
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.8;
}

/* --- Contact Page --- */
.contact-email {
  margin: 30px 0;
  font-size: 1.1rem;
}

.contact-address {
  margin-top: 40px;
}

.contact-address h2 {
  font-weight: 400;
  font-style: normal;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

/* --- Journal Page --- */
.journal-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.journal-entry {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 40px;
}

.journal-meta {
  margin-bottom: 12px;
}

.journal-date {
  font-size: 0.85rem;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

.journal-title {
  font-weight: 400;
  font-style: normal;
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 16px;
}

.journal-excerpt {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.3s ease;
}

.read-more:hover {
  opacity: 0.7;
}

/* --- Article Page --- */
.article-content {
  max-width: 800px;
}

.article-meta {
  margin-bottom: 10px;
}

.article-hero-image {
  width: 100%;
  height: auto;
  margin-bottom: 40px;
}

.article-body p {
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.8;
}

.article-body h2 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 40px 0 20px;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 40px 0;
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px 24px;
  font-size: 1rem;
  line-height: 1.8;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-image-row {
  display: flex;
  gap: 12px;
  margin: 30px 0;
}

.article-image-row img {
  flex: 1;
  min-width: 0;
  height: auto;
  object-fit: cover;
}

@media (max-width: 600px) {
  .article-image-row {
    flex-wrap: wrap;
  }
  .article-image-row img {
    flex: 1 1 45%;
  }
}

/* --- FAQ Page --- */
.faq-category {
  margin-bottom: 50px;
}

.faq-category h2 {
  font-weight: 400;
  font-style: normal;
  font-size: 1.6rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.faq-item {
  margin-bottom: 24px;
}

.faq-item details {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 400;
  font-size: 1rem;
  padding: 8px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item summary::before {
  content: '\2304';
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.faq-item details[open] summary::before {
  transform: rotate(180deg);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item .faq-answer {
  padding: 8px 0 0 26px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text);
}

.faq-item .faq-answer p {
  margin-bottom: 12px;
}

/* --- Design Page --- */

/* Hero with overlay */
.design-hero {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.design-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.design-page-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  text-align: left;
  text-wrap: balance;
  margin: 0 0 1.5rem;
}

/* Design page content */
.design-page {
  max-width: 1200px;
}

.design-intro {
  margin-bottom: 60px;
}

.design-intro p {
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.8;
}

.design-intro ul {
  margin: 0 0 18px 24px;
  font-size: 1rem;
  line-height: 1.8;
}

.design-intro li {
  margin-bottom: 6px;
}

/* Split sections (text + image side by side) */
.design-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--color-border);
}

.design-split--reverse {
  direction: rtl;
}

.design-split--reverse > * {
  direction: ltr;
}

.design-split-text h2 {
  font-weight: 400;
  font-style: normal;
  font-size: 2.1rem;
  margin-bottom: 20px;
  line-height: 1.25;
}

.design-split-text h3 {
  font-weight: 500;
  font-style: normal;
  font-size: 1.2rem;
  margin: 24px 0 10px;
}

.design-split-text h3:first-of-type {
  margin-top: 0;
}

.design-split-text p {
  margin-bottom: 14px;
  font-size: 1rem;
  line-height: 1.8;
}

.design-split-text ul {
  margin: 0 0 14px 24px;
  font-size: 1rem;
  line-height: 1.8;
}

.design-split-text li {
  margin-bottom: 6px;
}

.design-split-image {
  position: sticky;
  top: 100px;
  align-self: start;
}

.design-split-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Process section */
.design-process-section {
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--color-border);
}

.design-process-title {
  font-weight: 400;
  font-style: normal;
  font-size: 2.6rem;
  margin-bottom: 30px;
}

.design-process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 40px;
}

.design-process-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* Accordion steps */
.design-steps {
  display: flex;
  flex-direction: column;
}

.design-step {
  border-bottom: 1px solid var(--color-border);
}

.design-step summary {
  cursor: pointer;
  padding: 20px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.design-step summary::-webkit-details-marker {
  display: none;
}

.design-step-title {
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
}

.design-step summary::after {
  content: '\2304';
  font-size: 1.6rem;
  line-height: 1;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.design-step[open] summary::after {
  transform: rotate(180deg);
}

.design-step-content {
  padding: 0 0 24px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.design-step-content p {
  margin-bottom: 12px;
}

.design-step-content h3 {
  font-weight: 500;
  font-style: normal;
  font-size: 1rem;
  margin: 20px 0 8px;
}

.design-step-content ul,
.design-step-content ol {
  margin: 0 0 12px 24px;
  line-height: 1.8;
}

.design-step-content li {
  margin-bottom: 4px;
}

/* CTA section */
.cta-section {
  background: var(--color-bg-white);
  padding: 50px 40px;
  text-align: center;
  margin-top: 40px;
}

.cta-section h2 {
  font-weight: 400;
  font-style: normal;
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.cta-section p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
}

.cta-section ol {
  display: inline-block;
  text-align: left;
  margin: 0 0 20px 24px;
  font-size: 1rem;
  line-height: 1.8;
}

.cta-section li {
  margin-bottom: 6px;
}

.cta-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.cta-contact .email-link {
  font-size: 1.1rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .page-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .page-hero {
    height: 35vh;
  }

  .design-hero {
    height: 60vh;
  }

  .design-hero-overlay {
    padding: 24px;
  }

  .about-page .about-image {
    position: static;
  }

  .design-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .design-split--reverse {
    direction: ltr;
  }

  .design-split-image {
    position: static;
    order: -1;
  }

  .design-split--reverse .design-split-image {
    order: -1;
  }

  .design-process-grid img {
    height: 200px;
  }

  .design-step-title {
    font-size: 1.3rem;
  }

  .cta-section {
    padding: 40px 24px;
  }
}

@media (max-width: 500px) {
  .design-process-grid {
    grid-template-columns: 1fr;
  }
}
