/*
Theme Name: Daily Press custom theme
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A minimal WordPress theme
Version: 1.0
*/

/* ================================
   FONTS
   ================================ */
@font-face {
  font-family: 'Font_The_Greens_FG';
  src: url('assets/fonts/FG-R.ttf?v=1.1') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Font_The_Greens_FG';
  src: url('assets/fonts/FG-B.ttf?v=1.1') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ================================
   CSS STARTER / BASE
   ================================ */

/* 1. CSS Reset (Modern, Lightweight) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  margin: 0;
}

/* 2. Media Defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 3. Form Defaults */
input,
button,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

/* 4. Remove Animations for Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================
   VARIABLES
   ================================ */
:root {
  /* Colors */
  --color-text: #fff;
  --color-bg: #ffffff;
  --color-primary: #2f80ed;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;

  /* Typography */
  --font-base: 'Font_The_Greens_FG', Arial, Helvetica, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* ================================
   BASE TYPOGRAPHY
   ================================ */
body {
  font-family: var(--font-base);
  font-size: 16px;
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1,
h2,
h3,
h4,
h5,
h6,
.greens-footer__title,
.greens-footer__address {
  font-family: var(--font-base);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h4,
h5,
h6,
.greens-footer__title,
.greens-footer__address {
  font-weight: 700;
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* ================================
   LAYOUT HELPERS
   ================================ */
.container {
  max-width: 1200px;
  padding-inline: var(--space-md);
  margin-inline: auto;
}

.stack>*+* {
  margin-top: var(--space-md);
}

.flex {
  display: flex;
  gap: var(--space-md);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.center {
  display: grid;
  place-items: center;
}

/* ================================
   COMMON COMPONENT BASES
   ================================ */
button,
.button {
  padding: 0.6em 1em;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-primary);
  color: #fff;
  font-weight: 500;
}

button.secondary,
.button.secondary {
  background: transparent;
  color: var(--color-text);
}

input,
textarea {
  padding: 0.6em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  width: 100%;
}

/* ================================
   UTILITIES
   ================================ */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-muted);
}

/* ================================
   LANDING PAGE
   ================================ */
.greens-landing {
  --greens-bg: #065250;
  --text: #fff;
  --muted: rgba(255, 255, 255, .82);
  --container: 1560px;
  --pad: clamp(16px, 3vw, 32px);
}

body {
  background: var(--greens-bg);
}

.greens-container {
  width: min(var(--container), 100% - (var(--pad)*2));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.greens-logo {
  aspect-ratio: 1830/1127;
}

/* HERO */
.greens-hero {
  position: relative;
  min-height: 100dvh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.greens-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, .10));
}

.greens-hero__inner {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--pad);
}

.greens-hero__logo-img {
  width: min(675px, 64.5vw);
  height: auto;
  display: block;
}

.greens-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vw, 80px);
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.greens-hero__chevron {
  width: 100%;
  height: auto;
  display: block;
  opacity: .95;
  animation: greens-bounce 1.6s infinite;
}

@keyframes greens-bounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: .95;
  }

  50% {
    transform: translateY(10px);
    opacity: .70;
  }
}

/* INTRO */
.greens-intro {
  background: var(--greens-bg);
  color: var(--text);
  padding: clamp(34px, 6vw, 70px) 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.greens-intro__text {
  /* max-width: 960px; */
  margin: 0 auto clamp(24px, 4vw, 40px);
  text-align: center;
  line-height: 1.6;
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 400;
}

.greens-btn,
.gform_button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.86rem clamp(1.125rem, 6vw, 5.25rem);
  border-radius: 999px;
  background: #fff;
  color: var(--greens-bg);
  text-decoration: none;
  font-weight: 900;
  font-size: clamp(0.94rem, 3.75vw, 2.6rem);
  transition: all 0.3s ease;
  text-align: center;
  line-height: 1.1;
}

.greens-btn:hover,
.greens-btn:focus-visible,
.gform_button.button:hover,
.gform_button.button:focus-visible {
  opacity: .92;
}

.gform_button.button {
  color: #fff;
  background: var(--greens-bg);
}

/* FOOTER */
.greens-footer {
  background: var(--greens-bg);
  color: var(--text);
  padding: 28px 0 34px;
}

.greens-footer__top {
  display: flex !important;
  flex-direction: column;
  padding-bottom: 18px;
  margin-bottom: 2rem;
  text-align: center;
  align-items: center;
}

@media (min-width: 720px) {
  .greens-footer__top {
    flex-direction: row;
    justify-content: center;
    gap: 60px;
    text-align: left;
  }
}

