/* ==========================================================================
   Iprecious — site styles
   ========================================================================== */

:root {
  --blue: #2d8fce;
  --blue-dark: #1f6fa3;
  --blue-darker: #154f74;
  --gold: #c2a058;
  --bg: #f7f9fb;
  --bg-soft: #eef3f8;
  --card: #ffffff;
  --text: #2c3340;
  --muted: #6a7384;
  --border: #e2e8ef;
  --accent: #e3eef8;
  --accent-fg: #1f6fa3;
  --shadow-sm: 0 2px 8px rgba(20, 40, 70, 0.05);
  --shadow-md: 0 8px 24px rgba(20, 40, 70, 0.08);
  --shadow-lg: 0 25px 50px rgba(45, 143, 206, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
}

/* Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

/* Layout -------------------------------------------------------------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-lg { padding: 7rem 0; }
.section-soft { background: var(--bg-soft); }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 1rem auto 0; }
.section-head { text-align: center; margin-bottom: 3.5rem; }

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: .8rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  text-decoration: none;
  line-height: 1;
}
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--bg-soft); color: var(--text); }
.btn-ghost-light { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.28); color: #fff; }

/* Navbar -------------------------------------------------------------- */
/* Always-light navbar — logo sits on white everywhere, never needs a pill
   or colour-inversion. Adds shadow/border on scroll for separation. */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem;
}
.navbar-brand { display: inline-flex; align-items: center; }
.navbar-brand img { height: 36px; width: auto; }

.navbar-nav { display: none; gap: .25rem; align-items: center; }
.navbar-nav a {
  padding: .55rem .9rem; font-size: .92rem; font-weight: 500;
  border-radius: 8px; transition: background .2s, color .2s;
  color: var(--muted);
}
.navbar-nav a:hover { color: var(--text); background: var(--bg-soft); }
.navbar-nav a.active { color: var(--accent-fg); background: var(--accent); }
.navbar-cta { display: none; }
.navbar-toggle {
  background: transparent; border: 0; color: var(--text); padding: .5rem;
  cursor: pointer; display: flex;
}
.navbar-mobile {
  display: none; background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.navbar-mobile.open { display: block; }
.navbar-mobile-inner { padding: 1rem 1.25rem; max-width: var(--maxw); margin: 0 auto; }
.navbar-mobile a {
  display: block; padding: .85rem 1rem; font-size: .95rem; font-weight: 500;
  color: var(--muted); border-radius: 8px;
}
.navbar-mobile a.active { color: var(--accent-fg); background: var(--accent); }
.navbar-mobile a:hover { color: var(--text); background: var(--bg-soft); }
.navbar-mobile .btn { width: 100%; margin-top: .5rem; }

@media (min-width: 992px) {
  .navbar-toggle { display: none; }
  .navbar-nav, .navbar-cta { display: flex; }
}

/* Hero ---------------------------------------------------------------- */
.hero {
  position: relative; padding: 9rem 0 6rem;
  color: #fff; text-align: center; overflow: hidden;
  background: linear-gradient(135deg, #142a3d 0%, #1f4d72 50%, #2d8fce 100%);
}
.hero-bg-image {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg-image img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-bg-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,25,40,.75), rgba(15,40,65,.65) 50%, rgba(10,25,40,.85));
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  color: #fff;
  max-width: 900px;
  margin-left: auto; margin-right: auto;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero p.lead { color: rgba(255,255,255,.95); text-shadow: 0 1px 10px rgba(0,0,0,.25); }
.hero-pill {
  display: inline-block; padding: .4rem 1rem; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  font-size: .85rem; font-weight: 500; margin-bottom: 1.5rem;
}
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.hero-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem;
  margin-top: 3rem; font-size: .9rem; color: rgba(255,255,255,.85);
}
.hero-trust span { display: inline-flex; align-items: center; gap: .5rem; }

