/* ============================================================
   RESET & CSS VARIABLES
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colours — tweak here to change the whole palette */
  --white:       #ffffff;
  --off-white:   #f7f6f3;
  --light:       #eeecea;
  --mid:         #c5c2bc;
  --muted:       #8a8782;
  --dark:        #2a2825;
  --ink:         #1a1917;
  --accent:      #4f6ef7;      /* primary blue-purple */
  --accent-soft: #eef0fe;      /* very light accent bg */
  --accent-2:    #f97316;      /* orange highlight */
  --wp-blue:     #21759B;      /* WordPress colour */
  --green:       #22c55e;

  /* Typography */
  --font-sans:    'Plus Jakarta Sans', sans-serif;
  --font-display: 'Fraunces', serif;

  /* Spacing */
  --section-pad:  6rem 0;
  --container:    1140px;
  --radius:       14px;
  --radius-sm:    8px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.05);
}

html { scroll-behavior: smooth; }

body {
  font-family:    var(--font-sans);
  font-size:      16px;
  font-weight:    400;
  line-height:    1.7;
  color:          var(--dark);
  background:     var(--white);
  overflow-x:     hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  max-width: var(--container);
  margin:    0 auto;
  padding:   0 2rem;
}

/* Shared section heading block */
.section-head {
  text-align:    center;
  margin-bottom: 3.5rem;
}
.section-head h2 {
  font-family:    var(--font-display);
  font-size:      clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight:    600;
  color:          var(--ink);
  line-height:    1.2;
  margin-bottom:  0.75rem;
}
.section-sub {
  color:     var(--muted);
  font-size: 1rem;
  max-width: 540px;
  margin:    0 auto;
}

/* Eyebrow label above headings */
.eyebrow {
  display:        inline-block;
  font-size:      0.72rem;
  font-weight:    600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--accent);
  background:     var(--accent-soft);
  padding:        0.3rem 0.9rem;
  border-radius:  99px;
  margin-bottom:  1rem;
}

/* Scroll reveal — JS adds .visible */
.reveal {
  opacity:    0;
  transform:  translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display:         inline-flex;
  align-items:     center;
  gap:             0.5rem;
  background:      var(--accent);
  color:           var(--white);
  padding:         0.75rem 1.75rem;
  border-radius:   99px;
  font-size:       0.95rem;
  font-weight:     600;
  text-decoration: none;
  transition:      background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow:      0 4px 18px rgba(79,110,247,0.25);
}
.btn-primary:hover {
  background:  #3b58e0;
  transform:   translateY(-2px);
  box-shadow:  0 8px 24px rgba(79,110,247,0.35);
}

.btn-outline {
  display:         inline-flex;
  align-items:     center;
  gap:             0.5rem;
  background:      transparent;
  color:           var(--ink);
  padding:         0.75rem 1.75rem;
  border-radius:   99px;
  font-size:       0.95rem;
  font-weight:     500;
  text-decoration: none;
  border:          1.5px solid var(--light);
  transition:      border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-outline:hover {
  border-color: var(--accent);
  background:   var(--accent-soft);
  color:        var(--accent);
  transform:    translateY(-2px);
}

/* Fiverr green button */
.btn-fiverr {
  display:         inline-flex;
  align-items:     center;
  background:      #1dbf73;
  color:           var(--white);
  padding:         0.5rem 1.2rem;
  border-radius:   99px;
  font-size:       0.82rem;
  font-weight:     600;
  text-decoration: none;
  transition:      background 0.2s, transform 0.2s;
}
.btn-fiverr:hover { background: #17a862; transform: translateY(-1px); }

/* Consult ghost button in nav */
.btn-consult {
  display:         inline-flex;
  align-items:     center;
  background:      transparent;
  color:           var(--ink);
  padding:         0.5rem 1.2rem;
  border-radius:   99px;
  font-size:       0.82rem;
  font-weight:     500;
  text-decoration: none;
  border:          1.5px solid var(--light);
  transition:      border-color 0.2s, color 0.2s;
}
.btn-consult:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position:        fixed;
  top:             0; left: 0; right: 0;
  z-index:         100;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         1.1rem 3rem;
  background:      rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  border-bottom:   1px solid rgba(0,0,0,0.06);
  transition:      padding 0.3s ease, box-shadow 0.3s ease;
}
#navbar.scrolled {
  padding:    0.75rem 3rem;
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  font-family:     var(--font-display);
  font-size:       1.3rem;
  font-weight:     600;
  color:           var(--ink);
  text-decoration: none;
  letter-spacing:  -0.02em;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display:    flex;
  gap:        2rem;
  list-style: none;
}
.nav-links a {
  font-size:       0.87rem;
  font-weight:     500;
  color:           var(--muted);
  text-decoration: none;
  transition:      color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height:  100vh;
  display:     flex;
  align-items: center;
  padding:     9rem 3rem 5rem;
  position:    relative;
  overflow:    hidden;
  background:  var(--off-white);
}

