/* ================================
   INNER PAGES
   ================================ */

.page-hero {
  padding: 9rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero.dark {
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
  color: var(--white);
}

.page-hero.light {
  background: linear-gradient(180deg, var(--bone) 0%, #fff 100%);
  color: var(--black);
}

.page-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: end;
}

@media (max-width: 900px) {
  .page-hero .container { grid-template-columns: 1fr; gap: 2rem; }
}

.page-hero .eyebrow { display: block; margin-bottom: 1.25rem; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 6rem);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
.page-hero h1 em { color: var(--red); font-style: italic; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; line-height: 1.6; max-width: 56ch; }
.page-hero.light p { color: var(--grey-700); }

/* Door grid */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.door-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-luxe), box-shadow 0.4s var(--ease-luxe);
  cursor: pointer;
  position: relative;
}

.door-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.25);
}

.door-card .img-wrap {
  aspect-ratio: 3/4;
  background: var(--grey-100);
  position: relative;
  overflow: hidden;
}

.door-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-luxe);
}

.door-card:hover .img-wrap img { transform: scale(1.04); }

.door-card .badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.door-card .info {
  padding: 1.25rem 1.25rem 1.5rem;
}

.door-card .info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--black);
}

.door-card .info .finish {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-500);
}

/* Stats / value strip */
.value-strip {
  background: var(--charcoal);
  color: var(--white);
  padding: 5rem 2rem;
}

.value-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

@media (max-width: 800px) { .value-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }

.value-item {
  text-align: left;
}

.value-item .num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--red);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.value-item h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.value-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* Quote / Contact form layout */
.form-page {
  padding: 9rem 2rem 6rem;
  background: var(--bone);
  min-height: 100vh;
}

.form-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) { .form-container { grid-template-columns: 1fr; gap: 3rem; } }

.form-side h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 1.25rem;
  font-weight: 400;
}
.form-side h1 em { color: var(--red); font-style: italic; }

.form-side p { color: var(--grey-700); margin-bottom: 2rem; line-height: 1.6; }

.form-side .info-block { padding-bottom: 1rem; }
.form-side .info-block .label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-500); margin-bottom: 0.4rem; display: block; }
.form-side .info-block .value { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4; }
.form-side .info-block .value a:hover { color: var(--red); }

.form-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 6px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.15);
}

.form-card h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-card > p {
  color: var(--grey-500);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.form-card form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-card .form-grid { gap: 1.25rem; }

.form-card button[type="submit"] {
  margin-top: 1rem;
  align-self: flex-start;
}

/* Form grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-grid .field.full { grid-column: 1 / -1; }
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Floating-label fields */
.field {
  position: relative;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 1.4rem 1rem 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bone);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--grey-500) 50%),
                    linear-gradient(135deg, var(--grey-500) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(230, 33, 40, 0.08);
}
.field label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 0.95rem;
  color: var(--grey-500);
  font-family: var(--font-sans);
  pointer-events: none;
  transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease;
  background: transparent;
  max-width: calc(100% - 2rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:not([value=""]):valid + label {
  top: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  font-family: var(--font-mono);
}
/* For selects: float label whenever an option is selected */
.field select:not(:invalid) + label {
  top: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  font-family: var(--font-mono);
}

/* Form status messages */
.form-status {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}
.form-status.show {
  display: block;
  animation: fadeIn 0.3s ease;
}
.form-status.success {
  background: rgba(34, 139, 34, 0.08);
  color: #1d6d1d;
  border-left: 3px solid #1d6d1d;
}
.form-status.error {
  background: rgba(230, 33, 40, 0.08);
  color: var(--red);
  border-left: 3px solid var(--red);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Showroom page specifics */
.hours-table {
  display: grid;
  gap: 0;
  margin: 2rem 0;
}

.hours-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  align-items: center;
}

.hours-row:last-child { border-bottom: none; }

.hours-row .day { font-weight: 500; font-size: 0.95rem; }
.hours-row .time { font-family: var(--font-mono); font-size: 0.85rem; color: var(--grey-700); letter-spacing: 0.05em; }
.hours-row.closed .time { color: var(--grey-500); }

.large-map {
  aspect-ratio: 16/10;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.2);
}
.large-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Info icon row */
.icon-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

@media (max-width: 800px) { .icon-cards { grid-template-columns: 1fr; } }

