*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (max-width: 768px) {
  html { font-size: 15px; }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
}

body {
  font-family: var(--edrl-font-primary);
  background-color: var(--edrl-color-background);
  color: var(--edrl-color-text);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; }

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--edrl-color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--edrl-color-primary-dark); }

ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--edrl-font-secondary);
  color: var(--edrl-color-secondary);
  margin-bottom: var(--edrl-spacing-md);
  line-height: 1.1;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  margin-bottom: var(--edrl-spacing-md);
  line-height: 1.8;
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
}

.edrl-container {
  width: 100%;
  max-width: var(--edrl-container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
}

/* ── Typography & Decoration ── */
.edrl-section-num {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--edrl-font-secondary);
  font-size: clamp(10rem, 25vw, 20rem);
  font-weight: 700;
  color: rgba(212, 204, 184, 0.2);
  line-height: 0.8;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.edrl-heavy { font-weight: 700; }
.edrl-light { font-weight: 300; }
.edrl-italic { font-style: italic; }

/* ── Buttons ── */
.edrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 0;
  font-family: var(--edrl-font-primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.edrl-btn:active { transform: scale(0.98); }

.edrl-btn-primary {
  background-color: var(--edrl-color-primary);
  color: var(--edrl-color-white);
  border-color: var(--edrl-color-primary);
}
.edrl-btn-primary:hover {
  background-color: var(--edrl-color-primary-dark);
  border-color: var(--edrl-color-primary-dark);
  color: var(--edrl-color-white);
}

.edrl-btn-secondary {
  background-color: transparent;
  color: var(--edrl-color-secondary);
  border-color: var(--edrl-color-secondary);
}
.edrl-btn-secondary:hover {
  background-color: var(--edrl-color-secondary);
  color: var(--edrl-color-background);
}

.edrl-btn-outline-light {
  background-color: transparent;
  color: var(--edrl-color-white);
  border-color: var(--edrl-color-white);
}
.edrl-btn-outline-light:hover {
  background-color: var(--edrl-color-white);
  color: var(--edrl-color-navy);
}

/* ── Header ── */
.edrl-main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s, transform 0.3s;
  background-color: var(--edrl-color-background);
  border-bottom: 2px solid var(--edrl-color-secondary);
}

.edrl-top-bar {
  background-color: var(--edrl-color-secondary);
  padding: 0.5rem 0;
  font-size: 0.8rem;
  color: var(--edrl-color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.edrl-top-bar-content {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
}

.edrl-top-bar-content a {
  color: var(--edrl-color-white);
}
.edrl-top-bar-content a:hover {
  color: var(--edrl-color-accent-gold);
}

.edrl-header-main {
  height: var(--edrl-header-height);
}

.edrl-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.edrl-logo {
  font-family: var(--edrl-font-secondary);
  font-size: 2rem;
  font-weight: 700;
  color: var(--edrl-color-secondary);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edrl-nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.edrl-nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--edrl-color-secondary);
  position: relative;
  padding: 0.5rem 0;
}
.edrl-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--edrl-color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.edrl-nav-link:hover::after, .edrl-nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.edrl-header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.edrl-hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.edrl-bar {
  width: 28px;
  height: 2px;
  background-color: var(--edrl-color-secondary);
  transition: 0.3s;
}

@media (max-width: 992px) {
  .edrl-nav-menu, .edrl-header-actions .edrl-btn { display: none; }
  .edrl-hamburger-menu { display: flex; }
}

/* ── Hero ── */
.edrl-hero-section {
  display: flex;
  min-height: 100vh;
  padding: 0;
  padding-top: calc(var(--edrl-header-height) + 32px); /* plus top bar approx */
}

.edrl-hero-layout {
  display: flex;
  width: 100%;
}

.edrl-hero-left {
  width: 45%;
  background-color: var(--edrl-color-navy);
  color: var(--edrl-color-white);
  padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.edrl-hero-left::after {
  content: '';
  position: absolute;
  top: 0;
  right: -20px;
  bottom: 0;
  width: 40px;
  background-color: var(--edrl-color-navy);
  transform: skewX(-5deg);
  z-index: 1;
}

.edrl-hero-right {
  width: 55%;
  position: relative;
}
.edrl-hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}

.edrl-hero-badge {
  font-family: var(--edrl-font-primary);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--edrl-color-accent-gold);
  margin-bottom: 2rem;
  display: block;
}

.edrl-hero-left h1 {
  color: var(--edrl-color-white);
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.edrl-hero-subtitle {
  color: rgba(255,255,255,0.8);
  margin-bottom: 3rem;
  max-width: 480px;
  position: relative;
  z-index: 2;
}

.edrl-hero-cta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

@media (max-width: 992px) {
  .edrl-hero-layout { flex-direction: column; }
  .edrl-hero-left { width: 100%; min-height: 60vh; }
  .edrl-hero-left::after { display: none; }
  .edrl-hero-right { width: 100%; height: 40vh; }
}

/* ── Stats Bar ── */
.edrl-stats-bar {
  background-color: var(--edrl-color-secondary);
  color: var(--edrl-color-white);
  padding: 4rem 0;
  border-bottom: 1px solid var(--edrl-color-border);
}

.edrl-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.edrl-stats-grid > div {
  padding: 0 1rem;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.edrl-stats-grid > div:last-child {
  border-right: none;
}

.edrl-stat-value {
  font-family: var(--edrl-font-secondary);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--edrl-color-accent-gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.edrl-stat-label {
  font-family: var(--edrl-font-primary);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
  .edrl-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 1rem; }
  .edrl-stats-grid > div:nth-child(2) { border-right: none; }
}

/* ── About Section ── */
.edrl-about-section {
  position: relative;
  overflow: hidden;
}

.edrl-about-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.edrl-section-tag {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--edrl-color-primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--edrl-color-primary);
  padding-bottom: 0.25rem;
}

.edrl-about-content h2 { margin-bottom: 2rem; }

.edrl-about-image img {
  width: 100%;
  height: auto;
  border: 1px solid var(--edrl-color-secondary);
  padding: 0.5rem;
  background: var(--edrl-color-white);
}

@media (max-width: 992px) {
  .edrl-about-grid { grid-template-columns: 1fr; }
}

/* ── Services Section ── */
.edrl-services-section {
  background-color: var(--edrl-color-surface);
  border-top: 1px solid var(--edrl-color-border);
  border-bottom: 1px solid var(--edrl-color-border);
}

.edrl-section-header {
  margin-bottom: 4rem;
  max-width: 700px;
}

.edrl-services-list {
  display: flex;
  flex-direction: column;
}

.edrl-service-row {
  display: grid;
  grid-template-columns: 100px 1fr 2fr auto;
  align-items: start;
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid var(--edrl-color-border);
  transition: background 0.3s;
}
.edrl-service-row:hover {
  background-color: rgba(255,255,255,0.5);
}
.edrl-service-row:last-child {
  border-bottom: 1px solid var(--edrl-color-border);
}

.edrl-service-num {
  font-family: var(--edrl-font-secondary);
  font-size: 2rem;
  font-weight: 700;
  color: var(--edrl-color-primary);
}

.edrl-service-title {
  font-size: 1.8rem;
  margin: 0;
}

.edrl-service-desc {
  margin: 0;
}

.edrl-service-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--edrl-color-secondary);
  border-radius: 50%;
  color: var(--edrl-color-secondary);
  transition: all 0.3s;
}
.edrl-service-row:hover .edrl-service-link {
  background-color: var(--edrl-color-secondary);
  color: var(--edrl-color-white);
}

