/*
 * ARCnow House Plans Styles
 * File: /house-plans/house-plans.css
 * Depends on: /site.css
 */

body {
  color: var(--white);
  background:
    radial-gradient(circle at 20% 0%, rgba(38, 64, 108, 0.30), transparent 34rem),
    linear-gradient(135deg, var(--navy-3) 0%, var(--navy) 42%, var(--navy-2) 100%);
}

button,
input,
textarea {
  font: inherit;
}

.hero {
  min-height: 58vh;
  display: flex;
  align-items: center;
  padding: 96px 24px;
  background-image:
    linear-gradient(rgba(16, 25, 35, 0.72), rgba(16, 25, 35, 0.94)),
    url("designs/arcnow-residential-beacon-rb001.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-content {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.hero .eyebrow {
  margin: 0 0 12px;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.95;
  text-align: left;
}

.hero p:last-child {
  max-width: 760px;
  color: rgba(var(--white-rgb), .82);
  font-size: 1.15rem;
  line-height: 1.7;
  text-align: left;
}

/* Plans */

.plans-section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 32px 60px;
}

.plans-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 92px, rgba(var(--gold-rgb), 0.90) 92px, transparent 94px),
    repeating-linear-gradient(-135deg, transparent 0 92px, rgba(var(--gold-rgb), 0.55) 92px, transparent 94px);
}

.section-heading,
.plans-grid {
  position: relative;
  z-index: 1;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.plan-card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(16, 28, 48, 0.98), rgba(7, 17, 31, 0.98));
  border: 1px solid rgba(var(--gold-rgb), 0.58);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.42),
    0 0 22px rgba(var(--gold-rgb), 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  overflow: visible;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.plan-card::before,
.plan-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

/* Horizontal drafting line extensions */
.plan-card::before {
  left: -12px;
  right: -12px;
  top: -1px;
  bottom: -1px;
  border-top: 1px solid rgba(var(--gold-rgb), 0.72);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.72);
}

/* Vertical drafting line extensions */
.plan-card::after {
  top: -12px;
  bottom: -12px;
  left: -1px;
  right: -1px;
  border-left: 1px solid rgba(var(--gold-rgb), 0.72);
  border-right: 1px solid rgba(var(--gold-rgb), 0.72);
}

.plan-card:hover,
.plan-card:focus-within {
  border-color: rgba(var(--gold-rgb), 0.86);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.48),
    0 0 30px rgba(var(--gold-rgb), 0.24),
    inset 0 0 0 1px rgba(var(--gold-rgb), 0.13);
  transform: translateY(-2px);
}


.plan-media {
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.plan-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition:
    filter 0.25s ease,
    transform 0.25s ease;
}

.plan-media:hover img,
.plan-card:focus-within .plan-media img {
  filter: brightness(1.03);
  transform: scale(1.02);
}

.plan-content {
  position: relative;
  z-index: 2;
  padding: 12px 26px 26px;
}

.plan-id {
  margin-bottom: 14px;
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan-content h3 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.plan-content p {
  color: var(--muted);
  line-height: 1.65;
}

.plan-button,
.contact-button,
.request-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #16120a;
  font-weight: 700;
  cursor: pointer;
}

.plan-button {
  position: absolute;
  left: 12px;
  bottom: 12px;
  min-height: auto;
  padding: 8px 14px;
  font-size: 0.85rem;
  line-height: 1;
  opacity: 0.75;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    filter 0.2s ease;
}

.plan-button:hover,
.plan-button:focus-visible,
.plan-media:hover .plan-button,
.plan-card:focus-within .plan-button {
  opacity: 1;
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.contact-button:hover,
.request-submit:hover {
  filter: brightness(1.08);
}

/* Contact */

.contact-section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto 80px;
  padding: 36px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(16, 28, 48, 0.96), rgba(7, 17, 31, 0.96));
  border: 1px solid rgba(var(--gold-rgb), 0.46);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.38),
    0 0 18px rgba(var(--gold-rgb), 0.12);
}

.contact-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.contact-section p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.65;
}

/* Design Details Component / Modal */

.plan-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: none;
  padding: 24px;
  overflow-y: auto;
}

.plan-modal.is-open {
  display: block;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.72);
}

.modal-window {
  position: relative;
  width: min(100%, 780px);
  margin: 5vh auto;
  padding: 34px;
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.modal-id {
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#modalDescription {
  color: var(--muted);
  line-height: 1.7;
}

.modal-design-summary {
  padding-right: 42px;
}

.request-section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.request-section h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.request-note {
  color: var(--muted);
  line-height: 1.65;
}

.design-options {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.design-options legend {
  padding: 0 8px;
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.design-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  color: var(--white);
  cursor: pointer;
}

.design-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.design-option strong,
.design-option small {
  display: block;
}

.design-option small {
  margin-top: 2px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field span {
  color: var(--white);
  font-weight: 700;
}

.form-field em {
  color: var(--gold-light);
  font-style: normal;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #101923;
  color: var(--white);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(224, 185, 95, 0.55);
  outline-offset: 2px;
}

.request-status {
  min-height: 24px;
  margin-top: 18px;
  color: var(--gold-light);
  font-weight: 700;
  line-height: 1.5;
}

.request-status.is-error {
  color: #ffb4a8;
}

.request-status.is-success {
  color: var(--gold-light);
}

.modal-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.request-submit[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.request-cancel {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 900px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .contact-section {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .contact-section h2,
  .contact-section p {
    text-align: center;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: auto;
    padding: 72px 20px;
  }

  .hero h1,
  .hero p:last-child {
    text-align: center;
  }

  .plans-section {
    padding: 28px 20px 52px;
  }

  .plan-content,
  .contact-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .modal-window {
    margin: 24px auto;
    padding: 28px 22px;
  }
}

/* v2.0: diagonal drafting texture is background-only. It is intentionally not applied to hero or design images. */
.hero::before,
.hero::after,
.plan-media::before,
.plan-media::after {
  content: none !important;
  display: none !important;
}

main {
  position: relative;
}