/* Page hero (smaller, used on inner pages) ---------------------------- */
.page-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #142a3d 0%, #1f4d72 60%, #2d8fce 100%);
  color: #fff; text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 640px; margin: 1rem auto 0; }

/* Cards --------------------------------------------------------------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: transform .35s, box-shadow .35s;
  height: 100%;
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-tight { padding: 1.5rem; }
.card-flush { padding: 0; overflow: hidden; }
.card-flush .card-body { padding: 1.5rem; }

/* Grid ---------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-5 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

/* Pricing tiles ------------------------------------------------------- */
.tier-badge {
  display: inline-block; background: var(--accent); color: var(--accent-fg);
  font-size: .7rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem;
}
.tier-price { font-size: 2.5rem; font-weight: 800; margin: 0; }
.tier-price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.tier-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.tier-list li { display: flex; gap: .6rem; padding: .35rem 0; font-size: .95rem; }
.tier-list li::before {
  content: '✓'; color: var(--blue); font-weight: 700; flex-shrink: 0;
}
.fixed-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-soft); padding: 1rem 1.25rem; border-radius: 12px;
  margin-bottom: .6rem; border: 1px solid var(--border);
}
.fixed-row .price { font-weight: 700; font-size: 1.15rem; }
.fixed-row .tech { font-size: .8rem; color: var(--muted); }

/* Feature card -------------------------------------------------------- */
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent); color: var(--accent-fg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1.2rem;
}

/* Process steps ------------------------------------------------------- */
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-darker));
  color: #fff; font-weight: 700; display: flex;
  align-items: center; justify-content: center;
  margin: 0 auto 1.2rem; box-shadow: var(--shadow-sm);
}

/* Portfolio cards ----------------------------------------------------- */
.portfolio-card { display: block; color: inherit; }
.portfolio-card:hover { color: inherit; }
.portfolio-card .thumb {
  aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft);
}
.portfolio-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s;
}
.portfolio-card:hover .thumb img { transform: scale(1.05); }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 500;
  background: var(--accent); color: var(--accent-fg);
  padding: .25rem .7rem; border-radius: 999px; margin-right: .3rem;
}

/* Filter buttons ------------------------------------------------------ */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.5rem; }
.filter-btn {
  background: var(--card); border: 1px solid var(--border);
  padding: .5rem 1.1rem; border-radius: 999px; font-size: .9rem; font-weight: 500;
  color: var(--muted); cursor: pointer; transition: all .2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--blue); }
.filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Accordion ----------------------------------------------------------- */
.accordion-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: .75rem; overflow: hidden;
}
.accordion-trigger {
  width: 100%; background: transparent; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; font-size: 1rem; font-weight: 500;
  color: var(--text); text-align: left; font-family: inherit;
}
.accordion-trigger::after {
  content: '+'; font-size: 1.4rem; color: var(--muted); transition: transform .2s;
}
.accordion-item.open .accordion-trigger::after { content: '−'; }
.accordion-content {
  display: none; padding: 0 1.5rem 1.25rem; color: var(--muted); font-size: .95rem;
}
.accordion-item.open .accordion-content { display: block; }

/* Forms --------------------------------------------------------------- */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: .4rem; }
.form-control {
  width: 100%; padding: .75rem 1rem; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  outline: 0; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45, 143, 206, .15);
}
textarea.form-control { min-height: 140px; resize: vertical; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-row { grid-template-columns: 1fr 1fr; } }

.alert {
  padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1.5rem;
  border: 1px solid transparent;
}
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

