@import url('css/normalize.min.css');
@import url('css/fonts.css');

/*  
Theme Name: Birdies Driving Range 2026
Theme URI: https://birdiesdrivingrange.com
Description: Middle of the summer in a cheetah mink
Author: David Stagg
Author URI: https://davidstagg.com
Text Domain: birdies
Version: 1.0
*/
:root {
	/* Colors */
	--black: #000000;
	--dark-grey: #484848;
	--mid-grey: #8e8e8e;
	--off-white: #dbdbdb;
	--white: #FFFFFF;
	--primary-color: #1c4932;
	--primary-dark: #0c2218;
	--secondary-color: #ffef00;
	--off-white: #fbefd7;
	
	/* Primary / Secondary as rgb */
	--primary-rgb: 255, 0, 0;
	--secondary-rgb: 140, 90, 255;
	--black-rgb: 0, 0, 0;
	
	/* Define opacities */
	--opacity-light: 0.3;
	--opacity-medium: 0.5;
	--opacity-heavy: 0.7;

	/* Typography */
	--font-base: 'Marlfield Regular', serif;
	--font-sans: 'Marlfield Sans Regular', serif;
	
	--line-height-base: 1.2;
	--line-height-mid: 1.4;
	--line-height-space: 1.7;
}

/* Base Elements */
html {
	font-size: 16px;
	scroll-behavior: smooth;
	color-scheme: light dark;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	text-size-adjust: 100%;
	font-family: var(--font-base);
	font-weight: 400;
	font-style: normal;
	line-height: var(--line-height-base);
}

body {
	min-height: 100vh;
	/* background-color: var(--off-white); */
	color: var(--primary-dark);
	overflow-wrap: break-word;
	word-wrap: break-word;
}

/* Selection Styles */
::selection {
	background: var(--primary-color);
	color: var(--off-white);
	text-shadow: none;
}
::-moz-selection {
	background: var(--primary-color);
	color: var(--off-white);
	text-shadow: none;
}

/* Accessibility */
.screen-reader,
.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
}

audio, canvas, iframe, img, svg, video { vertical-align: middle; }
code, kbd, pre, samp { line-height: var(--line-height-close); }

