/* Fonts Setup matching attachment */
@font-face {
  font-family: "Brandon Grotesque";
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/BrandonGrotesque-Regular.woff2) format("woff2");
}

/* Using local Minion Pro from project if available, otherwise mapped to MinionProRegular */
@font-face {
  font-family: "Minion Pro Regular";
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/MinionProRegular.ttf') format("truetype"); /* Adjusted path from attachment */
}

@font-face {
  font-family: "Inter Tight";
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/intertight/v1/Yq6N-LyRlpfA_7bnWMDIE7pB.woff2) format("woff2");
}

/* Variables matching attachment */
:root {
  --color-primary: #fefbf2;
  --color-dark: #2f2e2e;
  --color-text: #4d4c4c;
  --color-accent: #a59182;
  --color-white: #ffffff;
  --bricks-color-leyjvi: #ffffff;
  --icon-width: 63px;
  --icon-height: 18px;
  --line-height: 2px;
  --line-color: #000;
  --transition: 250ms ease-in-out;
  --background-swipe: #e9dfd2;
  --background-body: #f0f0f0;
  --line: #e5e1dc;
  --text: #2c2a27;
}

/* Override body styles for this page if needed, but handled by base.njk usually */
.contact-page-body {
  background-color: var(--color-primary);
  color: var(--color-text);
  line-height: 1.6;
}

/* Hero Section - Exact Styles */
.hero {
  position: relative;
  height: 100vh;
  /* background-image set inline in HTML for path resolution */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0));
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  padding: 0 20px;
}

#brxe-f04636 {
  color: var(--bricks-color-leyjvi);
  font-family: "Minion Pro Regular", serif; /* Fallback to serif */
  text-align: center;
  line-height: 1.4;
  letter-spacing: 5px;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 28px;
  margin-bottom: 0;
  opacity: 0;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-top: 28px;
  opacity: 0;
}

.hero-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--color-dark);
  background: var(--color-white);
  border: 1px solid var(--color-white);
  padding: 12px;
  font-size: 12px;
  letter-spacing: 2px;
  font-family: "Brandon Grotesque", sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s ease, visibility 0s;
  font-weight: 400;
  line-height: 1;
  margin-top: 0;
  margin-bottom: 0;
}

.hero-button:hover {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
  transform: scale(0.95);
}

