/*
Theme Name: PorFavorConfirmar
Author: PorFavorConfirmar
Description: Portal de micrositios para eventos — invitaciones, RSVP, álbum de fotos y lista de invitados.
Version: 1.0
Text Domain: eventia
*/

:root {
  /** Fonts **/
  --main-font: "Montserrat", sans-serif;
  --serif-font: "Playfair Display", serif;

  /** Brand colors **/
  --brand-navy: #06263a;
  --brand-navy-dark: #102638;
  --brand-cream: #ded4c5;
  --brand-calm: #ddd0c0;
  --brand-gold: #ba9c5f;
  --brand-green: #6cc39e;
  --brand-gray: #707070;
  --white-color: #ffffff;
}

/* IMPORTANT: portal stylesheets (single-evento.css, page-register.css) size
   with rem assuming this 10px root. Do not change it. */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-size: 1.6rem;
  line-height: 1.6;
  background: var(--white-color);
  color: var(--brand-navy-dark);
  font-family: var(--main-font);
}

/* bootstrap override */
@media (min-width: 1200px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    max-width: 1330px;
  }
}

a,
a:hover,
a:focus {
  color: inherit;
  text-decoration: none;
  transition: 0.3s all;
}

button:focus {
  outline: none;
}

a:hover {
  color: var(--brand-gold);
}

h1 {
  font-size: 4rem;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 2.4rem;
}

h4 {
  font-size: 1.8rem;
}

b {
  font-weight: bold;
}

/* Brand wordmark (header + footer) */

.logo-wordmark {
  font-family: var(--serif-font);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.3px;
  color: var(--brand-navy);
  line-height: 1;
  white-space: nowrap;
}

.logo-wordmark .wordmark-tld {
  color: var(--brand-gold);
}

@media screen and (max-width: 480px) {
  .logo-wordmark {
    font-size: 19px;
  }
}

.logo-wordmark:hover,
.logo-wordmark:focus {
  color: var(--brand-gold);
}

/* Header */

.header {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 70px;
  background: var(--white-color);
  z-index: 999;
  border-bottom: 1px solid rgba(6, 38, 58, 0.06);
}

.header.header-home {
  position: absolute;
  background: transparent;
  border-bottom: none;
}

.header.active {
  background: var(--white-color);
}

.header.sticky {
  position: fixed !important;
  top: 0;
  box-shadow: 0 2px 12px 0 rgba(6, 38, 58, 0.08);
  z-index: 9998;
  animation: slideInDown 0.3s ease-out;
  background: var(--white-color);
}

.header,
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .logo {
  display: block;
}

.header.fixed {
  position: fixed;
  box-shadow: 0 2px 12px 0 rgba(6, 38, 58, 0.08);
  z-index: 9998;
}

/* Header > hamburger */

.header .nav-menu {
  position: relative;
  float: right;
  width: 35px;
  padding: 15px 0;
  z-index: 21;
  cursor: pointer;
  overflow: hidden;
}

.header .nav-menu .menu-line {
  float: right;
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--brand-navy);
  border-radius: 6px;
  transition: 0.3s;
}

.header .nav-menu.active .menu-line:nth-child(1) {
  transform: rotate(45deg);
  width: 40px;
  margin-top: 14px;
}

.header .nav-menu.active .menu-line:nth-child(3) {
  transform: rotate(-45deg);
  width: 40px;
  margin-top: -16px;
}

.header .nav-menu.active .menu-line:nth-child(2) {
  opacity: 0;
}

/* Header > Navigation (mobile panel) */

.header .navigation {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  margin: 0;
  text-align: left;
  background: var(--white-color);
  font-family: var(--main-font);
}

.header .navigation.active {
  display: block;
}

.header .navigation ul {
  position: relative;
  margin: 15px 0;
}

.header .navigation ul li a {
  display: block;
  position: relative;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--brand-navy-dark);
}

.header .navigation ul li.active a,
.header .navigation ul li.current-menu-item a,
.header .navigation ul li a:hover {
  color: var(--brand-gold);
}

/* Header CTA buttons */

.header-btn {
  display: inline-block;
  padding: 10px 22px !important;
  border-radius: 8px;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.3;
  text-align: center;
}

.header-btn-ghost {
  border: 2px solid var(--brand-navy);
  color: var(--brand-navy) !important;
}

.header-btn-ghost:hover {
  background: var(--brand-navy);
  color: var(--white-color) !important;
}

.header-btn-solid {
  background: var(--brand-gold);
  color: var(--white-color) !important;
  border: 2px solid var(--brand-gold);
  margin-left: 8px;
}

.header-btn-solid:hover {
  background: #a3874e;
  border-color: #a3874e;
}

.menu-item-cta {
  padding: 10px 20px;
}

/* Desktop nav */

@media screen and (min-width: 1200px) {
  .header {
    min-height: 90px;
  }

  .header .nav-menu {
    display: none;
  }

  .header .navigation {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    top: auto;
    left: auto;
    width: auto;
    background: transparent;
    float: right;
  }

  .header .navigation ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0;
  }

  .header .navigation ul li {
    position: relative;
    display: inline-flex;
    align-items: center;
  }

  .header .navigation .menu li a {
    position: relative;
    padding: 15px 12px;
    text-align: left;
    font-size: 15px;
  }

  .header .navigation .menu li:not(.menu-item-cta) a:before {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--brand-gold);
    transition: 0.3s all;
  }

  .header .navigation .menu li.active a:before,
  .header .navigation .menu li.current-menu-item a:before,
  .header .navigation .menu li:not(.menu-item-cta) a:hover:before {
    left: 12px;
    width: calc(100% - 24px);
  }

  .header .navigation .menu li.menu-item-cta a:before {
    content: none !important;
  }

  .menu-item-cta {
    display: inline-flex !important;
    gap: 8px;
    align-items: center;
    padding: 0 0 0 12px;
    white-space: nowrap;
  }
}

@media screen and (max-width: 1199px) {
  .header .navigation {
    box-shadow: 0 8px 16px 0 rgba(6, 38, 58, 0.08);
  }

  .header .navigation .menu li:not(.menu-item-cta) a {
    border-bottom: 1px solid rgba(6, 38, 58, 0.06);
  }

  .menu-item-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .menu-item-cta a {
    border-bottom: none !important;
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Footer */

.site-footer {
  background: var(--brand-navy);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0;
}

.site-footer .footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding: 60px 0 30px;
}

.site-footer .footer-brand {
  max-width: 320px;
}

.site-footer .logo-wordmark {
  color: var(--white-color);
  font-size: 26px;
}

.site-footer .logo-wordmark:hover {
  color: var(--brand-gold);
}

.site-footer .footer-tagline {
  margin-top: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer h4 {
  font-family: var(--serif-font);
  font-size: 18px;
  color: var(--white-color);
  margin-bottom: 16px;
}

.site-footer .footer-links ul li,
.site-footer .footer-social ul li {
  margin-bottom: 10px;
}

.site-footer .footer-links a,
.site-footer .footer-social a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer .footer-links a:hover,
.site-footer .footer-social a:hover {
  color: var(--brand-gold);
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  text-align: center;
}

.site-footer .footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

@media screen and (max-width: 768px) {
  .site-footer .footer-columns {
    flex-direction: column;
    gap: 28px;
    padding: 44px 0 24px;
  }
}