@media (max-width: 992px) {
  .edrl-service-row { grid-template-columns: 1fr; gap: 1rem; padding: 2rem 0; }
  .edrl-service-num { font-size: 1.5rem; }
}

/* ── Intermezzo ── */
.edrl-intermezzo-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edrl-intermezzo-bg {
  position: absolute;
  inset: 0;
}
.edrl-intermezzo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.edrl-intermezzo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 46, 0.85);
}

.edrl-intermezzo-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
}
.edrl-intermezzo-content h2 {
  color: var(--edrl-color-white);
}

/* ── Metodo ── */
.edrl-metodo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.edrl-metodo-steps {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--edrl-color-border);
}

.edrl-metodo-step {
  position: relative;
  margin-bottom: 4rem;
}
.edrl-metodo-step:last-child { margin-bottom: 0; }

.edrl-metodo-step::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--edrl-color-primary);
  border-radius: 50%;
}

.edrl-metodo-step-num {
  font-family: var(--edrl-font-secondary);
  font-size: 1.2rem;
  color: var(--edrl-color-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

@media (max-width: 992px) {
  .edrl-metodo-grid { grid-template-columns: 1fr; }
}

/* ── Testimonials (Quote sections) ── */
.edrl-testimonials-section {
  background-color: var(--edrl-color-surface);
  text-align: center;
  padding: 8rem 0;
}

.edrl-quote-large {
  font-family: var(--edrl-font-secondary);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  color: var(--edrl-color-secondary);
  max-width: 900px;
  margin: 0 auto 3rem;
  position: relative;
}

.edrl-quote-large::before {
  content: '“';
  font-family: var(--edrl-font-secondary);
  font-size: 8rem;
  color: var(--edrl-color-primary);
  opacity: 0.2;
  position: absolute;
  top: -4rem;
  left: 50%;
  transform: translateX(-50%);
}

.edrl-quote-author {
  font-family: var(--edrl-font-primary);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.edrl-quote-role {
  display: block;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--edrl-color-muted);
  margin-top: 0.25rem;
}

/* ── CTA Section ── */
.edrl-cta-section {
  background-color: var(--edrl-color-primary);
  color: var(--edrl-color-white);
  text-align: center;
}
.edrl-cta-section h2 { color: var(--edrl-color-white); margin-bottom: 2rem; }
.edrl-cta-section p { color: rgba(255,255,255,0.8); }

.edrl-cta-form {
  display: flex;
  max-width: 500px;
  margin: 2rem auto;
  background: var(--edrl-color-white);
  padding: 0.5rem;
}

.edrl-cta-form input {
  flex: 1;
  border: none;
  padding: 1rem;
  font-family: var(--edrl-font-primary);
  font-size: 1rem;
  outline: none;
}

.edrl-cta-form button {
  background: var(--edrl-color-secondary);
  color: var(--edrl-color-white);
  border: none;
  padding: 0 2rem;
  font-family: var(--edrl-font-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: 0.3s;
}
.edrl-cta-form button:hover {
  background: var(--edrl-color-navy);
}

@media (max-width: 540px) {
  .edrl-cta-form { flex-direction: column; background: transparent; padding: 0; gap: 1rem; }
  .edrl-cta-form input { padding: 1rem; width: 100%; }
  .edrl-cta-form button { padding: 1rem; }
}

/* ── Footer ── */
.edrl-main-footer {
  background-color: var(--edrl-color-secondary);
  color: rgba(255,255,255,0.7);
  padding: 5rem 0 2rem;
  font-size: 0.9rem;
  font-family: var(--edrl-font-primary);
}

.edrl-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.edrl-footer-grid > div {
  padding-right: 3rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.edrl-footer-grid > div:last-child {
  border-right: none;
  padding-right: 0;
}

.edrl-footer-logo {
  font-family: var(--edrl-font-secondary);
  font-size: 2rem;
  font-weight: 700;
  color: var(--edrl-color-white);
  text-decoration: none;
  display: block;
  margin-bottom: 1.5rem;
}

.edrl-footer-column h4 {
  color: var(--edrl-color-white);
  font-family: var(--edrl-font-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.edrl-footer-column ul { display: flex; flex-direction: column; gap: 0.8rem; }
.edrl-footer-column ul a { color: rgba(255,255,255,0.7); }
.edrl-footer-column ul a:hover { color: var(--edrl-color-white); }
.edrl-footer-column address { font-style: normal; line-height: 1.8; }
.edrl-footer-column address a { color: rgba(255,255,255,0.7); }

.edrl-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.edrl-footer-bottom nav { display: flex; gap: 1.5rem; }
.edrl-footer-bottom nav a { color: rgba(255,255,255,0.7); }

@media (max-width: 992px) {
  .edrl-footer-grid { grid-template-columns: 1fr 1fr; }
  .edrl-footer-grid > div:nth-child(2) { border-right: none; padding-right: 0; }
}
@media (max-width: 540px) {
  .edrl-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .edrl-footer-grid > div { border-right: none; padding-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 2rem; }
  .edrl-footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ── Forms ── */
.edrl-form-group { margin-bottom: 1.5rem; }
.edrl-form-label {
  display: block;
  font-family: var(--edrl-font-primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.edrl-form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--edrl-color-border);
  background-color: var(--edrl-color-white);
  font-family: var(--edrl-font-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}
.edrl-form-control:focus { border-color: var(--edrl-color-primary); }
textarea.edrl-form-control { min-height: 150px; resize: vertical; }

/* ── Pages: Generic Hero ── */
.edrl-page-hero {
  background-color: var(--edrl-color-navy);
  color: var(--edrl-color-white);
  padding: calc(var(--edrl-header-height) + 6rem) 0 6rem;
  text-align: center;
}
.edrl-page-hero h1 { color: var(--edrl-color-white); }
.edrl-page-hero p { color: rgba(255,255,255,0.8); max-width: 700px; margin: 0 auto; }

/* ── Utilities ── */
.edrl-fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.edrl-fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── FAQ Accordion ── */
.edrl-accordion { border-top: 1px solid var(--edrl-color-border); }
.edrl-accordion-item { border-bottom: 1px solid var(--edrl-color-border); }
.edrl-accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  background: none;
  border: none;
  font-family: var(--edrl-font-secondary);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--edrl-color-secondary);
  cursor: pointer;
  text-align: left;
}
.edrl-accordion-trigger svg { transition: transform 0.3s; }
.edrl-accordion-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.edrl-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.edrl-accordion-content-inner { padding-bottom: 1.5rem; color: var(--edrl-color-muted); }

/* Contact Specific */
.edrl-contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
@media (max-width: 768px) { .edrl-contact-layout { grid-template-columns: 1fr; } }