/* iPad Pro 11" y tablets (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-section {
    height: 70vh;
    min-height: 500px;
  }

  #brxe-f04636 {
    font-size: 32px;
    letter-spacing: 5px;
  }

  .hero-buttons {
    gap: 20px;
  }

  .hero-button {
    padding: 14px 45px;
    font-size: 13px;
  }

  .contacto-content-section {
    padding: 100px 40px;
  }

  .contacto-intro-text {
    font-size: 17px;
    max-width: 700px;
  }

  .contacto-form-container {
    max-width: 700px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 14px 18px;
    font-size: 15px;
  }

  .submit-button {
    padding: 14px 45px;
    font-size: 13px;
  }

  .contacto-info-section {
    padding: 100px 40px;
  }

  .contacto-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 700px;
  }

  .contacto-info-item h3 {
    font-size: 22px;
  }

  .contacto-info-item p,
  .contacto-info-item a {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  #brxe-f04636 {
    font-size: 28px;
    letter-spacing: 5px;
    text-align: center;
  }
}

@media (max-width: 991px) {
  .hero-button {
    margin-top: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 478px) {
  .hero-content {
    text-align: center;
  }
  
  #brxe-f04636 {
    text-align: center;
    font-size: 20px;
    line-height: 1.3;
    width: 310px;
    margin: 0 auto;
  }
  
  #brxe-f04636 br {
    display: inline;
  }
  
  .hero-buttons {
    margin-top: 15px;
  }
  
  .hero-button {
    font-size: 10px;
    padding: 10px 16px;
    margin-top: 0;
    margin-bottom: 30px;
  }
}

/* Page Title Section */
.page-title {
  text-align: center;
  padding: 160px 25px 80px;
  background-color: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-title h2 {
  font-size: 25px;
  color: #283732;
  letter-spacing: 3px;
  text-align: center;
  font-weight: 400;
  margin-bottom: 30px;
  width: 380px;
  font-family: "Minion Pro", serif;
}

.page-title p {
  font-size: 16px;
  color: #7a7a7a;
  letter-spacing: 1px;
  max-width: 600px;
  width: 600px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 400;
  font-family: "Minion Pro", serif;
}

/* Desktop: aumentar en 1px */
@media (min-width: 769px) {
  .page-title p {
    font-size: 17px;
  }
}

@media (max-width: 478px) {
  .page-title p {
    width: auto;
    padding-left: 25px;
    padding-right: 25px;
    box-sizing: border-box;
    font-size: 15px;
    letter-spacing: 0px;
  }
}

@media (max-width: 768px) {
  .page-title {
    padding: 120px 25px 60px;
  }
  
  .page-title h2 {
    font-size: 20px;
    width: auto;
    max-width: 400px;
  }
  
  .page-title p {
    font-size: 15px;
    width: auto;
    max-width: 100%;
  }
}

@media (max-width: 478px) {
  .page-title {
    padding: 100px 25px 50px;
  }
  
  .page-title h2 {
    font-size: 16px;
    letter-spacing: 1px;
    width: auto;
  }
  
  .page-title p {
    font-size: 14px;
    letter-spacing: 0px;
  }
}

/* Contact Form Section */
.contact-section {
  padding: 80px 25px 120px;
  background-color: var(--color-primary);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-section {
    padding: 60px 25px 100px;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 478px) {
  .contact-section {
    padding: 50px 20px 80px;
  }
  
  .contact-container {
    gap: 50px;
  }
}

/* Contact Info Column */
.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-left: 15px;
}

.contact-info-title {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #5a5755;
  text-transform: capitalize;
  margin-bottom: 8px;
  font-family: "Brandon Grotesque", sans-serif;
}

@media (max-width: 768px) {
  .contact-info-title {
    font-size: 13px;
    letter-spacing: 2px;
  }
}

@media (max-width: 478px) {
  .contact-info-column {
    gap: 25px;
  }
  
  .contact-info-title {
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 8px;
  }
}

.contact-info-subtitle {
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 1px;
  color: #7a7a7a;
  margin-bottom: 50px;
  max-width: 400px;
  font-family: "Minion Pro", serif;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 16px;
  letter-spacing: 1px;
  color: #5a5755;
  font-family: "Brandon Grotesque", sans-serif;
}

.contact-item svg {
  color: #a59182;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.contact-item img {
  filter: invert(59%) sepia(13%) saturate(536%) hue-rotate(351deg) brightness(91%) contrast(87%);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #a59182;
}

@media (max-width: 478px) {
  .contact-info-subtitle {
    font-size: 15px;
    margin-bottom: 30px;
    max-width: 100%;
  }
  
  .contact-details {
    gap: 20px;
  }
  
  .contact-item {
    font-size: 15px;
  }
  
  .contact-item svg {
    width: 20px;
    height: 20px;
  }
}

/* Form Column */
.contact-form-wrapper {
  background-color: #f5f0eb;
  padding: 40px;
  border-radius: 2px;
  border: 1px solid #e5ddd5;
  box-shadow: 0 2px 10px rgba(165, 145, 130, 0.08);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .contact-form-wrapper {
    padding: 35px;
  }
}

@media (max-width: 478px) {
  .contact-form-wrapper {
    padding: 25px 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .contact-form {
    gap: 15px;
  }
}

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

.form-group label {
  font-size: 13px;
  letter-spacing: 1px;
  color: #5a5755;
  text-transform: capitalize;
  font-family: "Brandon Grotesque", sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: #ffffff;
  border: 1px solid #d4c4b8;
  border-radius: 0;
  padding: 11px 15px;
  font-size: 15px;
  color: #4a4542;
  font-family: "Brandon Grotesque", sans-serif;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a59182' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  padding-right: 40px;
}

.form-group select option {
  background-color: #ffffff;
  color: #4a4542;
  padding: 10px;
}

.form-group select optgroup {
  background-color: #fefbf2;
  color: #a59182;
  font-weight: 600;
  font-style: normal;
  padding-top: 12px;
  margin-top: 8px;
}

.form-helper-text {
  font-size: 13px;
  color: #a59182;
  letter-spacing: 1px;
  font-family: "Brandon Grotesque", sans-serif;
  font-style: italic;
  margin-top: -2px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b5a89f;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #a59182;
  background-color: #fffcf8;
  box-shadow: 0 0 0 3px rgba(165, 145, 130, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.submit-btn {
  background-color: #a59182;
  color: white;
  border: 1px solid #a59182;
  padding: 12px 45px;
  font-size: 13px;
  font-family: "Brandon Grotesque", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: 10px;
  text-align: center;
  height: 52px;
}

.submit-btn:hover {
  background-color: transparent;
  color: #5a5755;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(165, 145, 130, 0.25);
}

@media (max-width: 478px) {
  .submit-btn {
    width: 100%;
    padding: 12px 30px;
    font-size: 12px;
  }
}

/* Footer specific to Contact Page */
.contact-footer {
  background-color: #2f2e2e;
  padding: 80px 0 0;
  color: #f5f1eb;
  font-family: "Minion Pro", serif;
  position: relative;
  overflow: hidden;
  /* background-image set inline in html */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
}

.contact-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 0;
}

.contact-footer-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 40px;
  position: relative;
  z-index: 1;
}

.footer-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-logo {
  font-family: 'Minion Pro', serif;
  font-size: 40px;
  letter-spacing: 13.86px;
  line-height: 26.6px;
  text-transform: uppercase;
  color: #f5f1eb;
  font-weight: 400;
}

.footer-registered {
  font-family: 'Assistant', sans-serif;
  font-weight: 300;
  color: #f5f1eb;
  font-size: 11px;
  vertical-align: super;
  position: relative;
  top: -8px;
}

.contact-footer-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 10;
}

.contact-footer-nav a {
  font-size: 13px;
  letter-spacing: 2px;
  color: #d7d6d7;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Brandon Grotesque", sans-serif;
  transition: color 0.3s ease;
}

.contact-footer-nav a:hover {
  color: #a59182;
}

.contact-footer-divider {
  height: 1px;
  background-color: rgba(165, 145, 130, 0.2);
  margin-bottom: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.contact-footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding-bottom: 20px;
  min-height: 70px;
}

.contact-footer-bottom .copyright {
  font-size: 14px;
  color: #d7d6d7;
  letter-spacing: 1px;
  text-align: center;
  margin: 0;
  font-family: "Brandon Grotesque", sans-serif;
}

@media (max-width: 767px) {
  .contact-footer {
    padding: 60px 20px 0;
  }
  
  .footer-logo {
    font-size: 22px;
    letter-spacing: 7.26px;
  }
  
  .footer-registered {
    font-size: 9px;
    top: -5px;
  }
  
  .contact-footer-nav {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    padding: 0 20px 20px 20px;
  }
  
  .contact-footer-nav a {
    font-size: 12px;
  }
}

/* Thank You Overlay */
.thank-you-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(254, 251, 242, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.thank-you-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.thank-you-content {
  text-align: center;
  color: #4a4542;
  padding: 60px 80px;
  max-width: 500px;
  background-color: #f5f0eb;
  border: 1px solid #d4c4b8;
  border-radius: 2px;
  box-shadow: 0 8px 30px rgba(165, 145, 130, 0.2);
}

.thank-you-content h3 {
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 400;
  color: #4a4542;
  letter-spacing: 1px;
}

.thank-you-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #7a7a7a;
  letter-spacing: 1px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
