/* =========================================================
   CANCÚN HALF MARATHON 2027
   results.html
========================================================= */

:root{
  --navy:#061f3b;
  --turq:#15c4cb;
  --turq2:#00aeb9;
  --pink:#ef3d7a;
  --paper:#fbfaf7;
  --ink:#102b47;
  --line:#d9e4ea;
  --shadow:0 18px 48px rgba(5,36,63,.14);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--ink);
  background:#fff;
}

a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}

.container{
  width:min(1180px,100%);
  margin:auto;
}


/* LANGUAGE */

.language-bar{
  height:42px;
  background:#03162d;
  color:#fff;
  display:flex;
  align-items:center;
  position:relative;
  z-index:300;
}

.language-inner{
  width:min(1400px,calc(100% - 32px));
  margin:auto;
  display:flex;
  justify-content:flex-end;
}

.language-select{position:relative}

.language-button{
  min-width:118px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:5px;
  background:rgba(255,255,255,.05);
  color:#fff;
  font-weight:800;
  display:flex;
  justify-content:space-between;
  gap:16px;
  cursor:pointer;
}

.language-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  width:220px;
  display:none;
  background:#fff;
  color:var(--ink);
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 18px 45px rgba(0,25,45,.28);
  z-index:400;
}

.language-menu.open{display:block}

.language-menu a{
  display:flex;
  justify-content:space-between;
  padding:12px 15px;
  border-bottom:1px solid #edf1f3;
  font-size:14px;
  font-weight:700;
}

.language-menu a:hover{background:#f2fbfc}
.language-menu strong{color:var(--turq2);font-size:12px}


/* NAV */

.site-header{
  background:var(--navy);
  color:#fff;
  position:sticky;
  top:0;
  z-index:250;
  box-shadow:0 4px 18px rgba(0,0,0,.14);
}

.nav-inner{
  width:min(1400px,calc(100% - 40px));
  min-height:70px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:center;
}

.main-nav{
  display:flex;
  align-items:center;
  gap:29px;
  font-size:14px;
  font-weight:800;
}

.main-nav>a,
.menu-dropdown-toggle{
  padding:27px 0 24px;
  border:0;
  border-bottom:3px solid transparent;
  background:transparent;
  color:#fff;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.main-nav>a:hover,
.main-nav>a.active,
.menu-dropdown-toggle:hover,
.menu-dropdown.open .menu-dropdown-toggle{
  color:var(--turq);
  border-bottom-color:var(--turq);
}

.registration-link{
  padding:13px 20px!important;
  border:0!important;
  border-radius:4px;
  background:var(--pink);
  color:#fff!important;
}

.menu-toggle{
  display:none;
  margin-left:auto;
  border:1px solid rgba(255,255,255,.35);
  background:transparent;
  color:#fff;
  font-size:22px;
  padding:7px 11px;
  border-radius:5px;
}

.menu-dropdown{
  position:relative;
  display:flex;
  align-items:center;
}

.menu-dropdown-panel{
  position:absolute;
  top:100%;
  left:-20px;
  width:270px;
  display:none;
  background:#fff;
  color:var(--ink);
  box-shadow:0 18px 40px rgba(0,25,45,.24);
  border-radius:0 0 9px 9px;
  overflow:hidden;
}

.menu-dropdown.open .menu-dropdown-panel,
.menu-dropdown:hover .menu-dropdown-panel{
  display:block;
}

.menu-dropdown-panel a{
  display:block;
  padding:13px 20px;
  border-bottom:1px solid #edf1f3;
  font-size:13px;
  font-weight:700;
}

.menu-dropdown-panel a:hover{
  background:#effbfc;
}


/* HERO */

.results-hero{
  min-height:390px;
  position:relative;
  color:#fff;
  background:
    url('https://cancun-half-marathon.com/images/cancun-home-hero.png')
    center 48% / cover no-repeat;
}

.results-hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      90deg,
      rgba(3,31,55,.95) 0%,
      rgba(3,31,55,.73) 40%,
      rgba(3,31,55,.23) 72%,
      rgba(3,31,55,.05) 100%
    );
}

