/* ══════════════════════════════════════════════════════════════════════
   Cherry.dev — Global Stylesheet
   ══════════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════════════
   THEME TOKENS  —  every visual value lives here.
   ════════════════════════════════════════════════════════════════════════
   HOW TO RETHEME
   ─────────────────────────────────────────────────────────────────────
   • Change the 5 "Brand Palette" hex values to swap the whole colour scheme.
   • All derived tokens (opacity tiers, shadows, etc.) update automatically
     because they reference the same rgb numbers.
   • Section-level aliases at the bottom let you override one section at a time.
   ════════════════════════════════════════════════════════════════════════ */
:root {

  /* ╔══════════════════════════════════════════════════════════════════╗
     ║  BRAND PALETTE  —  change these 5 to retheme everything         ║
     ╚══════════════════════════════════════════════════════════════════╝ */
  --bg:           #f5d3f3;
  --bg-card:      #8a2348;
  --bg-elevated:  #fef5ff;
  --accent:       #b51f48;
  --accent-light: #a51b40;

  /* ── Accent opacity scale ───────────────────────────────────────────
     All derived from --accent (rgb 181 31 72).
     Adjust the alpha values to make hover states subtler or bolder.    */
  --accent-glow:     rgba(181, 31, 72, 0.25);
  --accent-subtle:   rgba(181, 31, 72, 0.08);
  --accent-faint:    rgba(181, 31, 72, 0.05);
  --accent-border:   rgba(181, 31, 72, 0.20);
  --accent-hover:    rgba(181, 31, 72, 0.30);
  --accent-featured: rgba(181, 31, 72, 0.18);
  --accent-strong:   rgba(181, 31, 72, 0.45);
  --accent-bold:     rgba(181, 31, 72, 0.55);

  /* ── On-brand text — sitting ON --accent / --bg-card surfaces ──────
     Change these if you switch to a dark accent colour.                */
  --on-accent:            #fff;                    /* text on accent buttons */
  --on-accent-muted:      #fff;                    /* subtitles on accent bg */
  --on-accent-overlay:    rgba(255,255,255,0.20);  /* icon-avatar on accent  */
  --btn-primary-text:     #ffffff;
  --on-card:              #ffffff;
  --on-card-muted:        rgba(255,255,255,0.90);  /* muted text on --bg-card */
  --on-card-border:       rgba(255,255,255,0.35);  /* border on --bg-card surface */
  --on-card-border-soft:  rgba(255,255,255,0.20);  /* softer border / hover   */
  --on-card-border-hover: rgba(255,255,255,0.55);  /* hover border            */
  --on-card-overlay:      rgba(255,255,255,0.08);  /* hover fill on --bg-card */

  /* ── Legacy aliases (keep — used throughout stylesheets) ───────────── */
  --text:       #2d1823;
  --text-muted: #604452;
  --border:     var(--accent-border);

  /* ── Nav ────────────────────────────────────────────────────────────
     --nav-scrolled-bg controls the colour when the user scrolls.       */
  --nav-h:           72px;
  --nav-scrolled-bg: rgba(255, 255, 255, 0.96);

  /* ── Light-section text — on white / --section-card-bg surfaces ─────
     Change these to restyle all text inside the floating white cards.  */
  --section-text:       #1a1a2e;
  --section-text-muted: #4f3541;
  --section-text-sub:   #6f5662;

  /* ── Form / input controls ──────────────────────────────────────────
     Used by contact form, chatbot input bar, dashboard editor, etc.    */
  --input-bg:          #f8f8fd;
  --input-border:      #e0e0ee;
  --input-placeholder: #806673;

  /* ── Section cards (floating white panels on main pages) ────────────
     Change --section-card-bg to switch sections from white to tinted.  */
  --section-card-bg:      #fffdf8;
  --section-card-radius:  18px;
  --section-card-shadow:  0 18px 50px rgba(36, 75, 64, 0.10);
  --section-card-padding: 64px 48px;
  --section-gap-v:        20px;
  --section-gap-h:        20px;

  /* ── Overlays & glass ───────────────────────────────────────────────── */
  --overlay:      rgba(0,   0,   0,   0.70);  /* modal backdrop           */
  --overlay-blur: rgba(0,   0,   0,   0.18);  /* lighter popup shadow     */
  --glass-bg:     rgba(255, 255, 255, 0.18);  /* frosted-glass panel bg   */
  --glass-border: rgba(255, 255, 255, 0.35);  /* frosted-glass panel border */

  /* ── Status / semantic colours ─────────────────────────────────────────
     Used for form alerts, table status pills, editor alerts, etc.       */
  --color-success:        #166534;
  --color-success-bg:     rgba(34,  197, 94,  0.10);
  --color-success-border: rgba(34,  197, 94,  0.20);
  --color-warning:        #fbbf24;
  --color-warning-bg:     rgba(251, 191, 36,  0.10);
  --color-warning-border: rgba(251, 191, 36,  0.30);
  --color-error:          #b91c1c;
  --color-error-bg:       rgba(239, 68,  68,  0.10);
  --color-error-border:   rgba(239, 68,  68,  0.20);
  --color-info:           #60a5fa;
  --color-info-bg:        rgba(96,  165, 250, 0.12);
  --color-info-border:    rgba(96,  165, 250, 0.30);
  --color-online:         #4ade80;  /* online status dot (chatbot)         */
  --color-cb-dot:         #ff4d6d;  /* chatbot notification dot            */

  /* ── Service / tag type colours ────────────────────────────────────────
     Change these to restyle the Website / App / Shop category tags.     */
  --tag-website:    #818cf8;
  --tag-website-bg: rgba(99,  102, 241, 0.15);
  --tag-app:        var(--accent-light);
  --tag-app-bg:     rgba(181, 31,  72,  0.12);
  --tag-shop:       #4ade80;
  --tag-shop-bg:    rgba(34,  197, 94,  0.10);

  /* ── Per-service hero accent ────────────────────────────────────────────
     Swap --service-shop-accent to retheme only the Shop service page.   */
  --service-website-accent: var(--accent);
  --service-app-accent:     var(--accent);
  --service-shop-accent:    #16a34a;

  /* ── Portfolio image placeholders ──────────────────────────────────── */
  --portfolio-img-bg: #ecbbe3;

  /* ── Shadows ────────────────────────────────────────────────────────── */
  --shadow:    0 4px 24px rgba(120, 20, 50, 0.14);
  --shadow-lg: 0 12px 48px rgba(120, 20, 50, 0.22);

  /* ── Shape ──────────────────────────────────────────────────────────── */
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* ── Motion ─────────────────────────────────────────────────────────── */
  --transition: 0.2s ease;

  /* ── Typography ─────────────────────────────────────────────────────── */
  --font: 'Inter', system-ui, sans-serif;

  /* ── Per-section colour aliases ─────────────────────────────────────────
     Change any of these to restyle one section independently.
     Sections are transparent; the white card inside uses --section-card-bg. */
  --hero-bg:             transparent;
  --hero-text:           #2d1823;
  --services-text:       var(--section-text);
  --services-text-muted: var(--section-text-muted);
  --about-text:          var(--section-text);
  --about-text-muted:    var(--section-text-muted);
  --portfolio-text:      var(--section-text);
  --portfolio-text-muted:var(--section-text-muted);
  --contact-text:        var(--section-text);
  --contact-text-muted:  var(--section-text-muted);
  --footer-text:         var(--section-text);
  --footer-text-muted:   var(--section-text-sub);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; overflow-x: hidden; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('/images/CherryPOPBG2.png') center top / cover no-repeat;
  opacity: .26;
  pointer-events: none;
}
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ── Utilities ──────────────────────────────────────────────────────────── */
.container  { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.gradient-text {
  color: var(--accent);
}
.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 2000;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  background: #fff;
  color: #111;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
#main-content { scroll-margin-top: calc(var(--nav-h) + 1rem); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #fff;
}
.mt-1 { margin-top: 1.5rem; }
.muted { color: var(--text-muted); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
  min-height: 44px;
}
.btn-primary {
  background: var(--accent);
  color: var(--btn-primary-text);
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-light); box-shadow: 0 10px 24px var(--accent-glow); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--on-card-border);
}
.btn-ghost:hover { border-color: var(--on-card-border-hover); color: var(--text); background: var(--on-card-overlay); }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1rem; font-size: .82rem; }
.btn-full { width: 100%; justify-content: center; border-radius: var(--radius); }
button:disabled { opacity: .5; cursor: not-allowed; }

