/*
Theme Name: Remit - Altos Inspired
Theme URI: https://example.com/remit
Author: Remit
Author URI: https://example.com
Description: A WordPress theme inspired by altoslabs.com design with fully editable sections via Customizer.
Version: 1.0
License: GPL v2 or later
Text Domain: remit
*/

:root {
  --shades-black: #000000;
  --shades-white: #ffffff;
  --shades-silver: #ececec;
  --shades-mediumGrey: #a0a0a0;
  --shades-slateGrey: #4a4a4a;
  --accents-teal: #02b9b1;
  --accents-navy: #391f8a;
  --accents-lavender: #747ac6;
  --font-denim: 'Denim', 'Helvetica Neue', Arial, sans-serif;
  --font-helvetica: 'Helvetica', 'Helvetica Neue', Arial, sans-serif;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1280px;
}

/* Utility classes */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.min-h-screen { min-height: 100vh; }
.h-full { height: 100%; }
.overscroll-none { overscroll-behavior: none; }
.scroll-smooth { scroll-behavior: smooth; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.relative { position: relative; }
.object-cover { object-fit: cover; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }
.block { display: block; }
.hidden { display: none; }

@font-face {
  font-family: 'Denim';
  src: url('assets/fonts/Denim-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Denim';
  src: url('assets/fonts/Denim-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica';
  src: url('assets/fonts/Helvetica-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica';
  src: url('assets/fonts/Helvetica-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.5;
  color: var(--shades-black);
  background: var(--shades-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-denim);
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Text styles */
.section-title {
  font-family: var(--font-denim);
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

@media (min-width: 1281px) {
  .section-title {
    font-size: 3.75rem;
    line-height: 4.0625rem;
  }
}

.tag-label {
  font-family: var(--font-helvetica);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

@media (min-width: 1281px) {
  .tag-label {
    font-size: 1rem;
    letter-spacing: 1.05px;
  }
}

.body-text {
  font-family: var(--font-helvetica);
  font-size: 1rem;
  line-height: 1.75rem;
}

/* Science full-bleed hero section */
.science-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.science-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -20;
  background: var(--shades-black);
}

.science-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.science-overlay {
  position: absolute;
  inset: 0;
  z-index: -10;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.science-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 6rem 2rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 970px) {
  .science-content {
    margin-left: calc((100% - 1280px) / 2 + 2rem);
    margin-right: auto;
    padding: 0 2rem;
  }
}

@media (min-width: 1281px) {
  .science-content {
    margin-left: calc((100% - 1280px) / 2 + 2rem);
    padding: 0;
  }
}

.science-content .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2.75rem;
  border: 1px solid;
  border-radius: 100px;
  font-family: var(--font-denim);
  font-size: 1.25rem;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.science-content .btn-outline:hover {
  background: var(--shades-white);
  color: var(--shades-black) !important;
}

.subtitle-text {
  font-family: var(--font-denim);
  font-size: 1.5rem;
  line-height: 1.3;
}

@media (min-width: 1281px) {
  .subtitle-text {
    font-size: 2.125rem;
    line-height: 2.5rem;
  }
}

/* Hero section */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.hero-section > * {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -20;
  background: var(--shades-black);
}

.hero-bg video,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(6deg, #000 9.34%, rgba(0,0,0,0.46) 31.65%, transparent 62.4%, transparent 109.57%);
  z-index: 1;
}

.hero-content {
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 2rem 0;
  color: var(--shades-white);
  position: relative;
}

.hero-title {
  font-family: var(--font-denim);
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

@media (min-width: 1281px) {
  .hero-title {
    font-size: 3.75rem;
    line-height: 4.0625rem;
  }
}

.hero-scroll {
  margin-top: auto;
  align-self: center;
  padding-bottom: 2rem;
}

.hero-scroll-btn {
  background: transparent;
  border: 1px solid var(--shades-white);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shades-white);
  transition: background 0.3s, color 0.3s;
}

.hero-scroll-btn:hover {
  background: var(--shades-white);
  color: var(--shades-black);
}

.hero-scroll-btn svg {
  width: 20px;
  height: 20px;
  transform: rotate(180deg);
}

.video-control {
  position: absolute;
  bottom: 34px;
  right: 31px;
  z-index: 50;
}

.video-control-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--shades-white);
  background: transparent;
  color: var(--shades-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
}

.video-control-btn:hover {
  background: var(--shades-white);
  color: var(--shades-black);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 34px 0;
  background: transparent;
  z-index: 40;
  transition: background 0.3s;
}

.site-header.scrolled {
  background: rgba(0,0,0,0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.site-logo svg {
  width: 141px;
  height: 32px;
}

.main-nav {
  display: none;
  width: 100%;
  justify-content: center;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-menu a {
  font-family: var(--font-denim);
  font-size: 1rem;
  line-height: 1.6575rem;
  color: var(--shades-white);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: background 0.3s, color 0.3s;
  display: block;
}

.nav-menu a:hover {
  background: var(--shades-white);
  color: var(--shades-black);
}

.nav-menu .contact-link {
  border: 1px solid var(--shades-white);
  padding: 0.75rem 1.5rem;
}

.nav-menu .contact-link:hover {
  background: var(--shades-white);
  color: var(--shades-black);
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 46px;
  height: 46px;
  padding: 14px 12px;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 8px;
  background: var(--shades-white);
  transition: transform 0.3s;
}

/* Section styles */
.content-section {
  background: var(--shades-white);
  color: var(--shades-black);
}

.content-section.dark {
  background: var(--shades-black);
  color: var(--shades-white);
}

.section-padding {
  padding: 52px 0;
}

@media (min-width: 970px) {
  .section-padding {
    padding: 108px 0;
  }
}

.section-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header .tag-label {
  margin-bottom: 0.75rem;
  display: block;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Grid layouts */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 970px) {
  .grid-2-col {
    grid-template-columns: 1fr 1fr;
  }
}

.grid-3-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-3-col {
    grid-template-columns: repeat(3, 1fr);
  }
}

.featured-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--shades-silver);
}

.featured-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.featured-card-body {
  padding: 1.5rem;
}

.featured-card-body h3 {
  font-family: var(--font-denim);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.featured-card-body p {
  font-family: var(--font-helvetica);
  font-size: 0.9375rem;
  color: var(--shades-slateGrey);
}

/* Footer */
.site-footer {
  background: var(--shades-black);
  color: var(--shades-white);
  padding: 80px 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-column h4 {
  font-family: var(--font-denim);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  font-family: var(--font-helvetica);
  font-size: 0.875rem;
  color: var(--shades-mediumGrey);
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: var(--shades-white);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 30;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-denim);
  font-size: 1.875rem;
  color: var(--shades-white);
  padding: 1rem;
  text-align: center;
}

/* Responsive images */
.responsive-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Button styles */
.btn-outline {
  display: inline-block;
  font-family: var(--font-denim);
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline-teal {
  color: var(--accents-teal);
  border-color: var(--accents-teal);
}

.btn-outline-teal:hover {
  background: var(--accents-teal);
  color: var(--shades-white);
}

.btn-outline-white {
  color: var(--shades-white);
  border-color: var(--shades-white);
}

.btn-outline-white:hover {
  background: var(--shades-white);
  color: var(--shades-black);
}

/* Wordpress editor styles */
.wp-block-image {
  margin: 2rem 0;
}