.greens-footer__logo {
  height: clamp(100px, 15vw, 160px);
  width: auto;
}

@media (max-width: 719px) {
  .greens-footer__logo {
    margin-bottom: 1rem;
  }
}

.greens-footer__title {
  font-weight: 700;
  margin-bottom: 2px;
  font-size: clamp(14px, 1.6vw, 26px);
}

.greens-footer__address {
  color: #fff;
  line-height: 1.45;
  font-size: clamp(14px, 1.6vw, 20px);
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
}

.greens-footer__ack {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 auto 10px;
  font-size: clamp(14px, 1.6vw, 22px);
  text-align: center;
  max-width: 1200px;
}

.greens-footer__copyright {
  color: rgba(255, 255, 255, .7);
  margin: 0;
  font-size: clamp(14px, 1.6vw, 22px);
  text-align: center;
}

@media screen and (max-width: 600px) {
  .greens-hero__scroll {
    width: 64px;
    height: 64px;
  }
}

/* ================================
   GRAVITY FORMS OVERWRITES
   * Ensure you update this in the GF Popups settings too
   ================================ */

/* Form Wrapper & Global variables for Gravity Forms */
.gform_wrapper.gravity-theme,
.gform-theme--framework {
  --gform-theme-control-bg-color: rgba(6, 82, 80, 0.04) !important;
  --gform-theme-control-border-color: rgba(6, 82, 80, 0.1) !important;
  --gform-theme-control-border-radius: 12px !important;
  --gform-theme-control-padding: 14px 18px !important;
  --gform-theme-font-family: var(--font-base) !important;
  --gform-theme-button-primary-bg-color: var(--greens-bg) !important;
  --gform-theme-button-primary-color: #ffffff !important;
}

/* Labels */
.gform_wrapper.gravity-theme .gfield_label,
.gform-theme--framework .gfield_label {
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  color: var(--greens-bg) !important;
  margin-bottom: 8px !important;
}

/* Inputs, Textareas, Selects */
.gform-theme--framework .gform-theme-field-control:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)),
.gform-theme--framework input[type]:where(:not(.gform-text-input-reset):not([type=hidden])):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)),
.gform-theme--framework select:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)),
.gform-theme--framework textarea:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)) {
  background-color: rgba(6, 82, 80, 0.04) !important;
  border: 1px solid rgba(6, 82, 80, 0.1) !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  font-size: 1rem !important;
  color: var(--greens-bg) !important;
  transition: all 0.2s ease !important;
}

.gform-theme--framework input[type]:focus,
.gform-theme--framework select:focus,
.gform-theme--framework textarea:focus {
  background-color: #fff !important;
  border-color: var(--greens-bg) !important;
  box-shadow: 0 0 0 3px rgba(6, 82, 80, 0.1) !important;
  outline: none !important;
}

/* Submit Button Override */
.gform_wrapper.gravity-theme .gform_footer input[type=submit],
.gform_wrapper.gravity-theme .gform_page_footer input[type=button],
.gform-theme--framework .gform_footer button,
#gform_submit_button_1,
.gform-theme--framework input[type]:where(:not(.gform-text-input-reset):not([type=hidden])):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)) .gform_button.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.1rem 4rem !important;
  border-radius: 999px !important;
  background-color: var(--greens-bg) !important;
  color: #fff !important;
  font-weight: 900 !important;
  font-size: 1.5rem !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  letter-spacing: 1.5px !important;
  width: auto !important;
}

.gform_button.button:hover,
.gform_button.button:focus {
  background-color: #043d3b !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(6, 82, 80, 0.2) !important;
  opacity: 1 !important;
}

/* Error States */
.gform_wrapper.gravity-theme .gfield_error input,
.gform-theme--framework .gfield_error input,
.gform-theme--framework .gfield_error textarea {
  border-color: #d63638 !important;
  background-color: rgba(214, 54, 56, 0.05) !important;
}

.gform_wrapper.gravity-theme .validation_message,
.gform-theme--framework .gfield_description.validation_message {
  color: #d63638 !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  margin-top: 8px !important;
}

/* Fix for legend */
.gform-theme--framework legend {
  font-weight: 700 !important;
  color: var(--greens-bg) !important;
  font-size: 1.2rem !important;
  margin-bottom: 10px !important;
}

/* Hide the placeholder behavior of some framework styles if needed */
.gform-theme--framework .gform_fields {
  column-gap: 2.5rem !important;
  row-gap: 1.5rem !important;
}