/* ============================================================
   JCE Web - stylesheet
   Design tokens, modern layout, accessible components.
   ============================================================ */

:root {
  --navy: #161b33;
  --navy-2: #1f2547;
  --purple: #715aff;
  --purple-dark: #5a45e0;
  --bg: #f6f7fb;
  --lav: #eceefb;
  --surface: #ffffff;
  --text: #1a2230;
  --muted: #5b6b80;
  --border: #e6e9f5;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(22, 27, 51, 0.08);
  --shadow-hover: 0 16px 40px rgba(22, 27, 51, 0.14);
  --maxw: 1140px;
  --pad-x: max(24px, calc((100% - var(--maxw)) / 2));
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { font-size: 1.05rem; color: var(--muted); }

.highlight { color: var(--purple); }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 4px; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--navy);
  padding: 12px var(--pad-x);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.navbar .nav-items { display: flex; gap: 4px; }

.navbar a {
  color: #fff;
  padding: 9px 16px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar a:hover:not(.logo) { background-color: rgba(255, 255, 255, 0.12); }
.navbar a.active { background-color: var(--purple); color: #fff; }
.navbar a.logo { padding: 0; }
.navbar a.logo img { width: 46px; height: 46px; border-radius: 10px; }
.navbar a.icon { display: none; }

.dropdown-content {
  display: none;
  background-color: var(--navy);
  width: 100%;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
}
.dropdown-content a {
  color: #fff;
  padding: 14px var(--pad-x);
  text-decoration: none;
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.dropdown-content a:hover { background-color: rgba(255, 255, 255, 0.1); }
.dropdown-content a.active { color: var(--purple); font-weight: 600; }

@media screen and (max-width: 720px) {
  .navbar .nav-items { display: none; }
  .navbar a.icon { display: block; font-size: 1.4rem; }
  .dropdown-content { display: block; }
}

/* ---------- Buttons ---------- */
.start-project-btn,
.contact-form .cta {
  display: inline-block;
  background-color: var(--purple);
  color: #fff;
  border: none;
  padding: 0.85rem 1.7rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(113, 90, 255, 0.3);
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.start-project-btn:hover,
.contact-form .cta:hover {
  background-color: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(113, 90, 255, 0.38);
}

/* ---------- Section base (full-bleed bg, centered content) ---------- */
section {
  padding: clamp(56px, 8vw, 100px) var(--pad-x);
}

/* ---------- Hero & feature rows ---------- */
.hero,
.Portfolio-highlights {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.hero { background-color: var(--lav); }
.Portfolio-highlights { background-color: var(--surface); }

.hero-content, .highlight-content { flex: 1 1 360px; }
.hero-image, .highlight-image { flex: 1 1 360px; }
.hero-image img, .highlight-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
}
.hero p, .highlight-content p { max-width: 52ch; }

/* ---------- Card sections (How it works / Packages) ---------- */
.reviews-section { background-color: var(--lav); text-align: center; }
.review-section-text { margin-bottom: 2.5rem; }

.review-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: var(--maxw);
  margin-inline: auto;
}

.review-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.review-card ul { margin: 12px 0 0; padding-left: 1.1rem; }
.review-card li { font-size: 0.97rem; color: var(--muted); margin-bottom: 6px; }
.review-text { font-size: 1rem; color: var(--muted); }

/* numbered step badge (reuses .rating) */
.rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--purple);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ---------- CTA banner ---------- */
.index-Contact {
  background-color: var(--navy);
  text-align: center;
}
.index-Contact h1, .index-Contact h2 { color: #fff; }
.index-Contact p { color: #c7cfe6; max-width: 48ch; margin-inline: auto; margin-bottom: 2rem; }
.Contact-content { max-width: var(--maxw); margin-inline: auto; }

/* ---------- Portfolio ---------- */
.portfolio { text-align: center; }
.portfolio h1 { margin-bottom: 2rem; }
.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: var(--maxw);
  margin-inline: auto;
}
.portfolio-item {
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease, filter 0.3s ease; }
.portfolio-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.portfolio-item:hover img { transform: scale(1.05); filter: brightness(0.7); }
.portfolio-item::after {
  content: attr(data-title);
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 10px;
  background-color: rgba(22, 27, 51, 0.85);
  color: #fff;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-item:hover::after { opacity: 1; }

/* ---------- Contact page ---------- */
.contact-page { background-color: var(--lav); }
.contact-page .content { max-width: 760px; margin-inline: auto; }
.contact-page h1 { text-align: center; }
.contact-page > .content > p { text-align: center; max-width: 56ch; margin: 0 auto 2rem; }

.contact-form, .contact-info {
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-form { margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--navy); font-weight: 600; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(113, 90, 255, 0.15);
}
.form-group textarea { height: 150px; resize: vertical; }
.contact-form .cta { width: 100%; }
.contact-info { text-align: center; }
.contact-info h2 { color: var(--navy); margin-bottom: 16px; }
.contact-info p { margin-bottom: 10px; }
.contact-info a { color: var(--purple); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.larger-footer { background-color: var(--navy); color: #fff; padding: 56px var(--pad-x) 28px; }
.footer-container {
  display: grid;
  grid-template-columns: auto repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}
.footer-logo { max-width: 90px; border-radius: 14px; }
.footer-section h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section a { color: #b9c2e6; text-decoration: none; transition: color 0.2s ease; }
.footer-section a:hover { color: #fff; }
.footer-section p { color: #b9c2e6; margin-bottom: 8px; }
.footer-section p a { color: var(--purple); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #8a94b5;
  font-size: 0.9rem;
}

@media screen and (max-width: 768px) {
  .footer-container { grid-template-columns: 1fr 1fr; text-align: left; }
  .footer-logo { grid-column: 1 / -1; }
}
@media screen and (max-width: 480px) {
  .footer-container { grid-template-columns: 1fr; }
}