/* Soft background blobs */
.blob {
  position:       absolute;
  border-radius:  50%;
  filter:         blur(90px);
  opacity:        0.45;
  pointer-events: none;
}
.blob-1 {
  width:      500px; height: 500px;
  background: #c7d2fe;  /* light indigo */
  top:        -100px; right: -80px;
}
.blob-2 {
  width:      380px; height: 380px;
  background: #fde68a;  /* warm yellow */
  bottom:     -80px; left: -60px;
}

.hero-inner {
  max-width:       var(--container);
  margin:          0 auto;
  width:           100%;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             3rem;
  position:        relative;
  z-index:         1;
}

.hero-text { max-width: 580px; }

/* Availability badge */
.hero-badge {
  display:        inline-flex;
  align-items:    center;
  gap:            0.5rem;
  background:     var(--white);
  border:         1px solid var(--light);
  border-radius:  99px;
  padding:        0.4rem 1rem;
  font-size:      0.8rem;
  font-weight:    500;
  color:          var(--dark);
  margin-bottom:  1.5rem;
  box-shadow:     var(--shadow-sm);
}
.badge-dot {
  width:         8px; height: 8px;
  border-radius: 50%;
  background:    var(--green);
  animation:     pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero h1 {
  font-family:    var(--font-display);
  font-size:      clamp(2.4rem, 5vw, 3.8rem);
  font-weight:    600;
  line-height:    1.15;
  color:          var(--ink);
  letter-spacing: -0.02em;
  margin-bottom:  1.25rem;
}
/* Italic serif accent in headline */
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color:       var(--accent);
}

.hero-sub {
  font-size:     1.05rem;
  color:         var(--muted);
  margin-bottom: 2.25rem;
  max-width:     480px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Right side stat cards */
.hero-cards {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   1rem;
  flex-shrink:           0;
}
.hero-stat-card {
  background:    var(--white);
  border:        1px solid var(--light);
  border-radius: var(--radius);
  padding:       1.5rem 1.75rem;
  display:       flex;
  flex-direction:column;
  gap:           0.25rem;
  box-shadow:    var(--shadow-md);
  transition:    transform 0.2s;
}
.hero-stat-card:hover { transform: translateY(-3px); }
.hero-stat-card strong {
  font-family:    var(--font-display);
  font-size:      2rem;
  font-weight:    600;
  color:          var(--accent);
  line-height:    1;
}
.hero-stat-card span {
  font-size:  0.78rem;
  color:      var(--muted);
  font-weight:500;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.section-services {
  padding:    var(--section-pad);
  background: var(--white);
}

.services-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1.5rem;
}

.service-card {
  background:    var(--white);
  border:        1px solid var(--light);
  border-radius: var(--radius);
  padding:       2rem;
  transition:    box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.service-card:hover {
  box-shadow:   var(--shadow-lg);
  transform:    translateY(-4px);
  border-color: rgba(79,110,247,0.2);
}

.service-icon {
  font-size:     1.8rem;
  margin-bottom: 1rem;
  display:       block;
}
.service-card h3 {
  font-size:     1.05rem;
  font-weight:   600;
  color:         var(--ink);
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.9rem;
  color:     var(--muted);
  line-height: 1.65;
}

/* ============================================================
   WORDPRESS SECTION
   ============================================================ */
.section-wordpress {
  padding:    var(--section-pad);
  background: var(--off-white);
}

.wp-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1.5rem;
}

.wp-card {
  background:    var(--white);
  border:        1px solid var(--light);
  border-top:    3px solid var(--wp-blue);
  border-radius: var(--radius);
  padding:       2rem;
  transition:    box-shadow 0.25s, transform 0.25s;
}
.wp-card:hover {
  box-shadow: var(--shadow-lg);
  transform:  translateY(-4px);
}

.wp-icon {
  font-size:     2rem;
  margin-bottom: 1rem;
}
.wp-card h3 {
  font-size:     1.05rem;
  font-weight:   600;
  color:         var(--ink);
  margin-bottom: 0.6rem;
}
.wp-card p {
  font-size:     0.9rem;
  color:         var(--muted);
  line-height:   1.65;
  margin-bottom: 1.25rem;
}

/* Tags under WordPress card description */
.wp-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-size:     0.72rem;
  font-weight:   500;
  color:         var(--wp-blue);
  background:    #e8f3f8;
  padding:       0.25rem 0.7rem;
  border-radius: 99px;
}

