/* ============================================================
   EverInternational Bank — shared.css
   Styles for interior pages (rates, about, contact, etc.)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

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

:root {
  --blue: #3a56e8; --blue-dark: #2a3fb8; --blue-light: #5470f0;
  --blue-pale: #eef1fd; --blue-xlight: #f4f6ff;
  --navy: #0d1a3e; --navy-mid: #1a2d60;
  --accent-green: #1a6b3c; --accent-green-light: #22c55e; --accent-green-pale: #f0fdf4;
  --red: #ef4444; --red-pale: #fef2f2;
  --amber: #f59e0b; --amber-pale: #fffbeb;
  --gray-50: #f9fafb; --gray-100: #f3f4f6; --gray-200: #e5e7eb;
  --gray-400: #9ca3af; --gray-500: #6b7280; --gray-600: #4b5563;
  --gray-700: #374151; --gray-900: #111827;
  --font: 'Inter', sans-serif;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --container: 1160px;
}

body { font-family: var(--font); color: var(--gray-900); background: white; font-size: 16px; line-height: 1.7; }

/* ── HEADER (shared with index) ── */
.announcement-bar { background: var(--accent-green); color: white; text-align: center; padding: 9px 20px; font-size: 13px; font-weight: 500; }
.announcement-bar a { color: white; font-weight: 700; text-decoration: underline; }

.site-header { background: white; border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }

.logo-link { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-icon { position: relative; width: 38px; height: 38px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.logo-stripe { height: 7px; background: var(--blue); border-radius: 2px; transform: skewX(-18deg); display: block; }
.logo-stripe:first-child { width: 34px; }
.logo-stripe:nth-child(2) { width: 28px; margin-left: 2px; background: #6c8fff; }
.logo-stripe:last-child { width: 20px; margin-left: 5px; }
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-name { font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.logo-tagline { font-size: 9px; font-weight: 500; color: var(--gray-400); letter-spacing: .08em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--gray-700); text-decoration: none; border-radius: 8px; transition: all .2s; white-space: nowrap; }
.site-nav a:hover, .site-nav a.active { background: var(--blue-pale); color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-signin { padding: 8px 18px; background: none; border: 2px solid var(--gray-200); color: var(--gray-700); border-radius: 8px; font-family: var(--font); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .2s; }
.btn-signin:hover { border-color: var(--blue); color: var(--blue); }
.btn-open { padding: 9px 20px; background: var(--blue); color: white; border: none; border-radius: 8px; font-family: var(--font); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .2s; }
.btn-open:hover { background: var(--blue-dark); }

.mobile-nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--gray-700); }

/* ── PAGE HERO ── */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1e3a80 100%); color: white; padding: 64px 24px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content:''; position:absolute; width:500px; height:500px; background:radial-gradient(circle,rgba(84,112,240,.2) 0%,transparent 70%); top:-150px; right:-100px; pointer-events:none; }
.page-hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-green-light); margin-bottom: 16px; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: 52px; font-weight: 700; line-height: 1.12; margin-bottom: 16px; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,.75); line-height: 1.7; max-width: 560px; margin: 0 auto; }

/* ── CONTAINER ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 24px; }
.section-alt { background: var(--gray-50); }
.section-blue { background: var(--blue-pale); }
.section-navy { background: var(--navy); }

.section-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.section-label.white { color: var(--accent-green-light); }
.section-title { font-family: 'Playfair Display', serif; font-size: 40px; font-weight: 700; color: var(--navy); line-height: 1.18; margin-bottom: 16px; }
.section-title.white { color: white; }
.section-subtitle { font-size: 16px; color: var(--gray-600); line-height: 1.7; max-width: 600px; }
.section-subtitle.white { color: rgba(255,255,255,.7); }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ── CARDS ── */
.card-grid { display: grid; gap: 20px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature-card { background: white; border: 1px solid var(--gray-200); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card .card-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.feature-card .card-icon.blue   { background: var(--blue-pale); color: var(--blue); }
.feature-card .card-icon.green  { background: var(--accent-green-pale); color: var(--accent-green); }
.feature-card .card-icon.navy   { background: var(--navy); color: white; }
.feature-card h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.feature-card p  { font-size: 15px; color: var(--gray-600); line-height: 1.7; }
.feature-card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; }
.feature-card .card-link:hover { gap: 10px; }

/* ── RATE CARDS ── */
.rate-card { background: white; border: 1px solid var(--gray-200); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); text-align: center; }
.rate-card.featured { border-color: var(--accent-green); box-shadow: 0 0 0 2px var(--accent-green-pale), var(--shadow-md); }
.rate-card .rate-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-400); margin-bottom: 8px; }
.rate-card .apy-num { font-size: 44px; font-weight: 800; color: var(--accent-green); line-height: 1; margin-bottom: 4px; }
.rate-card .apy-num sup { font-size: 20px; vertical-align: super; }
.rate-card .apy-label { font-size: 11px; font-weight: 700; color: var(--gray-400); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.rate-card .rate-desc { font-size: 13px; color: var(--gray-600); line-height: 1.6; }
.rate-card .rate-tag { display: inline-block; background: var(--accent-green-pale); color: var(--accent-green); border-radius: 20px; padding: 3px 10px; font-size: 11px; font-weight: 600; margin-top: 12px; }

/* ── TABLE ── */
.rates-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rates-table th { text-align: left; padding: 12px 16px; background: var(--navy); color: white; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.rates-table th:first-child { border-radius: 10px 0 0 0; }
.rates-table th:last-child  { border-radius: 0 10px 0 0; }
.rates-table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); }
.rates-table tbody tr:last-child td { border-bottom: none; }
.rates-table tbody tr:hover td { background: var(--gray-50); }
.rates-table .apy-cell { font-weight: 700; color: var(--accent-green); font-size: 16px; }
.rates-table .highlight-row td { background: var(--blue-pale); }