/* Typography */
h1, h2, h3, h4,
h1 a, h2 a, h3 a, h4 a { 
	font-family: var(--font-base); 
	font-weight: normal; 
	color: var(--primary-color); 
	text-decoration: none; 
	line-height: 1; 
}
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover { 
	color: var(--primary-color); 
	border-color: var(--primary-dark); 
}
h1, h2, h3, h4 { font-size: 3rem; margin: 3rem 0 2rem; }
h1 { margin-top: 0; letter-spacing: -2px; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
p, ul, ol, dl, dd { margin: 2rem 0; font-size: 1.1rem; color: var(--primary-dark); }
ul, ol, dl, dd { padding: 0 0 0 1.8rem; }
ul ul, ul ol, ol ol, ol ul { margin: 1rem 0 1rem 1.5rem; }
li { margin: 0.25rem 0; padding: 0; }

/* Buttons and Links */
a, a:visited, button, .btn { 
	color: var(--primary-dark); 
	outline: 0; 
	text-decoration: none;
}
a:hover, button:hover, a:focus { 
	color: var(--primary-color); 
	outline: 0; 
	border-color: var(--secondary-color); 
}
.wp-block-button__link { border-radius: 8px; }

/* Image Handling */
img { max-width: 100%; width: 100%; height: auto; display: block; }
img.loading { opacity: 0; transition: opacity 0.3s ease-in-out; }
img.loaded { opacity: 1; }

.wp-block-image { margin: 2rem -1rem; width: calc(100% + 2rem); }

.alignfull { margin: 2rem calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.alignwide { margin: 2rem calc(25% - 25vw); max-width: 75vw; width: 75vw; }
.wp-block-image.is-style-rounded img { aspect-ratio: 1; }
figure a,
.wp-block-image>a,
.wp-block-image>figure>a { display: block; }
figure.feat-img { border: 1px solid var(--secondary-color); }

figure figcaption { 
	font-family: var(--font-sans); 
	font-size: 0.8rem; 
	letter-spacing: 0; 
	line-height: 1; 
	background-color: var(--black-rgb); 
	color: var(--secondary-color); 
	padding: 0.5rem; 
	border-top: 1px solid var(--secondary-color); 
	text-align: left; 
}
figure figcaption a { display: inline; }

/* Blockquotes */
blockquote, q { quotes: none; }
blockquote,
blockquote.wp-block-quote { 
	position: relative; 
	margin: 3rem 0 0; 
	font-family: var(--font-sans); 
	color: var(--mid-grey); 
	font-size: 1.2rem; 
	padding-left: 2rem; 
	border-left: 1px solid var(--secondary-color); 
}
blockquote p { font-size: 1.2rem; letter-spacing: 0; }
blockquote p:first-of-type { margin-top: 0; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; }
blockquote cite,
.wp-block-quote cite,
.wp-block-quote footer { 
	display: block; 
	font-size: 1rem; 
	font-family: var(--font-base); 
	font-weight: 700; 
	position: relative; 
	color: var(--secondary-color); 
	font-style: normal; 
	padding-left: 1.5rem; 
	letter-spacing: -0.05rem; 
}
blockquote cite:before { 
	font-family: var(--font-sans); 
	position: absolute; 
	left: 0; 
	top: -2px; 
	content: '\2020\00A0'; 
}

/* Embeds */
.wp-block-embed__wrapper { display:block; max-width:100%; }
.wp-block-embed__wrapper iframe,
.wp-block-embed__wrapper > embed,
.wp-block-embed__wrapper > video,
.wp-block-embed__wrapper > object {
  width: 100%;
  height: 100%;
  display: block;
}

/* Form Elements */
sub, sup { 
	font-size: 65%; 
	top: -0.6rem; 
	color: var(--secondary-color); 
	font-family: var(--font-sans); 
	font-weight: 700; 
	left: 0.1rem; 
}
em { 
	font-family: var(--font-base); 
	font-style: oblique;
	font-size: 1.1rem; 
	font-weight: 700; 
	letter-spacing: 0; 
}
cite em { font-size: 1rem; }
button, input, select, textarea { color: var(--primary-color); }
label { 
	display: inline-block; 
	color: var(--secondary-color); 
	font-size: 1.1rem; 
	line-height: 1; 
	font-weight: 700; 
	text-transform: uppercase; 
	letter-spacing: 0; 
}
fieldset { border: 0; margin: 0; padding: 0; }
textarea { resize: vertical; }

/* Horizontal Rule */
hr,
hr.wp-block-separator,
hr.wp-block-separator:not(.is-style-wide):not(.is-style-dots) { 
	position: relative; 
	display: block; 
	height: 1px; 
	border: 0; 
	border-top: 1px solid var(--primary-color); 
	margin: 4rem auto; 
	padding: 0; 
	width: 80%; 
}

small { 
	font-size: 1rem; 
	line-height: 1; 
	display: block; 
	margin: 2rem 0; 
	text-transform: uppercase; 
}
small em { font-size: 0.88rem; }
pre, .pre { 
	color: var(--off-white); 
	font-family: var(--font-sans); 
	line-height: 1.2; 
}

svg { fill: var(--primary-color); height: 100%; }

/* Motion Preferences */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { 
		animation-duration: 0.01ms !important; 
		animation-iteration-count: 1 !important; 
		transition-duration: 0.01ms !important; 
		scroll-behavior: auto !important; 
	}
}

/* Easing Helper */
.ease { 
	-webkit-transition-property: all; 
	transition-property: all; 
	-webkit-transition-duration: .3s; 
	transition-duration: .3s; 
	-webkit-transition-timing-function: ease; 
	transition-timing-function: ease; 
}


/* Base Structure */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.video-background video {
  /* Center the video and make it cover like background-size: cover */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  /* Blur the video for depth perception */
  filter: blur(8px);
  /* Scale slightly to hide blur edges */
  transform: translate(-50%, -50%) scale(1.1);
}

/* Optional: Darken overlay on video for better contrast */
.video-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}


/* LAYER 2: PARALLAX CARDS (Middle layer) */
.parallax-cards-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.parallax-cards-wrapper {
  /* This wrapper will be translated via JS based on scroll */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* Height determined by number of cards */
  will-change: transform;
}

.card {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  filter: blur(2px);
}

.card::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
	0 25px 50px -12px rgba(0, 0, 0, 0.5),
	inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Different subtle tints for each card */
.card:nth-child(1)::before {
  background: linear-gradient(
	135deg,
	rgba(99, 102, 241, 0.15) 0%,
	rgba(139, 92, 246, 0.08) 100%
  );
}

.card:nth-child(2)::before {
  background: linear-gradient(
	135deg,
	rgba(236, 72, 153, 0.12) 0%,
	rgba(244, 114, 182, 0.06) 100%
  );
}

