﻿/*
Theme Name: YNY Theme
Theme URI: https://ynysolutions.com
Author: YNY Solutions Inc
Description: Custom WordPress theme for YNY Solutions Inc.
Version: 2.1.0
License: GNU General Public License v2 or later
Text Domain: yny-theme
*/

/* ===== CSS VARIABLES ===== */
:root {
  --accent-color: #00D4FF;
  --accent2-color: #6366F1;
  --accent3-color: #10B981;
  --accent4-color: #F59E0B;
  --primary-color: #0A4D8C;
  --dark-text-color: #1A1A1A;
  --gray-text-color: #6B7280;
  --light-text-color: #FFFFFF;
  --dark-border-color: #D1D5DB;
  --light-border-color: #E5E7EB;
  --font-family-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-family-heading: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  --dark-background-color: #0F1419;
  --light-background-color: #F0F6FB;
  --medium-background-color: #E3EDF6;
  --primary-button-hover-bg-color: #083A6B;
  --button-rounded-radius: 8px;

  --accent-color-rgb: 0, 212, 255;
  --accent2-color-rgb: 99, 102, 241;
  --accent3-color-rgb: 16, 185, 129;
  --accent4-color-rgb: 245, 158, 11;
  --primary-color-rgb: 10, 77, 140;

}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-width: 0;
  border-style: solid;
}

html,
body {
  line-height: 1.5;
}

body {
  font-family: var(--font-family-body);
  background-color: #ffffff;
  color: var(--dark-text-color);
  margin: 0;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

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

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

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button {
  cursor: pointer;
  background-color: transparent;
  background-image: none;
}

/* ===== KEYFRAMES ===== */
@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

/* ===== LAYOUT ===== */
.container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ===== SHARED INNER PAGE STYLES ===== */
/* Offset fixed header */
.site-main {
  padding-top: 5rem;
}

/* Global Typography for Blocks on Inner Pages */
.site-main .wp-block-heading {
  font-family: var(--font-family-heading);
  font-weight: 700 !important;
  color: var(--dark-text-color);
}

.site-main p {
  color: var(--gray-text-color);
  line-height: 1.6;
}

/* Hero Section (First background image block) */
.wp-block-group.has-background[style*="background-image"]:first-child {
  position: relative;
  padding-top: 8rem !important;
  padding-bottom: 8rem !important;
  margin-top: 0 !important;
  max-width: 100% !important;
}

.wp-block-group.has-background[style*="background-image"]:first-child::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--primary-color-rgb), 0.7), rgba(var(--primary-color-rgb), 0.4));
  z-index: 1;
}

.wp-block-group.has-background[style*="background-image"]:first-child>* {
  position: relative;
  z-index: 2;
  color: #ffffff !important;
}

.wp-block-group.has-background[style*="background-image"]:first-child h2 {
  font-size: 3rem !important;
  margin-bottom: 1.5rem !important;
  color: #ffffff !important;
}

.wp-block-group.has-background[style*="background-image"]:first-child p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Sub-hero Banner */
.site-main .wp-block-group[style*="background-color:#ebebeb"] {
  background-color: var(--light-background-color) !important;
  padding: 3rem 1rem !important;
  max-width: 100% !important;
}

.site-main .wp-block-group[style*="background-color:#ebebeb"] h2 {
  color: var(--primary-color) !important;
  font-size: 1.5rem !important;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.4;
  font-weight: 600 !important;
}

/* Theme-Wide Form Styles (WPForms) */
div.wpforms-container-full {
  margin: 0 !important;
}

div.wpforms-container-full .wpforms-form .wpforms-field-label {
  font-family: var(--font-family-body);
  font-weight: 600;
  color: var(--dark-text-color);
}

div.wpforms-container-full .wpforms-form input[type=date],
div.wpforms-container-full .wpforms-form input[type=datetime],
div.wpforms-container-full .wpforms-form input[type=datetime-local],
div.wpforms-container-full .wpforms-form input[type=email],
div.wpforms-container-full .wpforms-form input[type=month],
div.wpforms-container-full .wpforms-form input[type=number],
div.wpforms-container-full .wpforms-form input[type=password],
div.wpforms-container-full .wpforms-form input[type=range],
div.wpforms-container-full .wpforms-form input[type=search],
div.wpforms-container-full .wpforms-form input[type=tel],
div.wpforms-container-full .wpforms-form input[type=text],
div.wpforms-container-full .wpforms-form input[type=time],
div.wpforms-container-full .wpforms-form input[type=url],
div.wpforms-container-full .wpforms-form input[type=week],
div.wpforms-container-full .wpforms-form select,
div.wpforms-container-full .wpforms-form textarea {
  border-radius: 0.5rem !important;
  border: 1px solid var(--dark-border-color) !important;
  padding: 0.75rem 1rem !important;
  background-color: #ffffff !important;
  color: var(--dark-text-color) !important;
  transition: all 200ms ease;
  font-family: var(--font-family-body);
}

