/*
Theme Name:   Excursions Dominican Republic
Theme URI:    https://www.excursionsdominicanrepublic.com
Description:  Child theme for Excursions Dominican Republic — built on Astra
Author:       Excursions Dominican Republic
Author URI:   https://www.excursionsdominicanrepublic.com
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         travel, tours, excursions, dominican-republic
Text Domain:  edr-child
*/

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy:    #0F2A45;
  --navy2:   #1A3D5C;
  --blue:    #1B5FA8;
  --blue-m:  #2D7DD2;
  --blue-lt: #EBF3FB;
  --teal:    #15716B;
  --teal-lt: #E4F4F3;
  --gold:    #B8860B;
  --sand:    #F7F5F0;
  --white:   #FFFFFF;
  --text:    #1C2B3A;
  --muted:   #5C6E7E;
  --border:  #D6E0E9;
  --r:       10px;
  --r-sm:    6px;
}

/* ── RESET ASTRA DEFAULTS — FULL OVERRIDE ── */
body { font-family: 'Inter', sans-serif !important; background: var(--sand) !important; color: var(--text) !important; margin: 0 !important; padding: 0 !important; }

.ast-container,.ast-flex,.site-content,#content,#primary,.content-area,
.ast-article-single,.ast-article-post,.entry-content,.post-content,
.page-content,.ast-separate-container,.ast-page-builder-template,
.ast-content-layout-flag,.ast-site-content-wrap {
  max-width: 100% !important; width: 100% !important;
  padding: 0 !important; margin: 0 !important; float: none !important;
}
#secondary,.widget-area,.ast-sidebar-wrap { display: none !important; }
.ast-no-sidebar #content { width: 100% !important; }
#page { padding: 0 !important; margin: 0 !important; }

/* Hide Astra default header & footer */
#masthead,.site-header,.ast-primary-header-bar,
.ast-above-header-bar,.ast-below-header-bar,
.main-header-bar,.ast-main-header-wrap { display: none !important; }
#colophon,.site-footer,.footer-widget-area,
.ast-footer-overlay { display: none !important; }