.icon-card {
  background: #fff;
  padding: 2rem;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.06);
}
.icon-card .icon {
  width: 44px;
  height: 44px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.icon-card h4 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.5rem; font-weight: 500; }
.icon-card p { color: var(--grey-700); font-size: 0.9rem; line-height: 1.5; }

/* Door visualization for collection page (CSS-built doors) */
.door-visual {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  position: relative;
}
.door-visual.exterior-1 { background: linear-gradient(135deg, #2d1f10 0%, #6b4a28 50%, #2d1f10 100%); }
.door-visual.exterior-2 { background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%); }
.door-visual.exterior-3 { background: linear-gradient(180deg, #354048 0%, #1a2228 100%); }
.door-visual.exterior-4 { background: linear-gradient(135deg, #5a3d28 0%, #8a6d48 50%, #5a3d28 100%); }
.door-visual.interior-1 { background: linear-gradient(180deg, #fafaf8 0%, #ebebe6 100%); border: 1px solid #ddd; }
.door-visual.interior-2 { background: linear-gradient(180deg, #d8d3c8 0%, #b8b3a8 100%); }
.door-visual.interior-3 { background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%); }
.door-visual.hidden-1 { background: linear-gradient(135deg, #c9b896 0%, #8a7a5e 100%); }
.door-visual.hidden-2 { background: linear-gradient(180deg, #f0ede8 0%, #c9b896 100%); }
.door-visual.hidden-3 { background: linear-gradient(180deg, #2a2a2a 0%, #0a0a0a 100%); }

/* ================================
   RESOURCES — index grid
   ================================ */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 800px) {
  .resource-grid { grid-template-columns: 1fr; }
}

.resource-card {
  display: block;
  background: #fff;
  padding: 2rem 2rem 1.75rem;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.06);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.4s var(--ease-luxe), box-shadow 0.4s var(--ease-luxe), border-color 0.4s ease;
}
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.18);
  border-color: var(--red);
}
.resource-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.resource-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: var(--ink);
}
.resource-card p {
  color: var(--grey-700);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}
.resource-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
}

/* ================================
   ARTICLE — individual resource pages
   ================================ */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}
.article-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.article-meta .tag { color: var(--red); }
.article-meta .dot { color: var(--grey-300); }

.article h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 400;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}
.article h1 em { color: var(--red); font-style: italic; }
.article-lead {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--grey-700);
  font-style: italic;
  margin: 0 0 3rem;
  border-left: 3px solid var(--red);
  padding-left: 1.25rem;
}

.article h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 3rem 0 1.25rem;
  letter-spacing: -0.005em;
}
.article h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.005em;
}
.article p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--grey-700);
  margin: 0 0 1.5rem;
}
.article p strong { color: var(--ink); font-weight: 600; }
.article a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article a:hover { text-decoration-thickness: 2px; }
.article ul, .article ol {
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
}
.article li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--grey-700);
  margin-bottom: 0.5rem;
}

.article blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--bone);
  border-left: 3px solid var(--red);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
}

.article-fact {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
}
.article-fact .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
  display: block;
}
.article-fact p { color: rgba(255,255,255,0.9); margin: 0; }

.article-cta {
  margin: 4rem 0 2rem;
  padding: 2.5rem;
  background: var(--bone);
  border-radius: 6px;
  text-align: center;
}
.article-cta h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
}
.article-cta h3 em { color: var(--red); font-style: italic; }
.article-cta p { margin: 0 0 1.5rem; }

.article-faq {
  margin: 3rem 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 2.5rem;
}
.article-faq h2 { margin-top: 0; }
.article-faq details {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 1rem 0;
}
.article-faq details summary {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
  color: var(--ink);
}
.article-faq details summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5rem;
  color: var(--red);
  transition: transform 0.3s;
}
.article-faq details[open] summary::after { transform: rotate(45deg); }
.article-faq details p {
  margin: 1rem 0 0;
  font-size: 1rem;
}

.article-related {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.article-related h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 600px) { .article-related-grid { grid-template-columns: 1fr; } }
.article-related a {
  display: block;
  padding: 1.25rem;
  background: var(--bone);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.3s;
}
.article-related a:hover { background: rgba(230,33,40,0.08); text-decoration: none; }
.article-related a strong { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; margin-bottom: 0.25rem; }
.article-related a span { font-size: 0.85rem; color: var(--grey-700); }