/* CTA banner ---------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, #142a3d 0%, #1f4d72 60%, #2d8fce 100%);
  color: #fff; padding: 5rem 0; text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 600px; margin: 1rem auto 2rem; }

/* Footer -------------------------------------------------------------- */
.footer {
  background: #15243a; color: rgba(255,255,255,.8);
  padding: 4rem 0 2rem;
}
.footer h3 { color: #fff; font-size: 1.25rem; }
.footer h4 {
  color: rgba(255,255,255,.55); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem;
}
.footer a { color: rgba(255,255,255,.8); font-size: .9rem; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid; gap: 2.5rem; grid-template-columns: 1fr;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; } }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: .25rem 0; }
.footer-socials { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: flex;
  align-items: center; justify-content: center; font-size: .75rem;
}
.footer-socials a:hover { background: rgba(255,255,255,.2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem; margin-top: 3rem; text-align: center;
  font-size: .85rem; color: rgba(255,255,255,.5);
}

/* Cookie consent ------------------------------------------------------ */
.cookie-consent {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 100;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow-lg);
  display: none; max-width: 460px;
}
.cookie-consent.show { display: block; }
.cookie-consent p { font-size: .85rem; margin: 0 0 .8rem; color: var(--muted); }
.cookie-consent .actions { display: flex; gap: .5rem; }
.cookie-consent .btn { padding: .5rem 1rem; font-size: .85rem; flex: 1; }

/* Reveal animation ---------------------------------------------------- */
/* Default state: visible. Animation only kicks in when JS adds the
   .js-reveal-ready class to <html>, so content is never hidden if JS fails. */
.reveal { opacity: 1; transform: none; transition: opacity .8s, transform .8s; }
.js-reveal-ready .reveal { opacity: 0; transform: translateY(20px); }
.js-reveal-ready .reveal.visible { opacity: 1; transform: none; }

/* Blog content -------------------------------------------------------- */
.blog-content { font-size: 1.05rem; line-height: 1.75; }
.blog-content p { margin-bottom: 1.2rem; }
.blog-content ol, .blog-content ul { margin: 0 0 1.2rem 1.5rem; }
.blog-content strong { color: var(--text); }
.blog-meta { color: var(--muted); font-size: .9rem; }

.testimonial-stars { color: var(--blue); margin-bottom: 1rem; letter-spacing: .15em; }
.testimonial-author {
  display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem;
}
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-darker));
  color: #fff; font-weight: 700; display: flex;
  align-items: center; justify-content: center; font-size: .9rem;
}

/* Hero highlight ------------------------------------------------------ */
.hl {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hl::after {
  content: '';
  position: absolute;
  left: -2%; right: -2%; bottom: 4%;
  height: 28%;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  z-index: -1;
}

/* Section dividers (curve) ------------------------------------------- */
.divider-top, .divider-bottom {
  position: absolute; left: 0; right: 0; width: 100%;
  height: 60px; line-height: 0; pointer-events: none; overflow: hidden;
}
.divider-top { top: -1px; }
.divider-bottom { bottom: -1px; transform: rotate(180deg); }
.divider-top svg, .divider-bottom svg { width: 100%; height: 100%; display: block; }
.section, .section-soft, .section-lg { position: relative; }

/* Card glow (subtle gradient border on hover) ------------------------- */
.card { position: relative; isolation: isolate; }
.card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(45,143,206,.5), rgba(194,160,88,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
  pointer-events: none;
}
.card-hover:hover::before { opacity: 1; }
.card-hover:hover { box-shadow: 0 25px 50px -12px rgba(45,143,206,.18), 0 8px 20px -8px rgba(194,160,88,.1); }

/* Trust strip --------------------------------------------------------- */
.trust-strip {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
}
.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 700px) {
  .trust-strip-inner { grid-template-columns: repeat(4, 1fr); }
}
.trust-num {
  font-size: 1.7rem; font-weight: 800; color: var(--blue);
  display: block; line-height: 1.1; margin-bottom: .15rem;
}
.trust-lbl { font-size: .8rem; color: var(--muted); }

/* Inline icon helpers ------------------------------------------------- */
.icon-inline {
  display: inline-flex; align-items: center; gap: .5rem;
}
.feature-icon svg { stroke: var(--accent-fg); }

/* Hero pill icon spacing --------------------------------------------- */
.hero-trust span svg { stroke: rgba(255,255,255,.85); }

/* Misc ---------------------------------------------------------------- */
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 1rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 2rem; }
