/*
Theme Name: CPTA Splash
Theme URI: https://example.com/
Author: Nicholas Sang
Author URI: https://example.com/
Description: A responsive splash/coming-soon theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cpta-splash
*/

:root{
  --overlay: rgba(11,31,51,.5); /* #0b1f33 at 0.5 opacity */
  --text: #ffffff;
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
}

body{
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.2;
  background: #0b1f33;
}

/* If the admin bar is visible, don't let it push content off-screen */
html{ scroll-padding-top: 0; }
body.admin-bar .cpta-splash{
  min-height: calc(100vh - 32px);
}
@media (max-width: 782px){
  body.admin-bar .cpta-splash{
    min-height: calc(100vh - 46px);
  }
}

.cpta-splash{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}

.cpta-splash::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./assets/cpta-splash-bg2.webp");
  background-size: cover;
  background-position: 75% 0px;
  background-repeat: no-repeat;
  transform: scale(1.02);
  z-index: 0;
}

.cpta-splash::after{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 1;
}

.cpta-splash__content{
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(92vw, 980px);
  padding: clamp(14px, 3.5vw, 28px);
}

.cpta-splash__title{
  margin: 0 0 clamp(10px, 2vw, 16px);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 5.5vw, 64px);
  line-height: 1.05;
  text-wrap: balance;
}

.cpta-splash__subtitle{
  margin: 0 0 clamp(16px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(14px, 2.2vw, 18px);
  opacity: 0.95;
}

.logo {margin-bottom: 30px; max-width: 768px;}

.cpta-splash__phone{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: clamp(16px, 2.6vw, 22px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  max-width: 100%;
}

.cpta-splash__phone a{
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.cpta-splash__phone a:focus-visible{
  outline: 2px solid rgba(255,255,255,0.8);
  outline-offset: 3px;
  border-radius: 999px;
}

.cpta-splash__icon{
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  opacity: 0.95;
}

@media (max-width: 360px){
  .cpta-splash__phone{
    flex-wrap: wrap;
    white-space: normal;
  }
}