div.wpforms-container-full .wpforms-form input:focus,
div.wpforms-container-full .wpforms-form textarea:focus,
div.wpforms-container-full .wpforms-form select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1) !important;
  outline: none !important;
}

div.wpforms-container-full .wpforms-form button[type=submit] {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  padding: 1rem 2rem !important;
  border-radius: var(--button-rounded-radius) !important;
  font-weight: 600;
  font-size: 1.125rem !important;
  border: none !important;
  transition: all 200ms ease;
  width: 100% !important;
  margin-top: 1rem !important;
}

div.wpforms-container-full .wpforms-form button[type=submit]:hover {
  background-color: var(--primary-button-hover-bg-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .wp-block-group.has-background[style*="background-image"]:first-child h2 {
    font-size: 2rem !important;
  }
}

:is(.btn-primary, .btn-outline, .btn-white, .btn-ghost-white, .btn-white-sm, .btn-primary-lg):not(.wp-block-button),
.wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--button-rounded-radius) !important;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

:is(.btn-primary, .btn.btn-primary):not(.wp-block-button),
.wp-block-button.btn-primary .wp-element-button,
.wp-block-button:not([class*="btn-"]):not([class*="is-style-"]) .wp-element-button {
  padding: 0.75rem 1.5rem !important;
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  font-weight: 600;
  transform: scale(1);
  cursor: pointer;
  border: none !important;
}

:is(.btn-primary, .btn.btn-primary):not(.wp-block-button):hover,
.wp-block-button.btn-primary .wp-element-button:hover,
.wp-block-button:not([class*="btn-"]):not([class*="is-style-"]) .wp-element-button:hover {
  background-color: var(--primary-button-hover-bg-color) !important;
  transform: scale(1.05);
  color: #ffffff !important;
}

.btn-primary-lg:not(.wp-block-button),
.wp-block-button.btn-primary-lg .wp-element-button {
  padding: 1rem 2rem !important;
  font-size: 1rem !important;
}

.btn-outline:not(.wp-block-button),
:is(.wp-block-button.btn-outline, .wp-block-button.is-style-outline) .wp-element-button {
  padding: 1rem 2rem !important;
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  border: 2px solid var(--primary-color) !important;
}

.btn-outline:not(.wp-block-button):hover,
:is(.wp-block-button.btn-outline, .wp-block-button.is-style-outline) .wp-element-button:hover {
  background-color: var(--light-background-color) !important;
  color: var(--primary-color) !important;
}

.btn-white:not(.wp-block-button),
:is(.wp-block-button.btn-white, .wp-block-button.is-style-white) .wp-element-button {
  padding: 1rem 2rem !important;
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  font-weight: 700;
  transform: scale(1);
  border: none !important;
}

.btn-white:not(.wp-block-button):hover,
:is(.wp-block-button.btn-white, .wp-block-button.is-style-white) .wp-element-button:hover {
  background-color: rgba(255, 255, 255, 0.9) !important;
  transform: scale(1.05);
}

.btn-ghost-white:not(.wp-block-button),
:is(.wp-block-button.btn-ghost-white, .wp-block-button.is-style-ghost-white) .wp-element-button {
  padding: 1rem 2rem !important;
  background-color: transparent !important;
  color: #ffffff !important;
  font-weight: 700;
  border: 2px solid #ffffff !important;
}

.btn-ghost-white:not(.wp-block-button):hover,
:is(.wp-block-button.btn-ghost-white, .wp-block-button.is-style-ghost-white) .wp-element-button:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.wp-block-group clients-row is-content-justification-center is-nowrap is-layout-flex wp-container-core-group-is-layout-b02792d1 wp-block-group-is-layout-flex {
 padding-top: 5%;
 padding-bottom: 5%;
}