/* ── Form elements ──────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .5rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--section-text-muted); letter-spacing: .03em; text-transform: uppercase; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  color: var(--section-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--input-placeholder); }
.form-group select option { background: var(--bg-elevated); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-alert { display: none; padding: .75rem 1rem; border-radius: var(--radius); font-size: .9rem; font-weight: 500; }
.form-alert:not(:empty) { display: block; }
.form-alert--success { background: var(--color-success-bg); color: var(--color-success); border: 1px solid var(--color-success-border); }
.form-alert--error   { background: var(--color-error-bg);   color: var(--color-error);   border: 1px solid var(--color-error-border); }

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.14), 0 8px 28px rgba(36,75,64,.16);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; margin-right: auto; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; color: var(--text-muted); font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; display: block; }
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-card);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--on-card); }
  .hamburger { display: flex; }
  .nav-actions .btn-ghost { display: none; }
}
@media (max-width: 420px) {
  .nav-inner { gap: .5rem; padding: 0 12px; }
  .nav-actions .btn-primary { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,244,248,.62), rgba(255,255,255,.18) 72%, rgba(255,244,248,.62));
  color: var(--hero-text);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
}
.hero-grid {
  position: absolute;
  inset: 12% 8% 8%;
  border: 1px solid rgba(193,64,111,.10);
  background-image: linear-gradient(rgba(193,64,111,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(193,64,111,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, black 22%, black 72%, transparent);
  transform: perspective(700px) rotateX(58deg) translateY(22%);
  transform-origin: center bottom;
  opacity: .55;
}
.hero-orb { display: none; }
.orb-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; right: -150px; }
.orb-2 { width: 400px; height: 400px; background: var(--accent-light); bottom: -100px; left: -100px; }
.hero-content { position: relative; max-width: 780px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-glow);
  color: var(--accent-light);
  padding: .4rem 1rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  margin-bottom: 1.25rem;
}
.hero-sub { font-size: 1.15rem; color: var(--hero-text); opacity: .74; max-width: 520px; margin: 0 auto 2.5rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost { color: var(--hero-text); border-color: rgba(193,64,111,.28); }

.hero-stats {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2.5rem;
  backdrop-filter: blur(8px);
  color: var(--on-card);
}
.stat { text-align: center; padding: 0 2rem; }
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--on-card); letter-spacing: -.02em; }
.stat-label { font-size: .82rem; color: var(--on-card-muted); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }
@media (max-width: 480px) { .hero-stats { flex-direction: column; gap: 1rem; } .stat-divider { display: none; } }

/* ── Section header ──────────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-bottom: .75rem; }
.section-sub { color: var(--text-muted); max-width: 480px; margin: 0 auto; }

/* ── Services ────────────────────────────────────────────────────────────── */
.services {
  background: transparent;
  color: var(--services-text);
  padding: var(--section-gap-v) var(--section-gap-h);
}
.services > .container {
  background: rgba(255,255,255,.94);
  border-radius: var(--section-card-radius);
  box-shadow: var(--section-card-shadow);
  padding: var(--section-card-padding);
}
.services .section-tag   { color: var(--accent); }
.services .section-title { color: var(--services-text); }
.services .section-sub   { color: var(--services-text-muted); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  color: var(--on-card);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.service-card:hover { border-color: var(--accent-hover); transform: translateY(-6px); box-shadow: 0 20px 48px var(--accent-subtle); background: #741c3b; }
.service-card--featured {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px var(--accent-featured);
}
.featured-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.service-icon { width: 48px; height: 48px; color: var(--accent); margin-bottom: 1.25rem; }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--on-card); margin-bottom: .75rem; }
.service-card p { color: var(--on-card-muted); font-size: .92rem; margin-bottom: 1.25rem; }
.service-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.service-list li { font-size: .88rem; color: var(--on-card-muted); display: flex; align-items: center; gap: .5rem; }
.service-list li::before { content: '✓'; color: var(--on-card); font-weight: 700; font-size: .9rem; }
.service-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-card); font-size: .9rem; font-weight: 600; transition: color var(--transition); }
.service-link:hover { color: var(--on-card-muted); }

