/* ============================================================
   RAMEY INTECH — rameyintech.com
   Palette: blue #1B87C9 | navy #14283C | green #7AC143 | tint #F4F8FB
   ============================================================ */

:root {
  --blue: #1B87C9;
  --blue-dark: #14689B;
  --navy: #14283C;
  --navy-soft: #1E3A56;
  --green: #7AC143;
  --tint: #F4F8FB;
  --text: #44546A;
  --text-soft: #6B7B8D;
  --white: #FFFFFF;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 40, 60, .10);
  --shadow-lg: 0 20px 50px rgba(20, 40, 60, .16);
  --font: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }

.container { width: min(1140px, 92%); margin: 0 auto; }
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: #DCE6F0; }

/* ---------- Headings & labels ---------- */
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; font-weight: 800; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 26px; height: 3px;
  background: var(--green); border-radius: 2px; margin-right: 10px;
  vertical-align: middle;
}
.section--navy .eyebrow { color: var(--green); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 18px; }
.section-intro { max-width: 640px; font-size: 1.05rem; color: var(--text-soft); }
.section--navy .section-intro { color: #AFC3D6; }
.center { text-align: center; }
.center .section-intro { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 50px;
  font-weight: 700; font-size: .98rem; border: 2px solid transparent;
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 20px rgba(27,135,201,.35); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-3px); box-shadow: 0 14px 28px rgba(27,135,201,.45); }
.btn--outline { border-color: rgba(255,255,255,.75); color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.btn--ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--ghost:hover { background: var(--blue); color: var(--white); transform: translateY(-3px); }
.btn--green { background: var(--green); color: var(--navy); box-shadow: 0 8px 20px rgba(122,193,67,.35); }
.btn--green:hover { filter: brightness(1.06); transform: translateY(-3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0; transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.97); box-shadow: 0 4px 20px rgba(20,40,60,.10); padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 46px; width: auto; transition: height .3s ease; }
.site-header.scrolled .brand img { height: 38px; }
.main-nav ul { display: flex; gap: 30px; list-style: none; align-items: center; }
.main-nav a {
  color: rgba(255,255,255,.92); font-weight: 600; font-size: .93rem;
  position: relative; padding: 4px 0; transition: color .25s ease;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--green); border-radius: 2px; transition: width .25s ease;
}
.main-nav a:hover::after { width: 100%; }
.site-header.scrolled .main-nav a { color: var(--navy); }
.nav-cta { display: inline-flex; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 26px; height: 3px; background: var(--white);
  border-radius: 3px; margin: 5px 0; transition: .3s;
}
.site-header.scrolled .nav-toggle span { background: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background:
    linear-gradient(115deg, rgba(16,34,52,.92) 0%, rgba(20,50,80,.72) 45%, rgba(20,40,60,.45) 100%),
    url('../img/hero.jpg') center/cover no-repeat;
  color: var(--white); padding: 140px 0 90px;
}
.hero-content { max-width: 660px; }
.hero .logo-hero { height: 74px; width: auto; margin-bottom: 28px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.4)); }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; }
.hero h1 .accent { color: var(--green); }
.hero p { font-size: 1.15rem; color: #D7E4F0; margin: 22px 0 36px; max-width: 560px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.55); border-radius: 20px;
}
.scroll-hint::before {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px;
  background: var(--green); border-radius: 4px; transform: translateX(-50%);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% {opacity: 1; top: 8px;} 70% {opacity: 0; top: 22px;} 100% {opacity: 0; top: 8px;} }
.hero { position: relative; }

