/* ---- Self-hosted fonts (SIL OFL 1.1, see assets/fonts/OFL-*.txt) ---- */
/* Lato 400 latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/lato-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Lato 400 latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/lato-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Questrial 400 latin-ext */
@font-face {
  font-family: 'Questrial';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/questrial-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Questrial 400 latin */
@font-face {
  font-family: 'Questrial';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/questrial-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   ETM — E Travel Marketing · Landing page
   Reference design width: 1500px  (1 ref-px = var(--u))
   ============================================================ */

:root {
  --u: calc(100vw / 1500);

  --cream-header:   #FEFBF6;
  --cream-services: #FBF6F0;
  --brown:          #73512E;
  --brown-sub:      #6F5330;
  --brown-label:    #6D5334;
  --gold-btn:       #C19556;
  --gold-btn-hover: #B08344;
  --line-gold:      #C5995C;
  --line-tan:       #E3D3BC;

  --serif: Georgia, 'Times New Roman', 'Songti SC', serif;
  --geo:   'Questrial', 'Century Gothic', 'Avenir Next', 'Trebuchet MS', sans-serif;
  --sans:  'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html, body { overflow-x: clip; }

body {
  font-family: var(--serif);
  background: var(--cream-services);
  min-height: 100vh;              /* fallback for older browsers */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; }

::selection { background: rgba(193, 149, 86, .35); }

/* flex chain: body → main → hero, so the hero can absorb leftover height */
main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* ============================== Header ============================== */

.site-header {
  height: calc(var(--u) * 92);
  background: var(--cream-header);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  width: calc(var(--u) * 235);
  height: auto;
}

/* =============================== Hero =============================== */

.hero {
  /* flexible stage: fills leftover viewport height. Floor = text block (277)
     + its paddings (105) = 382 ref-px, so header+services+hero+footer can
     always collapse into exactly one screen — no scrollbar on common sizes. */
  flex: 1 1 auto;
  min-height: calc(var(--u) * 382);
  display: flex;
  align-items: flex-end;      /* text block pinned toward the bottom */
  background: url('../assets/hero.jpg') 35% center / cover no-repeat;
  position: relative;
}

.hero-inner {
  width: 100%;
  padding: calc(var(--u) * 40) 0 calc(var(--u) * 105) calc(var(--u) * 106);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: calc(var(--u) * 33);
  line-height: calc(var(--u) * 40);
  letter-spacing: .014em;
  text-transform: uppercase;
  color: var(--brown);
}

.hero-sub {
  margin-top: calc(var(--u) * 23);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: calc(var(--u) * 21);
  line-height: calc(var(--u) * 28);
  letter-spacing: .01em;
  color: var(--brown-sub);
}

.btn-contact {
  margin-top: calc(var(--u) * 42);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * 167);
  height: calc(var(--u) * 36);
  background: var(--gold-btn);
  border-radius: calc(var(--u) * 3);
  font-family: var(--geo);
  font-size: calc(var(--u) * 15);
  letter-spacing: .03em;
  color: #FDF9F2;
  text-decoration: none;
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.btn-contact:hover {
  background: var(--gold-btn-hover);
  box-shadow: 0 calc(var(--u) * 6) calc(var(--u) * 18) rgba(115, 81, 46, .28);
  transform: translateY(calc(var(--u) * -1));
}

/* ============================= Services ============================= */

.services {
  background: var(--cream-services);
  display: flex;
  padding: calc(var(--u) * 30) 0 calc(var(--u) * 35);
}

.service-col {
  flex: 1 1 50%;
  min-width: 0;
}

/* --- column head: badge | rule | title --- */

.service-head {
  display: flex;
  align-items: center;
  padding-left: calc(var(--u) * 102);
}

.service-badge {
  width: calc(var(--u) * 68);
  height: calc(var(--u) * 68);
  flex: 0 0 auto;
}

.head-rule {
  width: 1px;
  height: calc(var(--u) * 72);
  background: var(--line-gold);
  opacity: .55;
  margin: 0 calc(var(--u) * 27) 0 calc(var(--u) * 20);
  flex: 0 0 auto;
}

.service-head-text { position: relative; top: -3px; }

.service-head-text h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: calc(var(--u) * 20.5);
  line-height: 1.2;
  letter-spacing: .025em;
  text-transform: uppercase;
  color: var(--brown);
  white-space: nowrap;
}

.service-head-text p {
  margin-top: calc(var(--u) * 5);
  font-family: var(--serif);
  font-style: italic;
  font-size: calc(var(--u) * 14);
  line-height: 1.3;
  letter-spacing: .015em;
  color: var(--brown-sub);
  white-space: nowrap;
}

/* --- items grid --- */

.service-col:first-child .service-items { padding-left:  calc(var(--u) * 60);  padding-right: calc(var(--u) * 46); }
.service-col:last-child  .service-items { padding-left:  calc(var(--u) * 46);  padding-right: calc(var(--u) * 60);  }

.service-items {
  list-style: none;
  margin-top: calc(var(--u) * 32);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.service-items li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* thin tan separator between items */
.service-items li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 1px;
  height: calc(var(--u) * 83);
  background: var(--line-tan);
}

.service-items img {
  width: calc(var(--u) * 45);
  height: auto;
}

.service-items span {
  margin-top: calc(var(--u) * 3);
  font-family: var(--sans);
  font-weight: 400;
  font-size: calc(var(--u) * 9.5);
  line-height: calc(var(--u) * 11.5);
  letter-spacing: .01em;
  color: var(--brown-label);
}

/* center divider between the two halves */
.services-divider {
  flex: 0 0 1px;
  align-self: stretch;
  margin: calc(var(--u) * -4) 0 calc(var(--u) * -4);
  background: var(--line-gold);
  opacity: .6;
}

/* ============================== Footer ============================== */

.site-footer {
  margin-top: auto;               /* stick to the bottom on tall viewports */
  min-height: calc(var(--u) * 112);
  background: url('../assets/footer.jpg') center / 100% 100% no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 8);
  padding: calc(var(--u) * 8) 16px;
}

.foot-main {
  display: flex;
  align-items: center;
}

.foot-icp {
  font-family: var(--sans);
  font-size: calc(var(--u) * 11);
  letter-spacing: .03em;
  color: #8B6F4A;
  text-decoration: none;
  transition: color .2s ease;
}

.foot-icp:hover { color: var(--brown); text-decoration: underline; }

.foot-rule {
  width: calc(var(--u) * 77);
  height: 1px;
  background: #7D5F3D;
  opacity: .75;
  flex: 0 0 auto;
}

.foot-text {
  display: flex;
  align-items: center;
  margin: 0 calc(var(--u) * 22);
  font-family: var(--serif);
  font-size: calc(var(--u) * 14);
  letter-spacing: .02em;
  color: #63492A;
  white-space: nowrap;
}

.seg-bar {
  width: 1px;
  height: calc(var(--u) * 15);
  background: rgba(120, 90, 55, .55);
  margin: 0 calc(var(--u) * 17);
}

.seg-bar--tall { height: calc(var(--u) * 20); }

.seg--italic { font-style: italic; }

/* ========================== Entrance motion ========================= */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.hero-title, .hero-sub, .btn-contact {
  opacity: 0;
  animation: rise .8s cubic-bezier(.22, .61, .36, 1) forwards;
}

.hero-sub { animation-delay: .15s; }
.btn-contact { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .hero-title, .hero-sub, .btn-contact { animation: none; opacity: 1; }
}

/* ============================================================
   Mobile  (≤ 820px)
   ============================================================ */

@media (max-width: 820px) {

  :root { --u: calc(100vw / 820); }

  /* ---- header ---- */
  .site-header { height: 64px; }
  .logo { width: 172px; }

  /* ---- hero ---- */
  .hero {
    display: block;            /* fixed stage: text stays top-anchored under the veil */
    flex: none;
    min-height: 0;
    height: 480px;
    background-position: 62% 62%;
  }

  /* soft cream veil so the headline stays readable over the photo */
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(97deg, rgba(253,247,236,.88) 0%, rgba(253,247,236,.55) 42%, rgba(253,247,236,0) 72%);
  }

  .hero-inner { position: relative; padding: 92px 24px 0; }

  .hero-title {
    font-size: 29px;
    line-height: 38px;
    letter-spacing: .04em;
  }

  .hero-sub {
    margin-top: 16px;
    font-size: 17px;
    line-height: 25px;
  }

  .btn-contact {
    margin-top: 30px;
    width: 148px;
    height: 40px;
    font-size: 14px;
    border-radius: 3px;
  }

  /* ---- services ---- */
  .services {
    flex-direction: column;
    padding: 44px 0 36px;
  }

  .service-head { justify-content: center; padding-left: 0; }

  .service-badge { width: 56px; height: 56px; }

  .head-rule {
    height: 58px;
    margin: 0 17px;
  }

  .service-head-text { position: relative; top: -3px; }

  .service-head-text h2 { font-size: 15.5px; letter-spacing: .05em; }
  .service-head-text p  { font-size: 13px; margin-top: 4px; }

  .service-col:first-child .service-items,
  .service-col:last-child .service-items { padding: 0 28px; }

  .service-items {
    margin-top: 36px;
    grid-template-columns: repeat(2, 1fr);
    gap: 38px 12px;
  }

  .service-items li:not(:last-child)::after { display: none; }

  .service-items img { width: 48px; }

  .service-items span {
    margin-top: 9px;
    font-size: 12.5px;
    line-height: 17px;
  }

  /* horizontal divider between the two groups */
  .services-divider {
    flex: 0 0 auto;
    width: auto;
    height: 1px;
    margin: 44px 28px 0;
  }

  .service-col:last-child .service-head { margin-top: 44px; }

  /* ---- footer ---- */
  .site-footer {
    padding: 20px 14px 16px;
    gap: 10px;
  }

  .foot-rule { width: 26px; }

  .foot-icp { font-size: 11px; }

  .foot-text {
    margin: 0;
    font-size: 12.5px;
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 4px;
  }

  .seg-bar { height: 13px; margin: 0 10px; }
  .seg-bar--tall { height: 16px; }
}

@media (max-width: 400px) {
  .foot-text { font-size: 11.5px; }
  .seg-bar { margin: 0 7px; }
}