/* ============================================================
   TECHNOLOGY SECTION
   ============================================================ */
.section-tech {
  padding:    var(--section-pad);
  background: var(--white);
}

.tech-grid {
  display:         flex;
  flex-wrap:       wrap;
  gap:             1rem;
  justify-content: center;
}

.tech-pill {
  display:       flex;
  align-items:   center;
  gap:           0.6rem;
  background:    var(--off-white);
  border:        1px solid var(--light);
  border-radius: 99px;
  padding:       0.6rem 1.4rem;
  font-size:     0.9rem;
  font-weight:   600;
  color:         var(--dark);
  transition:    box-shadow 0.2s, transform 0.2s;
}
.tech-pill:hover {
  box-shadow: var(--shadow-md);
  transform:  translateY(-2px);
}

/* Coloured dot — colour set inline from PHP */
.tech-dot {
  width:         10px;
  height:        10px;
  border-radius: 50%;
  display:       inline-block;
  border:        1px solid rgba(0,0,0,0.1);
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */
.section-process {
  padding:    var(--section-pad);
  background: var(--off-white);
}

.process-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   1.5rem;
}

.process-card {
  background:    var(--white);
  border:        1px solid var(--light);
  border-radius: var(--radius);
  padding:       2rem 1.75rem;
  position:      relative;
  transition:    box-shadow 0.2s;
}
.process-card:hover { box-shadow: var(--shadow-md); }

.process-num {
  font-family:   var(--font-display);
  font-size:     3rem;
  font-weight:   600;
  color:         var(--light);
  line-height:   1;
  margin-bottom: 1rem;
}
.process-card h3 {
  font-size:     1rem;
  font-weight:   600;
  color:         var(--ink);
  margin-bottom: 0.5rem;
}
.process-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.section-testimonials {
  padding:    var(--section-pad);
  background: var(--white);
}

.testimonials-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1.5rem;
}

.testimonial-card {
  background:    var(--off-white);
  border:        1px solid var(--light);
  border-radius: var(--radius);
  padding:       2rem;
  transition:    box-shadow 0.25s, transform 0.25s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform:  translateY(-3px);
}