/* ---------- Video ---------- */
.video-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 6px solid var(--white);
  background: var(--navy);
}
.video-wrap iframe { width: 100%; aspect-ratio: 16/9; display: block; border: 0; }
.video-full {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700;
}
.video-full:hover { color: var(--blue-dark); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 420px 1fr; gap: 64px; align-items: center; }
.about-photo { position: relative; }
.about-photo img {
  width: 100%; border-radius: var(--radius); background: var(--white);
  box-shadow: var(--shadow-lg); border: 8px solid var(--white);
}
.about-photo::before {
  content: ""; position: absolute; inset: auto -18px -18px auto; width: 130px; height: 130px;
  background: var(--green); opacity: .18; border-radius: 24px; z-index: -1;
}
.about-photo::after {
  content: ""; position: absolute; inset: -18px auto auto -18px; width: 130px; height: 130px;
  background: var(--blue); opacity: .14; border-radius: 24px; z-index: -1;
}
.about-quote {
  border-left: 4px solid var(--green); padding-left: 20px; margin: 26px 0;
  font-size: 1.15rem; font-weight: 600; color: var(--navy); font-style: italic;
}
.signature { margin-top: 26px; display: flex; align-items: center; gap: 14px; }
.signature .name { font-weight: 800; color: var(--navy); }
.signature .role { font-size: .9rem; color: var(--text-soft); }
.signature .tick { width: 40px; height: 3px; background: var(--green); border-radius: 2px; }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 54px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 34px 26px;
  box-shadow: var(--shadow); border: 1px solid #E8EFF5;
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 62px; height: 62px; border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  display: grid; place-items: center; margin-bottom: 22px;
}
.card-icon svg { width: 30px; height: 30px; stroke: #fff; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { font-size: .94rem; color: var(--text-soft); flex: 1; }
.card-link { margin-top: 16px; font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover { gap: 10px; }
.card-link { transition: gap .25s ease; }

/* ---------- Why / values strip ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 54px; }
.value { text-align: center; padding: 20px 14px; }
.value-icon {
  width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%;
  border: 2px solid rgba(122,193,67,.5); display: grid; place-items: center;
}
.value-icon svg { width: 32px; height: 32px; stroke: var(--green); }
.value h3 { font-size: 1.08rem; margin-bottom: 8px; }
.value p { font-size: .92rem; color: var(--text-soft); }

/* ---------- eBook ---------- */
.ebook-grid { display: grid; grid-template-columns: 400px 1fr; gap: 70px; align-items: center; }
.book { perspective: 1200px; display: flex; justify-content: center; }
.book-inner {
  transform: rotateY(-22deg) rotateX(4deg); transform-style: preserve-3d;
  transition: transform .5s ease; border-radius: 6px 14px 14px 6px;
  box-shadow: 24px 24px 50px rgba(20,40,60,.35);
}
.book:hover .book-inner { transform: rotateY(-10deg) rotateX(2deg); }
.book-inner img { width: 300px; border-radius: 6px 14px 14px 6px; }
.book-note { text-align: center; font-size: .78rem; color: var(--text-soft); margin-top: 22px; }
.ebook-form { margin-top: 30px; max-width: 480px; }

/* ---------- Directory promo ---------- */
.directory-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.directory-grid .section-intro { margin-bottom: 30px; }
.directory-points { list-style: none; margin-bottom: 34px; }
.directory-points li {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; font-size: .98rem;
}
.directory-points svg { width: 22px; height: 22px; stroke: var(--green); flex-shrink: 0; margin-top: 2px; }
.directory-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.directory-art { position: relative; }
.directory-art img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.directory-art::before {
  content: ""; position: absolute; inset: -20px 20px 20px -20px;
  border: 2px dashed rgba(27,135,201,.35); border-radius: 22px; z-index: -1;
}

/* ---------- Affiliate ---------- */
.affiliate-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.affiliate-art img { border-radius: var(--radius); box-shadow: var(--shadow); }
.affiliate-steps { list-style: none; counter-reset: step; margin: 26px 0 34px; }
.affiliate-steps li {
  counter-increment: step; position: relative; padding-left: 58px; margin-bottom: 20px;
}
.affiliate-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--navy);
  font-weight: 800; display: grid; place-items: center;
}
.affiliate-steps strong { color: var(--navy); display: block; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stat { padding: 20px 10px; }
.stat-number {
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; color: var(--white); line-height: 1;
}
.stat-number .suffix { color: var(--green); }
.stat-label { margin-top: 10px; color: #AFC3D6; font-size: .95rem; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 50px auto 0; }
.faq-item { background: var(--white); border: 1px solid #E4ECF3; border-radius: 14px; margin-bottom: 14px; overflow: hidden; transition: box-shadow .3s ease; }
.faq-item.open { box-shadow: var(--shadow); border-color: rgba(27,135,201,.35); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 22px 26px; font-family: inherit; font-size: 1.02rem; font-weight: 700; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .chev {
  width: 30px; height: 30px; border-radius: 50%; background: var(--tint);
  display: grid; place-items: center; flex-shrink: 0; transition: transform .3s ease, background .3s ease;
}
.faq-q .chev svg { width: 16px; height: 16px; stroke: var(--blue); }
.faq-item.open .chev { transform: rotate(180deg); background: var(--blue); }
.faq-item.open .chev svg { stroke: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 26px 24px; color: var(--text-soft); font-size: .96rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 54px; align-items: start; }
.contact-card {
  background: var(--white); border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow); border: 1px solid #E8EFF5;
}
.contact-card h3 { margin-bottom: 8px; font-size: 1.25rem; }
.contact-card > p { color: var(--text-soft); font-size: .94rem; margin-bottom: 22px; }
.contact-details { list-style: none; margin-top: 26px; }
.contact-details li { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; font-size: .96rem; }
.contact-details svg { width: 20px; height: 20px; stroke: var(--blue); flex-shrink: 0; }
.calendly-card { padding: 28px; }
.calendly-inline-widget { min-width: 320px; height: 700px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #AFC3D6; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 50px; padding-bottom: 50px; }
.footer-brand img { height: 54px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .92rem; max-width: 320px; }
.site-footer h4 { color: var(--white); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #AFC3D6; font-size: .94rem; transition: color .2s ease; }
.footer-links a:hover { color: var(--green); }
.socials { display: flex; gap: 12px; margin-top: 6px; }
.socials a {
  width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; transition: background .25s ease, transform .25s ease;
}
.socials a:hover { background: var(--blue); transform: translateY(-4px); }
.socials svg { width: 20px; height: 20px; fill: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10); padding: 22px 0;
  text-align: center; font-size: .88rem;
}
.footer-bottom .heart { color: var(--green); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; width: 50px; height: 50px;
  border-radius: 50%; background: var(--blue); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease; z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--blue-dark); }
.to-top svg { width: 22px; height: 22px; stroke: #fff; }

/* ---------- Scroll reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-left.visible, .reveal-right.visible { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards, .values { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .ebook-grid, .directory-grid, .affiliate-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-photo { max-width: 380px; margin: 0 auto; }
  .ebook-grid .book { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
    background: var(--white); box-shadow: -10px 0 40px rgba(20,40,60,.2);
    transform: translateX(105%); transition: transform .35s ease; padding: 90px 30px 30px;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 20px; }
  .main-nav a { color: var(--navy); font-size: 1.05rem; }
  .nav-toggle { display: block; z-index: 110; position: relative; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--navy); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--navy); }
  .nav-cta { display: none; }
  .cards, .values { grid-template-columns: 1fr; }
  .hero p { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint::before { animation: none; }
  * { transition-duration: .01ms !important; }
}