.card:nth-child(3)::before {
  background: linear-gradient(
	135deg,
	rgba(34, 197, 94, 0.12) 0%,
	rgba(74, 222, 128, 0.06) 100%
  );
}

.card:nth-child(4)::before {
  background: linear-gradient(
	135deg,
	rgba(251, 191, 36, 0.12) 0%,
	rgba(253, 224, 71, 0.06) 100%
  );
}

.card:nth-child(5)::before {
  background: linear-gradient(
	135deg,
	rgba(14, 165, 233, 0.12) 0%,
	rgba(56, 189, 248, 0.06) 100%
  );
}

/* ========================================
   LAYER 3: PRIMARY CONTENT (Foreground)
   Normal scroll, on top of everything
======================================== */
.primary-content {
  position: relative;
  z-index: 1;
}

.normal-content-holder {
  /* Each section is viewport height to align with cards */
  min-height: 100vh;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Content styling */
.content-section {
  max-width: 800px;
  text-align: center;
}

.content-section h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: -0.02em;
}

.content-section h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.content-section p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 600px;
}

.content-section .btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.content-section .btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}



/* ========================================
   SCROLL INDICATOR
======================================== */
.scroll-indicator {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: scroll-hint 1.5s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%, 100% {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
  }
  50% {
	transform: translateX(-50%) translateY(8px);
	opacity: 0.3;
  }
}

/* Hide scroll indicator after scrolling */
.scrolled .scroll-indicator {
  opacity: 0;
}














/* Layout */
.base-wrap { padding: 1rem; position: relative; }

/* Header */
header.birdies { margin-bottom: 4rem; }

/* Main Content */
main.primary { width: 100%; }

/* Article Content */
figure.feat-img { margin-bottom: 5rem; }
article .article-header { margin-bottom: 3rem; text-align: center; }
article .article-header h1 { margin: 1.5rem 0; }
article .article-content .the-post { margin: 3rem 0; line-height: 2rem; }
article .article-content .the-post p:last-child { margin-bottom: 0; }

/* Footer */
section.footer { 
	position: sticky; 
	z-index: 99; 
	padding: 0.5rem; 
	bottom: 0; 
	left: 0; 
	right: 0; 
	background-color: rgba(var(--secondary-rgb), var(--opacity-light)); 
}
section.footer small { margin: 0; color: var(--primary-color); }



/* Responsive: Landscape/Tablet */
@media (orientation: landscape) or (min-width: 768px) {
	
	blockquote { padding-left: 3rem; }
	figure figcaption,
	figure.wp-block-image figcaption { padding: 1rem; }
	
	header.birdies { margin-bottom: 0; }
	
	.base-wrap {  max-width: 40rem; margin: auto; }
	
}

/* Responsive: Desktop */
@media only screen and (min-width: 782px) {
	
	figure.wp-block-image,
	.wp-block-image { margin: 3rem 0; width: 100%; }
	figure figcaption,
	figure.wp-block-image figcaption { margin: 0; }
	figure :where(figcaption),
	figure.wp-block-embed :where(figcaption),
	figure.wp-block-image :where(figcaption),
	figure.wp-block-video :where(figcaption) { margin-top: 1rem; }
	
	h1, h2, h3, h4 { font-size: 3.5rem; margin: 6rem 0 1.5rem; }
	h2 { font-size: 3rem; }
	h3 { font-size: 2.5rem; }
	h4 { font-size: 2rem; }
	
	p, ul, ol, dl, dd, hr { margin: 3rem 0; }
	
}

/* Responsive: Small Desktop */
@media only screen and (min-width: 1024px) {
	
	p, ul, ol, dl, dd { font-size: 1.2rem; line-height: 2; }
		
	.base-wrap { max-width: none; }
	
	figure,
	figure.wp-block-embed,
	figure.wp-block-image,
	figure.wp-block-video { 
		margin: 4rem -5rem 2rem; 
		width: calc(100% + 10rem); 
		border: 1px solid var(--secondary-color); 
	}
	figure.wp-block-embed { 
		border: 1px solid var(--secondary-color); 
		padding: 0.5rem; 
	}
	
}

/* Responsive: Large Desktop */
@media only screen and (min-width: 1242px) {
	
	figure.feat-img { width: 80%; margin-left: auto; margin-right: auto; }
	
	h1 { font-size: 5rem; }
	
	.base-wrap main { max-width: none; }
	.base-wrap main .article-header h1 { font-size: 5rem; }
	.base-wrap main .article-content { width: 60%; margin: auto; }
	
}