/* ── About ───────────────────────────────────────────────────────────────── */
.about {
  background: transparent;
  color: var(--about-text);
  padding: var(--section-gap-v) var(--section-gap-h);
}
.about > .container {
  background: rgba(255,255,255,.94);
  border-radius: var(--section-card-radius);
  box-shadow: var(--section-card-shadow);
  padding: var(--section-card-padding);
}
.about .section-tag   { color: var(--accent); }
.about .section-title { color: var(--about-text); }
.about-content p      { color: var(--about-text-muted); margin-bottom: .75rem; }
.skill-tag {
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--about-text);
}
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } .about-image { order: -1; } }
.about-img-wrapper { position: relative; max-width: 320px; margin: 0 auto; }
.about-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(17, 26, 21, 0.08);
}
.about-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.12);
}
.about-decoration {
  position: absolute;
  inset: -10px;
  border-radius: calc(var(--radius-lg) + 10px);
  border: 1px dashed var(--accent-border);
  pointer-events: none;
}
.about-content .section-title { text-align: left; margin-bottom: 1rem; }
.about-skills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; margin-bottom: 1.5rem; }

/* ── Portfolio ───────────────────────────────────────────────────────────── */
.portfolio {
  background: transparent;
  color: var(--portfolio-text);
  padding: var(--section-gap-v) var(--section-gap-h);
}
.portfolio > .container {
  background: rgba(255,255,255,.94);
  border-radius: var(--section-card-radius);
  box-shadow: var(--section-card-shadow);
  padding: var(--section-card-padding);
}
.portfolio .section-tag   { color: var(--accent); }
.portfolio .section-title { color: var(--portfolio-text); }
.portfolio-info h4         { color: var(--portfolio-text); }
.portfolio-info p          { color: var(--portfolio-text-muted); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .portfolio-grid { grid-template-columns: 1fr; } }
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--on-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.portfolio-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.portfolio-img {
  height: 180px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  overflow: hidden;
}
.portfolio-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portfolio-img--web  { background: linear-gradient(135deg, #f9dbe6, #e891b0); }
.portfolio-img--app  { background: linear-gradient(135deg, #f6d9e5, #d77caa); }
.portfolio-card--link { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.portfolio-img--shop { background: linear-gradient(135deg, #fff0f5, #eab0c4); }
.portfolio-tag {
  position: relative;
  background: var(--accent);
  backdrop-filter: blur(4px);
  border: 1px solid var(--on-card-border);
  color: #fff;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 999px;
}
.portfolio-info { padding: 1.25rem; }
.portfolio-info h3 { font-size: 1rem; font-weight: 700; color: var(--on-card); margin-bottom: .4rem; }
.portfolio-info p  { font-size: .87rem; color: var(--on-card-muted); }

/* ── Fluid reveal motion ──────────────────────────────────────────────── */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content { animation: rise-in .7s cubic-bezier(.22,1,.36,1) both; }
.service-card, .portfolio-card { animation: rise-in .65s cubic-bezier(.22,1,.36,1) both; }
.service-card:nth-child(2), .portfolio-card:nth-child(2) { animation-delay: .08s; }
.service-card:nth-child(3), .portfolio-card:nth-child(3) { animation-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .services, .about, .portfolio, .contact { padding: 12px; }
  .services > .container, .about > .container, .portfolio > .container, .contact > .container { padding: 42px 24px; border-radius: 14px; }
  .hero { min-height: 86vh; padding: calc(var(--nav-h) + 42px) 20px 48px; }
  .hero-sub { font-size: 1.02rem; }
  .portfolio-img { height: 160px; }
}

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact {
  background: transparent;
  color: var(--contact-text);
  padding: var(--section-gap-v) var(--section-gap-h);
}
.contact > .container {
  background: rgba(255,255,255,.94);
  border-radius: var(--section-card-radius);
  box-shadow: var(--section-card-shadow);
  padding: var(--section-card-padding);
}
.contact .section-tag   { color: var(--accent); }
.contact .section-title { color: var(--contact-text); }
.contact .section-sub   { color: var(--contact-text-muted); }
.contact-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.contact-info-card h4 { font-weight: 700; margin-bottom: 1rem; }
.contact-info-card ul, .contact-info-card ol { display: flex; flex-direction: column; gap: .65rem; }
.contact-info-card li { font-size: .9rem; color: var(--text-muted); }
.contact-info-card ol { counter-reset: steps; }
.contact-info-card ol li { counter-increment: steps; display: flex; align-items: center; gap: .75rem; }
.contact-info-card ol li::before {
  content: counter(steps);
  min-width: 24px; height: 24px;
  background: var(--accent);
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  background: transparent;
  color: var(--footer-text);
  padding: var(--section-gap-v) var(--section-gap-h) calc(var(--section-gap-v) + 8px);
}
.footer > .container {
  background: var(--section-card-bg);
  border-radius: var(--section-card-radius);
  box-shadow: var(--section-card-shadow);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Brand row */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}
.footer-brand .logo { font-size: 1.35rem; }
.footer-tagline { font-size: .78rem; color: var(--section-text-sub); letter-spacing: .04em; }

/* Nav links */
.footer-nav {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border-radius: 99px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--section-text-muted);
  border: 1px solid transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  text-decoration: none;
  min-height: 44px;
}
.footer-nav a:hover {
  color: var(--accent);
  background: var(--accent-faint);
  border-color: var(--accent-border);
}
.footer-nav a.footer-nav--pill {
  background: var(--accent-subtle);
  color: var(--accent);
  border-color: var(--accent-border);
}
.footer-nav a.footer-nav--pill:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.footer-nav-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--section-text-sub);
  opacity: .35;
}

/* Copyright row */
.footer-copy {
  font-size: .78rem;
  color: var(--section-text-sub);
  text-align: center;
}

/* Deprecated — kept so no service page breaks */
.footer-inner { display: contents; }
.footer-links  { display: contents; }
.footer-admin  { display: none; }

@media (max-width: 480px) {
  .footer > .container { padding: 1.5rem 1.25rem; gap: 1.25rem; }
  .footer-nav { gap: .2rem; }
  .footer-nav a { padding: .4rem .75rem; font-size: .8rem; }
}