/* ── BUTTONS ── */
.btn-blue { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; background: var(--blue); color: white; border: none; border-radius: 10px; font-family: var(--font); font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .2s; }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(58,86,232,.3); }
.btn-white { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; background: white; color: var(--navy); border: none; border-radius: 10px; font-family: var(--font); font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .2s; }
.btn-white:hover { background: var(--gray-100); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; background: none; border: 2px solid rgba(255,255,255,.4); color: white; border-radius: 10px; font-family: var(--font); font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .2s; }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,.08); }

/* ── FORM ── */
.form-card { background: white; border-radius: 20px; padding: 40px; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group label .req { color: var(--red); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .i-icon { position: absolute; left: 13px; color: var(--gray-400); font-size: 13px; pointer-events: none; }
.input-wrap input, .input-wrap select, .input-wrap textarea { width: 100%; padding: 11px 13px 11px 38px; border: 2px solid var(--gray-200); border-radius: 10px; font-family: var(--font); font-size: 14px; color: var(--gray-900); outline: none; transition: border-color .2s, box-shadow .2s; background: white; }
.input-wrap input:focus, .input-wrap select:focus, .input-wrap textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(58,86,232,.1); }
.input-wrap textarea { padding-left: 38px; resize: vertical; min-height: 100px; }
.form-group.span-2 { grid-column: span 2; }
.form-success { text-align: center; padding: 32px; color: var(--accent-green); }
.form-success i { font-size: 48px; margin-bottom: 16px; }
.form-success h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.form-success p { font-size: 14px; color: var(--gray-600); }

.alert { padding: 12px 16px; border-radius: 10px; font-size: 13px; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.alert-error   { background: var(--red-pale); color: var(--red); border: 1px solid rgba(239,68,68,.2); }
.alert-success { background: var(--accent-green-pale); color: var(--accent-green); border: 1px solid rgba(34,197,94,.2); }
.alert.hidden { display: none; }

/* ── FOOTER ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 60px 24px 0; }
.footer-inner { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; }
.footer-brand .logo-name { color: white; font-size: 16px; }
.footer-brand .logo-tagline { color: rgba(255,255,255,.4); }
.footer-brand .logo-stripe { background: white; }
.footer-desc { font-size: 13px; line-height: 1.8; margin-top: 14px; color: rgba(255,255,255,.5); max-width: 280px; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: var(--container); margin: 0 auto; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.35); }
.footer-badges { display: flex; gap: 16px; }
.footer-badge { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,.4); }
.footer-badge i { font-size: 13px; }

/* ── FADE ANIMATION ── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE NAV ── */
.mobile-nav { display: none; position: fixed; inset: 0; background: white; z-index: 200; padding: 24px; flex-direction: column; gap: 8px; overflow-y: auto; }
.mobile-nav.open { display: flex; }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mobile-nav-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray-700); }
.mobile-nav a, .mobile-nav button { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: 16px; font-weight: 500; color: var(--gray-700); text-decoration: none; border-radius: 10px; border: none; background: none; cursor: pointer; font-family: var(--font); transition: background .2s; }
.mobile-nav a:hover, .mobile-nav button:hover { background: var(--gray-100); }
.mobile-nav .mobile-cta { background: var(--blue); color: white; justify-content: center; margin-top: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .mobile-nav-toggle { display: flex; }
  .page-hero h1 { font-size: 32px; }
  .section-title { font-size: 28px; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-group.span-2 { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 48px 20px; }
}

@media (max-width: 480px) {
  .header-inner { height: 60px; }
  .page-hero { padding: 48px 16px; }
  .page-hero h1 { font-size: 26px; }
  .btn-blue, .btn-white { font-size: 14px; padding: 11px 20px; }
}
.logo-icon { gap: 4px; }
.logo-stripe:first-child  { width: 40px; height: 9px; }
.logo-stripe:nth-child(2) { width: 24px; height: 9px; }
.logo-stripe:last-child   { width: 40px; height: 9px; }

.logo-name    { font-size: 22px; }
.logo-tagline { font-size: 11px; }

.main-nav .nav-link { font-size: 15px; }

.btn-login, .btn-open-account { font-size: 14px; padding: 9px 20px; }