/* ── TOPBAR ── */
.edr-topbar {
  background: var(--navy);
  padding: 8px 48px;
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 200;
}
.edr-topbar-left { font-size: 12px; color: rgba(255,255,255,.5); display: flex; gap: 20px; flex-wrap: wrap; }
.edr-topbar-right { display: flex; gap: 12px; }
.edr-topbar-right a { font-size: 12px; color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.edr-topbar-right a:hover { color: #fff; }

/* ── NAV ── */
.edr-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  height: 64px; transition: box-shadow .2s;
}
.edr-nav-logo {
  font-family: 'Libre Baskerville', serif;
  font-size: 18px; font-weight: 700;
  color: var(--navy); text-decoration: none; letter-spacing: -.3px;
}
.edr-nav-logo span { color: var(--blue-m); }
.edr-nav-links { display: flex; align-items: center; gap: 4px; }
.edr-nav-links a {
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  text-decoration: none; padding: 8px 14px; border-radius: var(--r-sm);
  transition: color .2s, background .2s;
}
.edr-nav-links a:hover { color: var(--navy); background: var(--blue-lt); }
.edr-nav-cta {
  background: var(--blue) !important; color: #fff !important;
  font-weight: 600 !important; border-radius: var(--r-sm) !important;
}
.edr-nav-cta:hover { background: var(--navy) !important; }

/* ── HERO ── */
.edr-hero {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy2) 50%, #1a4a6e 100%);
  padding: 64px 48px 0;
  display: grid; grid-template-columns: 1fr 460px;
  gap: 48px; align-items: end;
  overflow: hidden; position: relative; min-height: 540px;
}
.edr-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.edr-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 85%, rgba(27,95,168,.22) 0%, transparent 45%),
              radial-gradient(circle at 85% 20%, rgba(21,113,107,.15) 0%, transparent 40%);
  pointer-events: none;
}
.edr-hero-left { position: relative; z-index: 1; padding-bottom: 60px; }
.edr-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: #7DB8E8; margin-bottom: 20px;
}
.edr-hero-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--blue-m); border-radius: 1px; }
.edr-hero-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 700; line-height: 1.13;
  color: #fff; letter-spacing: -.5px; margin-bottom: 18px;
}
.edr-hero-title em { font-style: italic; color: #7DB8E8; }
.edr-hero-sub {
  font-size: 16px; font-weight: 300; line-height: 1.7;
  color: rgba(255,255,255,.6); max-width: 400px; margin-bottom: 36px;
}
.edr-hero-trust { display: flex; gap: 28px; }
.edr-trust-item { display: flex; align-items: center; gap: 9px; }
.edr-trust-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.edr-trust-strong { display: block; color: #fff; font-weight: 600; font-size: 14px; }
.edr-trust-small { color: rgba(255,255,255,.42); font-size: 11px; }

/* ── BOOKING CARD ── */
.edr-booking-card {
  position: relative; z-index: 2;
  background: #fff; border-radius: var(--r) var(--r) 0 0;
  padding: 30px 28px 34px;
  box-shadow: 0 -8px 40px rgba(0,0,0,.22);
  align-self: end;
}
.edr-bc-head { font-family: 'Libre Baskerville', serif; font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.edr-bc-sub { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.edr-bc-label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); margin-bottom: 5px; }
.edr-bc-wrap { position: relative; margin-bottom: 13px; }
.edr-bc-input, .edr-bc-select {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 11px 14px; font-family: 'Inter', sans-serif;
  font-size: 14px; color: var(--text); background: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.edr-bc-input:focus, .edr-bc-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,95,168,.11); }
.edr-bc-input::placeholder { color: #A0B0BC; }
.edr-bc-arrow { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--muted); pointer-events: none; }
.edr-bc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.edr-bc-submit {
  width: 100%; margin-top: 6px;
  background: var(--blue); color: #fff;
  border: none; border-radius: var(--r-sm);
  padding: 14px; font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .2s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.edr-bc-submit:hover { background: var(--navy); }
.edr-bc-note { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 11px; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* ── TRUST BAR ── */
.edr-trust-bar {
  background: var(--blue-lt); border-bottom: 1px solid #C5DCF0;
  padding: 13px 48px; display: flex; justify-content: center; gap: 44px; flex-wrap: wrap;
}
.edr-tb-item { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--navy2); }
.edr-tb-ic { color: var(--blue); font-size: 15px; }

/* ── SECTIONS ── */
.edr-section { padding: 80px 48px; }
.edr-section-white { background: #fff; }
.edr-section-sand { background: var(--sand); }
.edr-section-navy { background: var(--navy); }
.edr-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; display: block; }
.edr-eyebrow-light { color: #7DB8E8; }
.edr-sec-title { font-family: 'Libre Baskerville', serif; font-size: clamp(24px, 2.8vw, 38px); font-weight: 700; color: var(--navy); letter-spacing: -.4px; line-height: 1.15; margin-bottom: 11px; }
.edr-sec-title-light { color: #fff; }
.edr-sec-sub { font-size: 15px; font-weight: 300; color: var(--muted); max-width: 520px; line-height: 1.7; margin-bottom: 44px; }
.edr-sec-sub-light { color: rgba(255,255,255,.45); }
.edr-sec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; }
.edr-see-all { font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; transition: opacity .2s; }
.edr-see-all:hover { opacity: .7; }

/* ── DESTINATIONS GRID ── */
.edr-dest-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.edr-dest-card { border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); background: #fff; cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s; }
.edr-dest-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(15,42,69,.11); border-color: #B2C8E0; }
.edr-dest-card.feat { grid-column: span 2; }
.edr-dest-ph { width: 100%; height: 190px; display: flex; align-items: flex-end; padding: 16px; position: relative; overflow: hidden; }
.edr-dest-card.feat .edr-dest-ph { height: 270px; }
.edr-dest-ph::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 20px 20px; }
.edr-dest-ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 60%); }
.bg1{background:linear-gradient(145deg,#0d4a6e,#1a7a9a)}
.bg2{background:linear-gradient(145deg,#0d5c3a,#1a9a6a)}
.bg3{background:linear-gradient(145deg,#3a1a0d,#8a4a20)}
.bg4{background:linear-gradient(145deg,#1a1a5c,#3a3aaa)}
.bg5{background:linear-gradient(145deg,#0d3a5c,#1a6090)}
.bg6{background:linear-gradient(145deg,#2a0d3a,#6a2a8a)}
.bg7{background:linear-gradient(145deg,#1a3a0d,#4a8a20)}
.bg8{background:linear-gradient(145deg,#3a2a0d,#8a6a20)}
.bg9{background:linear-gradient(145deg,#5a0d1a,#aa2a3a)}
.edr-dest-tag { position: absolute; top: 13px; left: 13px; z-index: 2; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; backdrop-filter: blur(4px); }
.edr-dest-info { position: relative; z-index: 2; }
.edr-dest-place { font-family: 'Libre Baskerville', serif; font-size: 16px; font-weight: 700; color: #fff; }
.edr-dest-price-tag { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 1px; }
.edr-dest-body { padding: 15px 18px 18px; }
.edr-dest-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.edr-dest-row { display: flex; align-items: center; justify-content: space-between; }
.edr-dest-from { font-size: 15px; font-weight: 700; color: var(--blue); }
.edr-dest-from span { font-size: 12px; font-weight: 400; color: var(--muted); }
.edr-dest-btn { font-size: 12px; font-weight: 600; color: var(--blue); background: var(--blue-lt); border: 1px solid #C0D6EE; border-radius: var(--r-sm); padding: 6px 13px; cursor: pointer; font-family: 'Inter', sans-serif; transition: background .2s, color .2s; }
.edr-dest-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── TOURS TABLE ── */
.edr-tours-tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.edr-tours-tbl th { background: var(--navy); color: rgba(255,255,255,.65); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 13px 18px; text-align: left; }
.edr-tours-tbl tbody tr { transition: background .15s; }
.edr-tours-tbl tbody tr:hover { background: var(--blue-lt); }
.edr-tours-tbl td { padding: 15px 18px; border-top: 1px solid var(--border); font-size: 13.5px; vertical-align: middle; }
.edr-tn { font-weight: 600; color: var(--navy); }
.edr-tn small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.edr-pill { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.edr-pi { background: #E4F4F3; color: var(--teal); }
.edr-pa { background: #FBF0E6; color: #8B4A0F; }
.edr-pn { background: #EAF4EA; color: #266026; }
.edr-pc { background: #EEF0FB; color: #2A3BAA; }
.edr-price { font-weight: 700; color: var(--blue); white-space: nowrap; }
.edr-blink { font-size: 12px; font-weight: 600; color: var(--blue); background: none; border: 1.5px solid var(--blue); border-radius: var(--r-sm); padding: 6px 13px; cursor: pointer; font-family: 'Inter', sans-serif; transition: background .2s, color .2s; white-space: nowrap; }
.edr-blink:hover { background: var(--blue); color: #fff; }
.edr-pop-row { background: var(--blue-lt) !important; }
.edr-pop-badge { display: inline-block; font-size: 10px; font-weight: 700; background: var(--gold); color: #fff; padding: 2px 7px; border-radius: 99px; margin-left: 7px; vertical-align: middle; text-transform: uppercase; letter-spacing: .04em; }

/* ── WHY US ── */
.edr-why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; }
.edr-why-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: var(--r); padding: 28px 22px; transition: background .25s, border-color .25s; }
.edr-why-card:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.13); }
.edr-why-num { font-family: 'Libre Baskerville', serif; font-size: 40px; font-weight: 700; color: rgba(27,95,168,.45); line-height: 1; margin-bottom: 14px; }
.edr-why-title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 7px; }
.edr-why-desc { font-size: 13px; font-weight: 300; color: rgba(255,255,255,.42); line-height: 1.65; }

/* ── TESTIMONIALS ── */
.edr-testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.edr-testi-card { border: 1px solid var(--border); border-radius: var(--r); padding: 26px; background: var(--sand); transition: border-color .25s, transform .25s; }
.edr-testi-card:hover { border-color: #B2C8E0; transform: translateY(-3px); }
.edr-stars { display: flex; gap: 2px; margin-bottom: 12px; }
.edr-star { color: var(--gold); font-size: 14px; }
.edr-testi-body { font-size: 14px; font-weight: 300; color: var(--text); line-height: 1.75; margin-bottom: 18px; font-family: 'Libre Baskerville', serif; font-style: italic; }
.edr-testi-foot { display: flex; align-items: center; gap: 11px; }
.edr-av { width: 37px; height: 37px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #fff; flex-shrink: 0; }
.edr-tname { font-size: 13px; font-weight: 600; color: var(--navy); }
.edr-torigin { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* ── BOOK STRIP ── */
.edr-book-strip { background: var(--blue-lt); border-top: 1px solid #C0D8F0; border-bottom: 1px solid #C0D8F0; padding: 26px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.edr-book-strip h3 { font-family: 'Libre Baskerville', serif; font-size: 21px; color: var(--navy); margin-bottom: 3px; }
.edr-book-strip p { font-size: 13px; color: var(--muted); margin: 0; }
.edr-strip-btns { display: flex; gap: 10px; flex-shrink: 0; }
.edr-btn-p { background: var(--blue); color: #fff; border: none; border-radius: var(--r-sm); padding: 11px 22px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s; white-space: nowrap; text-decoration: none; display: inline-block; }
.edr-btn-p:hover { background: var(--navy); color: #fff; }
.edr-btn-o { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); border-radius: var(--r-sm); padding: 11px 22px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; text-decoration: none; display: inline-block; }
.edr-btn-o:hover { background: var(--blue); color: #fff; }

/* ── FOOTER ── */
.edr-footer { background: var(--navy); color: rgba(255,255,255,.45); padding: 52px 48px 26px; }
.edr-ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.edr-ft-logo { font-family: 'Libre Baskerville', serif; font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 11px; }
.edr-ft-logo span { color: var(--blue-m); }
.edr-ft-brand p { font-size: 13px; line-height: 1.7; max-width: 250px; margin: 0; }
.edr-ft-col h4 { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 13px; }
.edr-ft-col a { display: block; font-size: 13px; color: rgba(255,255,255,.45); text-decoration: none; margin-bottom: 8px; transition: color .2s; }
.edr-ft-col a:hover { color: #fff; }
.edr-ft-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.edr-ft-copy { font-size: 12px; }
.edr-ft-seals { display: flex; gap: 8px; }
.edr-seal { font-size: 11px; padding: 3px 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 99px; color: rgba(255,255,255,.3); }

/* ── MODAL ── */
.edr-modal-bg { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(15,42,69,.65); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.edr-modal-bg.open { display: flex; }
.edr-modal-box { background: #fff; border-radius: var(--r); padding: 40px; max-width: 450px; width: 92%; animation: edrMIn .3s cubic-bezier(.22,1,.36,1); }
@keyframes edrMIn { from{opacity:0;transform:scale(.93) translateY(16px)} to{opacity:1;transform:none} }
.edr-modal-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--blue-lt); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 18px; }
.edr-modal-box h3 { font-family: 'Libre Baskerville', serif; font-size: 21px; text-align: center; color: var(--navy); margin-bottom: 8px; }
.edr-modal-box p { font-size: 14px; color: var(--muted); text-align: center; line-height: 1.6; margin-bottom: 22px; }
.edr-modal-close { width: 100%; background: var(--blue); color: #fff; border: none; border-radius: var(--r-sm); padding: 13px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s; }
.edr-modal-close:hover { background: var(--navy); }

/* ── REVEAL ANIMATIONS ── */
.edr-r { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.edr-r.v { opacity: 1; transform: none; }
.edr-d1 { transition-delay: .08s; }
.edr-d2 { transition-delay: .16s; }
.edr-d3 { transition-delay: .24s; }
.edr-d4 { transition-delay: .32s; }

/* ── RESPONSIVE ── */
@media(max-width: 960px) {
  .edr-topbar, .edr-trust-bar, .edr-book-strip { padding: 10px 20px; flex-wrap: wrap; gap: 8px; }
  .edr-nav { padding: 0 20px; }
  .edr-nav-links { display: none; }
  .edr-hero { grid-template-columns: 1fr; padding: 44px 20px 0; min-height: auto; }
  .edr-booking-card { border-radius: var(--r); }
  .edr-section { padding: 56px 20px; }
  .edr-dest-grid { grid-template-columns: 1fr 1fr; }
  .edr-dest-card.feat { grid-column: span 2; }
  .edr-why-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .edr-testi-grid { grid-template-columns: 1fr; }
  .edr-ft-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .edr-book-strip { flex-direction: column; }
  .edr-tours-tbl { font-size: 12px; }
  .edr-tours-tbl td, .edr-tours-tbl th { padding: 10px 12px; }
}