.results-hero-inner{
  position:relative;
  z-index:2;
  width:min(1180px,calc(100% - 48px));
  min-height:390px;
  margin:auto;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.eyebrow{
  color:var(--turq);
  font-size:14px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.results-hero h1{
  margin:10px 0 13px;
  font-size:clamp(50px,6vw,80px);
  line-height:.95;
  letter-spacing:-.045em;
}

.results-hero p{
  max-width:650px;
  margin:0;
  color:rgba(255,255,255,.93);
  font-size:19px;
  line-height:1.6;
}


/* GENERIC */

.current-results-section,
.archive-section,
.search-help-section,
.next-section{
  padding:72px 24px;
}

.section-kicker{
  color:var(--pink);
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.section-title{
  margin:9px 0 18px;
  color:var(--navy);
  font-size:clamp(34px,4vw,52px);
  line-height:1.03;
  letter-spacing:-.035em;
}

.lead{
  margin:0;
  color:#455d70;
  font-size:19px;
  line-height:1.68;
}


/* CURRENT RESULTS */

.current-results-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:60px;
  align-items:center;
}

.status-card{
  padding:30px;
  border-left:5px solid var(--turq);
  border-radius:10px;
  background:#eefafb;
}

.status-card>span{
  color:var(--pink);
  font-size:12px;
  font-weight:900;
}

.status-card strong{
  display:block;
  margin:8px 0;
  color:var(--navy);
  font-size:24px;
}

.status-card p{
  margin-bottom:0;
  color:#5b7282;
}


/* ARCHIVE */

.archive-section{
  background:var(--paper);
}

.archive-intro{
  max-width:800px;
  margin:0 0 30px;
  color:#5b7282;
  font-size:17px;
  line-height:1.65;
}

.result-summary-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-bottom:30px;
}

.result-summary-grid article{
  padding:28px;
  border-radius:12px;
  background:#fff;
  border:1px solid #dfe8ec;
}

.distance-badge{
  display:inline-flex;
  padding:6px 9px;
  border-radius:4px;
  background:var(--turq2);
  color:#fff;
  font-size:11px;
  font-weight:900;
}

.distance-pink{
  background:var(--pink);
}

.result-summary-grid h3{
  margin:12px 0 8px;
  color:var(--navy);
  font-size:26px;
}

.result-summary-grid p{
  color:#687b88;
}

.result-summary-grid a{
  display:inline-flex;
  margin-top:10px;
  color:var(--pink);
  font-size:12px;
  font-weight:900;
}


/* FRAME */

.results-frame-section{
  overflow:hidden;
  border-radius:13px;
  background:#fff;
  border:1px solid #dce7eb;
  box-shadow:var(--shadow);
}

.results-frame-head{
  padding:20px 23px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  background:var(--navy);
  color:#fff;
}

.results-frame-head span{
  display:block;
  color:var(--turq);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}

.results-frame-head strong{
  display:block;
  margin-top:4px;
  font-size:19px;
}

.results-frame-head>a{
  padding:11px 14px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:4px;
  font-size:12px;
  font-weight:900;
}

.results-frame{
  width:100%;
  min-height:700px;
  background:#f2f5f6;
}

.results-frame iframe{
  width:100%;
  height:700px;
  border:0;
  display:block;
}

.frame-note{
  padding:17px 20px;
  color:#625838;
  background:#fff7df;
  font-size:13px;
  line-height:1.6;
}


/* HELP */

.search-help-section{
  background:#fff;
}

.help-grid{
  margin-top:30px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.help-grid article{
  padding:28px;
  border:1px solid #dfe8ec;
  border-radius:11px;
}

.help-grid span{
  color:var(--turq2);
  font-size:13px;
  font-weight:900;
}

.help-grid h3{
  margin:12px 0;
  color:var(--navy);
}

.help-grid p{
  margin:0;
  color:#5c7383;
  line-height:1.65;
}


/* NEXT */


.next-section{
  background:#eef8fa;
}

.next-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.next-grid a{
  padding:26px;
  background:#fff;
  border-radius:11px;
  border:1px solid #dfe8ec;
}

.next-grid span{
  display:block;
  color:var(--pink);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}

.next-grid strong{
  display:block;
  margin:8px 0 13px;
  color:var(--navy);
  font-size:22px;
}

.next-grid em{
  color:var(--turq2);
  font-size:13px;
  font-style:normal;
  font-weight:800;
}


/* CTA */

.cta{
  padding:68px 24px;
  text-align:center;
  background:#fff;
}

.cta h2{
  margin:0;
  color:var(--navy);
  font-size:clamp(36px,4vw,54px);
}

.cta p{
  margin:15px auto 26px;
  color:#5c7181;
  font-size:18px;
}

.btn-primary{
  display:inline-flex;
  padding:16px 25px;
  background:var(--pink);
  color:#fff;
  border-radius:4px;
  font-weight:900;
}


/* PARTNERS */

.partners-band{
  padding:30px 24px;
  background:#eef4f7;
}

.partners-inner{
  width:min(1200px,100%);
  margin:auto;
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1fr;
  align-items:center;
  gap:34px;
}

.partner-logo{
  min-height:100px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.partner-logo img{
  max-height:92px;
  width:auto;
}

.partner-logo--motion img{
  max-height:88px;
}

.partner-divider{
  width:1px;
  height:78px;
  background:rgba(6,43,77,.18);
}

footer{
  padding:24px;
  text-align:center;
  background:#03162d;
  color:rgba(255,255,255,.72);
  font-size:13px;
}


/* RESPONSIVE */

@media(max-width:1000px){

  .main-nav{
    gap:16px;
    font-size:12px;
  }

  .current-results-grid{
    grid-template-columns:1fr;
  }

  .help-grid,
  .next-grid{
    grid-template-columns:1fr;
  }

  .partners-inner{
    grid-template-columns:1fr;
    gap:18px;
  }

  .partner-divider{
    width:120px;
    height:1px;
    margin:auto;
  }
}


@media(max-width:760px){

  .nav-inner{
    min-height:58px;
    justify-content:flex-end;
  }

  .menu-toggle{display:block}

  .main-nav{
    display:none;
    position:absolute;
    top:58px;
    left:0;
    right:0;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    background:var(--navy);
    padding:10px 18px 18px;
  }

  .main-nav.open{display:flex}

  .main-nav>a,
  .menu-dropdown-toggle{
    width:100%;
    padding:13px 10px;
    text-align:left;
    border-bottom:1px solid rgba(255,255,255,.10);
  }

  .menu-dropdown{
    display:block;
    width:100%;
  }

  .menu-dropdown-panel{
    position:static;
    width:100%;
    box-shadow:none;
    border-radius:0;
  }

  .menu-dropdown:hover .menu-dropdown-panel{
    display:none;
  }

  .menu-dropdown.open .menu-dropdown-panel{
    display:block;
  }

  .results-hero,
  .results-hero-inner{
    min-height:325px;
  }

  .results-hero-inner{
    width:calc(100% - 32px);
  }

  .current-results-section,
  .archive-section,
  .search-help-section,
  .next-section{
    padding:55px 18px;
  }

  .result-summary-grid{
    grid-template-columns:1fr;
  }

  .results-frame-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .results-frame,
  .results-frame iframe{
    min-height:600px;
    height:600px;
  }
}