/*
Theme Name:     Grand ai
Template:       twentytwentyfour
Version:        1.1.0
Description:    Ultra-modern, AI-driven, fintech child theme for nister.org (Forex AI, high-conversion, super responsive, pro UX).
Author:         Nister Team
Author URI:     https://nister.org/
Tags:           ai, fintech, forex, modern, minimal, responsive, accessibility, child-theme, conversion
Text Domain:    grand-ai
License:        GNU General Public License v2 or later
License URI:    https://www.gnu.org/licenses/gpl-2.0.html
*/

/*------------------ COLOR & THEME ROOTS ------------------*/
:root {
  --brand-blue: #2563eb;
  --brand-cyan: #06d6a0;
  --brand-dark: #0f172a;
  --brand-bg: #f1f5f9;
  --brand-gray: #64748b;
  --brand-gradient: linear-gradient(90deg, #2563eb 0%, #06d6a0 100%);
  --font-main: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'Fira Mono', 'Menlo', 'Monaco', monospace;
  --border-radius: 20px;
  --border-radius-sm: 12px;
  --transition: 0.19s cubic-bezier(.38,.54,.25,1.1);
  --shadow-main: 0 4px 24px 0 rgba(37,99,235,0.08);
  --shadow-hover: 0 12px 36px 0 rgba(6,214,160,0.18);
  --shadow-card: 0 2px 16px rgba(16, 38, 105, 0.07);
}

/*------------------ TYPOGRAPHY ------------------*/
html {
  font-family: var(--font-main);
  font-size: 18px;
  background: var(--brand-bg);
  color: var(--brand-dark);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--brand-bg);
  font-family: var(--font-main);
}
a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color var(--transition), box-shadow var(--transition);
}
a:hover, a:focus {
  color: var(--brand-cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 0.5em;
  letter-spacing: 0.5px;
  line-height: 1.13;
}
h1 { font-size: 3.0rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.18rem; }

p, ul, ol, li, blockquote {
  font-size: 1.09rem;
  color: var(--brand-gray);
  line-height: 1.73;
  font-weight: 500;
}
code, pre {
  font-family: var(--font-mono);
  background: #e0e7ef;
  color: #0f172a;
  border-radius: 6px;
  padding: 0.15em 0.5em;
}

/*------------------ LAYOUT CONTAINER ------------------*/
.container,
[class*="container"] {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.3rem;
  padding-right: 1.3rem;
}
section {
  width: 100%;
  padding: 4.2rem 0;
}
section:not(:last-child) {
  margin-bottom: 1.5rem;
}

/*------------------ HERO/FEATURES GRID ------------------*/
.grid,
.grid-cols-1,
.grid-cols-2,
.grid-cols-3,
.grid-cols-4 {
  display: grid;
  gap: 2rem;
}
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1020px) {
  .grid-cols-4 { grid-template-columns: 1fr 1fr; }
  .grid-cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .grid-cols-4, .grid-cols-3, .grid-cols-2 { grid-template-columns: 1fr; }
}

/*------------------ CARD STYLE ------------------*/
.card,
section#features .grid > div,
section#performance .bg-blue-50 {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 2.5rem 1.7rem;
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.card:hover,
section#features .grid > div:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.024);
}
.card svg, section#features .grid > div svg {
  margin-bottom: 1.2rem;
  width: 44px;
  height: 44px;
}

/*------------------ ICON/IMAGE ALIGNMENT ------------------*/
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--border-radius-sm);
}
svg.icon, .icon-svg {
  display: inline-block;
  width: 1.75em;
  height: 1.75em;
  vertical-align: middle;
}