/* Gold stars */
.stars { color: #f59e0b; font-size: 1rem; letter-spacing: 0.05em; margin-bottom: 1rem; }

.testimonial-text {
  font-size:      0.92rem;
  color:          var(--dark);
  line-height:    1.75;
  font-style:     italic;
  margin-bottom:  1.5rem;
}

.testimonial-author {
  display:     flex;
  align-items: center;
  gap:         0.75rem;
}
/* Avatar circle with initial letter */
.avatar {
  width:           38px; height: 38px;
  border-radius:   50%;
  background:      var(--accent);
  color:           var(--white);
  font-size:       0.9rem;
  font-weight:     700;
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
}
.testimonial-author strong { display: block; font-size: 0.88rem; color: var(--ink); }
.testimonial-author span   { font-size: 0.78rem; color: var(--muted); }

/* ============================================================
   FAQ SECTION
   ============================================================ */
.section-faq {
  padding:    var(--section-pad);
  background: var(--off-white);
}

.faq-list {
  max-width: 760px;
  margin:    0 auto;
}

.faq-item {
  background:    var(--white);
  border:        1px solid var(--light);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow:      hidden;
  transition:    box-shadow 0.2s;
}
.faq-item.open { box-shadow: var(--shadow-md); }

.faq-question {
  width:           100%;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             1rem;
  padding:         1.1rem 1.4rem;
  background:      none;
  border:          none;
  cursor:          pointer;
  font-family:     var(--font-sans);
  font-size:       0.95rem;
  font-weight:     600;
  color:           var(--ink);
  text-align:      left;
  transition:      color 0.2s;
}
.faq-question:hover { color: var(--accent); }

.faq-icon {
  font-size:   1.3rem;
  font-weight: 300;
  color:       var(--muted);
  flex-shrink: 0;
  transition:  transform 0.25s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }

/* Hidden answer — JS sets max-height to reveal */
.faq-answer {
  max-height: 0;
  overflow:   hidden;
  transition: max-height 0.35s ease;
}
.faq-answer p {
  padding:   0 1.4rem 1.2rem;
  font-size: 0.9rem;
  color:     var(--muted);
  line-height: 1.7;
}

/* ============================================================
   CONTACT / CTA SECTION
   ============================================================ */
.section-contact {
  padding:    var(--section-pad);
  background: var(--white);
}

.cta-box {
  background:    linear-gradient(135deg, #f0f3ff 0%, #fdf8f0 100%);
  border:        1px solid var(--light);
  border-radius: 24px;
  padding:       4rem 3rem;
  text-align:    center;
  max-width:     700px;
  margin:        0 auto;
  box-shadow:    var(--shadow-lg);
}
.cta-box h2 {
  font-family:    var(--font-display);
  font-size:      clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight:    600;
  color:          var(--ink);
  margin-bottom:  1rem;
  line-height:    1.2;
}
.cta-box p {
  color:         var(--muted);
  font-size:     0.95rem;
  max-width:     480px;
  margin:        0 auto 2rem;
}
.cta-actions {
  display:         flex;
  gap:             1rem;
  justify-content: center;
  flex-wrap:       wrap;
  margin-bottom:   1.5rem;
}
.cta-note { font-size: 0.82rem; color: var(--muted); }
.cta-note a { color: var(--accent); text-decoration: none; }
.cta-note a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background:   var(--off-white);
  border-top:   1px solid var(--light);
  padding:      2.25rem 0;
}
.footer-inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  flex-wrap:       wrap;
  gap:             1rem;
}
.footer-logo {
  font-family:     var(--font-display);
  font-size:       1.1rem;
  font-weight:     600;
  color:           var(--dark);
  text-decoration: none;
}
.footer-logo span { color: var(--accent); }
.footer-copy { font-size: 0.8rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size:       0.82rem;
  color:           var(--muted);
  text-decoration: none;
  transition:      color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
  #navbar { padding: 1rem 1.5rem; }
  #navbar.scrolled { padding: 0.7rem 1.5rem; }
  .nav-links { display: none; }    /* hide nav links on tablet/mobile */

  .hero { padding: 8rem 1.5rem 4rem; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-cards { grid-template-columns: repeat(4, 1fr); width: 100%; }

  .services-grid      { grid-template-columns: repeat(2, 1fr); }
  .wp-grid            { grid-template-columns: repeat(2, 1fr); }
  .process-grid       { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid  { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 640px) {
  .hero-cards         { grid-template-columns: repeat(2, 1fr); }
  .services-grid      { grid-template-columns: 1fr; }
  .wp-grid            { grid-template-columns: 1fr; }
  .process-grid       { grid-template-columns: 1fr; }
  .testimonials-grid  { grid-template-columns: 1fr; }
  .cta-box            { padding: 2.5rem 1.5rem; }
  .footer-inner       { flex-direction: column; text-align: center; }
  .footer-links       { justify-content: center; }
  .nav-actions        { gap: 0.4rem; }
  .btn-fiverr,
  .btn-consult        { font-size: 0.75rem; padding: 0.4rem 0.9rem; }
}
