/**
 * Dunamis Property - Global Stylesheet
 * Newport Residences, project pages, and shared form components
 */

.newport-hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Newport Hero - responsive picture element */
.hero-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #000;
  min-height: 400px;
}
.hero-wrapper picture,
.hero-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.hero-wrapper .hero-img {
  min-height: 400px;
}
@media (min-width: 768px) {
  .hero-wrapper {
    aspect-ratio: 16/9;
    min-height: 450px;
    max-height: 550px;
  }
  .hero-wrapper .hero-img {
    min-height: auto;
  }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(31, 40, 51, 0.5), rgba(31, 40, 51, 0.75));
}
.hero-content-box {
  text-align: center;
  padding: 30px;
  max-width: 95%;
}
.hero-content-box h1 {
  color: #ffffff;
  margin: 0;
  font-size: clamp(20px, 4vw, 32px);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: bold;
  line-height: 1.2;
  font-family: 'Playfair Display', serif;
}
.hero-content-box p {
  color: #77B2DC;
  margin: 10px 0 0 0;
  font-size: clamp(12px, 2.5vw, 16px);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Form - clean grid structure (Arina East / Newport) */
.strategy-form {
  padding: 80px 20px;
  background-color: #f4f8fb;
  color: #1f2833;
}
.strategy-form.strategy-form-white {
  background-color: #ffffff;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.form-box {
  background: #ffffff;
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1f2833;
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  display: block;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  margin-bottom: 20px;
  box-sizing: border-box;
}
.form-btn {
  width: 100%;
  height: auto;
  padding: 18px;
  background-color: #F37021;
  color: white;
  border: none;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
  font-family: 'Inter', sans-serif;
}
.form-btn:hover {
  background-color: #d9621c;
}
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Newport TOC */
.toc-nav {
  background: #f4f8fb;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  border-left: 4px solid #F37021;
}
.toc-nav h3 {
  color: #1f2833;
  margin: 0 0 15px 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.toc-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 15px;
  line-height: 2;
}
.toc-nav a {
  color: #77B2DC;
  text-decoration: none;
  font-weight: 500;
}
.toc-nav a:hover {
  color: #F37021;
}

/* Accordion triggers - Charcoal for structural elements (reserve Orange for CTAs) */
.accordion-trigger {
  background-color: #1f2833 !important;
  color: #ffffff !important;
  border-bottom: 2px solid #77B2DC;
  transition: background 0.3s ease;
}
.acc-input:checked ~ .accordion-trigger,
.accordion-trigger:hover {
  background-color: #77B2DC !important;
  color: #ffffff !important;
  border-bottom-color: #77B2DC;
}

/* Accordion - display toggle for reliable visibility (avoids height/overflow traps) */
.accordion-content {
  display: none;
  padding: 25px;
  background: white;
  color: #444 !important;
}
/* Checkbox trigger: input.acc-input is checked, not the label */
.acc-input:checked ~ .accordion-content {
  display: block !important;
}

/* Collection accordion - Charcoal with Blue accent (Newport) */
#the-collection .accordion-trigger {
  background-color: #1f2833 !important;
  border-bottom: 2px solid #77B2DC;
}
#the-collection .acc-input:checked ~ .accordion-trigger,
#the-collection .accordion-trigger:hover {
  background-color: #77B2DC !important;
}

/* FAQ - Dark Charcoal to ground the bottom of the page */
.faq-section-dark {
  background-color: #1f2833 !important;
  color: #ffffff;
}
.faq-section-dark h2,
.faq-section-dark .faq-subtitle {
  color: #ffffff !important;
}
.faq-section-dark .faq-subtitle {
  color: rgba(255, 255, 255, 0.8) !important;
}
.faq-section-dark .accordion-trigger {
  background-color: #1f2833 !important;
  color: #ffffff !important;
  border-bottom: 2px solid #77B2DC;
}
.faq-section-dark .acc-input:checked ~ .accordion-trigger,
.faq-section-dark .accordion-trigger:hover {
  background-color: #77B2DC !important;
  color: #ffffff !important;
}
/* FAQ Accordion Content Visibility Fix - white box with dark charcoal text (resolves white-on-white) */
.faq-section-dark .accordion-content {
  background-color: #ffffff !important;
  color: #1f2833 !important;
  padding: 20px 25px !important;
  display: none;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  border-top: 1px solid rgba(119, 178, 220, 0.2);
}
.faq-section-dark .accordion-content p {
  color: #1f2833 !important;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}
.faq-section-dark .acc-input:checked ~ .accordion-content {
  display: block !important;
}

/* Reserve Orange exclusively for primary CTA / Money Actions */
.form-btn,
.strategy-form .form-btn,
.btn-primary,
a.btn-primary,
.mid-cta-actions .btn-primary {
  background-color: #F37021 !important;
  box-shadow: 0 4px 15px rgba(243, 112, 33, 0.4);
}
.form-btn:hover,
.strategy-form .form-btn:hover,
a.btn-primary:hover {
  background-color: #d9621c !important;
  box-shadow: 0 6px 20px rgba(243, 112, 33, 0.45);
}

/* Direct Contact - Skip the Form section (Light Grey visual shelf before footer) */
.direct-contact-section {
  padding: 60px 20px;
  background-color: #f4f8fb;
  text-align: center;
  color: #1f2833;
  border-top: 1px solid rgba(31, 40, 51, 0.08);
  margin-bottom: 0;
}
.direct-contact-section .direct-box {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 45px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(31, 40, 51, 0.08);
}
.direct-contact-section .direct-box h3 {
  color: #1f2833;
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  margin-top: 0;
  margin-bottom: 10px;
}
.direct-contact-section .direct-box p {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 35px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.direct-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-wa {
  background: #25D366;
  color: white;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  margin: 10px;
  display: inline-block;
  transition: 0.3s;
}
.btn-wa:hover {
  background: #20bd5a;
  color: white;
}
.btn-call {
  background: #77B2DC;
  color: white;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  margin: 10px;
  display: inline-block;
  transition: 0.3s;
}
.btn-call:hover {
  background: #5a9fc9;
  color: white;
}