/*------------------ BUTTONS ------------------*/
button, .btn, input[type="submit"], a.btn {
  display: inline-block;
  font-family: var(--font-main);
  font-weight: 700;
  border-radius: 12px;
  border: none;
  padding: 0.98em 2.2em;
  background: var(--brand-gradient);
  color: #fff;
  cursor: pointer;
  font-size: 1.13rem;
  box-shadow: var(--shadow-main);
  transition: box-shadow var(--transition), background var(--transition), transform var(--transition);
  letter-spacing: 0.8px;
}
button:hover, .btn:hover, input[type="submit"]:hover, a.btn:hover {
  box-shadow: var(--shadow-hover);
  background: linear-gradient(90deg, #06d6a0 0%, #2563eb 100%);
  transform: translateY(-1.5px) scale(1.015);
}

/*------------------ NAVIGATION ------------------*/
nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  background: none;
}
nav a {
  color: var(--brand-dark);
  font-weight: 600;
  letter-spacing: 1.2px;
  font-size: 1.09rem;
  padding: 0.3em 0.2em 0.2em 0.2em;
  border-bottom: 2.5px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
nav a.active,
nav a:hover,
nav a:focus {
  color: var(--brand-blue);
  border-bottom: 2.2px solid var(--brand-cyan);
  background: rgba(6, 214, 160, 0.08);
  border-radius: 4px 4px 0 0;
}

/*------------------ HEADER / FOOTER ------------------*/
header, .header {
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(16, 38, 105, 0.09);
  position: sticky;
  top: 0;
  z-index: 99;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
footer, .footer {
  background: var(--brand-dark);
  color: #fff;
  padding-top: 3rem;
  padding-bottom: 2rem;
  margin-top: 3rem;
}
footer a, .footer a { color: var(--brand-cyan); }

/*------------------ FORM & INPUTS ------------------*/
input, textarea, select {
  font-family: var(--font-main);
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  padding: 0.9em 1.2em;
  font-size: 1rem;
  margin-bottom: 1.2em;
  background: #f8fafc;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-blue);
  outline: none;
  box-shadow: 0 0 0 2px #06d6a030;
}

/*------------------ TABLES ------------------*/
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2em;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.98em;
}
th, td {
  padding: 1em 1.2em;
  text-align: left;
}
th {
  background: var(--brand-blue);
  color: #fff;
  font-weight: 700;
}
tr:nth-child(even) {
  background: #f1f5f9;
}

/*------------------ RESPONSIVE BREAKPOINTS ------------------*/
@media (max-width: 1240px) {
  .container { max-width: 99vw; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.7rem; }
  nav { gap: 1.1rem; }
}
@media (max-width: 920px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.25rem; }
  .card, section#features .grid > div { padding: 1.6rem 0.7rem; }
}
@media (max-width: 720px) {
  section { padding: 1.8rem 0; }
  .container { padding-left: 0.7rem; padding-right: 0.7rem; }
  header, .header, footer, .footer { padding-left: 0.5rem; padding-right: 0.5rem; }
  nav { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .grid, .grid-cols-2, .grid-cols-3, .grid-cols-4 { gap: 1rem; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.09rem; }
  h2 { font-size: 1rem; }
  .card, section#features .grid > div { padding: 0.6rem 0.1rem; }
}

/*------------------ ACCESSIBLE FOCUS ------------------*/
a:focus, button:focus, .btn:focus, input:focus, textarea:focus {
  outline: 2.5px solid var(--brand-cyan);
  outline-offset: 2.5px;
  box-shadow: 0 0 0 3px #06d6a050;
}

/*------------------ SCROLLBAR ------------------*/
::-webkit-scrollbar {
  width: 10px;
  background: var(--brand-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-blue);
  border-radius: 8px;
}

/*------------------ SCREEN READER ONLY ------------------*/
.screen-reader-text {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/*------------------ UTILITIES ------------------*/
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.flex-center { display: flex !important; align-items: center !important; justify-content: center !important; }
.gap-2 { gap: 0.7rem !important; }
.gap-4 { gap: 1.4rem !important; }
.rounded-2xl { border-radius: 2.2rem !important; }
.shadow-xl { box-shadow: 0 10px 48px rgba(37,99,235,0.10) !important; }
.shadow-md { box-shadow: 0 4px 24px rgba(37,99,235,0.09) !important; }

@media (max-width: 720px) {
  .text-center-md { text-align: center !important; }
  .flex-center-md { flex-direction: column !important; align-items: center !important; }
}

/*------------------ CUSTOM FONTS (If not added in functions.php) ------------------*/
/*
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800&display=swap');
*/
