/* ═══════════════════════════════════════════════════
   CW Printing — Premium Printing & Advertisement
   Design System & Styles
   ═══════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────── */
:root {
  /* Surfaces */
  --bg:        #f0f7ff;
  --bg-alt:    #ffffff;
  --surface:   #ffffff;
  --surface-2: #e8f1fb;
  --border:    rgba(0,80,160,.08);

  /* Text */
  --text:      #0f2b46;
  --text-dim:  #4a6a8a;
  --text-muted:#7e9ab5;

  /* Accent – Light-blue palette */
  --cyan:   #0088e0;
  --magenta:#3b82f6;
  --yellow: #60a5fa;
  --key:    #dbeafe;

  --grad:   linear-gradient(135deg, #0088e0, #3b82f6);
  --grad-2: linear-gradient(135deg, #3b82f6, #60a5fa);

  /* Spacing & Sizing */
  --radius:   14px;
  --radius-sm:8px;
  --max-w:    1200px;
  --header-h: 72px;

  /* Transitions */
  --ease: cubic-bezier(.25,.46,.45,.94);
}

/* ── Reset & Base ───────────────────────────────── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Gradient Text Utility ──────────────────────── */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section Styling ────────────────────────────── */
.section-tag {
  font-family: 'Outfit', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  border-radius: 50px;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  padding: 14px 32px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 24px rgba(0,136,224,.25);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(0,136,224,.35); }

.btn-outline {
  padding: 14px 32px;
  border: 1.5px solid rgba(0,80,160,.18);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-nav {
  padding: 10px 24px;
  background: var(--grad);
  color: #fff;
}

.btn-full { width: 100%; }

/* ═══════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--grad);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 2px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .25s;
}
.nav-links a:hover { color: var(--text); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s, background .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(240, 247, 255, .82);
  z-index: 1;
}

/* Background shapes */
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .18;
}
.shape-1 { width: 600px; height: 600px; background: var(--cyan);    top:-15%; right:-10%; }
.shape-2 { width: 500px; height: 500px; background: var(--magenta); bottom:-10%; left:-8%; }
.shape-3 { width: 300px; height: 300px; background: var(--yellow);  top:40%; left:40%; opacity:.15; }

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0 60px;
}

.hero-tag {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 24px;
  display: inline-block;
  background: var(--surface);
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  max-width: 800px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════ */
.services {
  padding: 120px 0;
  background: var(--bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,136,224,.1);
  border-color: rgba(0,136,224,.22);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--surface-2);
}

.service-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-dim);
  font-size: .92rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════ */
.about {
  padding: 120px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-text p {
  color: var(--text-dim);
  margin-bottom: 24px;
  font-size: 1.02rem;
}

.about-list {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-list li {
  font-size: .95rem;
  color: var(--text);
}

/* ═══════════════════════════════════════════════════
   PORTFOLIO
   ═══════════════════════════════════════════════════ */
.portfolio {
  padding: 120px 0;
  background: var(--bg-alt);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
}

.portfolio-item.pi-wide { grid-column: span 2; height: 320px; }

.pi-bg {
  position: absolute;
  inset: 0;
  transition: transform .5s var(--ease);
}
.portfolio-item:hover .pi-bg { transform: scale(1.06); }

.pi-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.portfolio-item:hover .pi-bg-img { transform: scale(1.06); }

.pi-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background: linear-gradient(to top, rgba(0,50,100,.75) 0%, transparent 100%);
  opacity: 1;
}

.pi-overlay h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.pi-overlay h4 { color: #fff; }
.pi-overlay p {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
}

/* ═══════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════ */
.testimonials {
  padding: 120px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform .35s var(--ease), border-color .35s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,136,224,.22);
}

.testi-quote {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  color: #fff;
  flex-shrink: 0;
}

.testi-author strong {
  display: block;
  font-size: .92rem;
}
.testi-author span {
  font-size: .78rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════ */
.contact {
  padding: 120px 0;
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info p {
  color: var(--text-dim);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-details li {
  font-size: .95rem;
  color: var(--text);
}

/* Form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .95rem;
  transition: border-color .25s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
}

.form-group select { cursor: pointer; }
.form-group textarea { resize: vertical; }

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
  padding: 80px 0 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: .9rem;
  max-width: 300px;
}

.footer-links h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: .88rem;
  padding: 5px 0;
  transition: color .2s;
}
.footer-links a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   ANIMATIONS — Fade-in on scroll (CSS-only via IntersectionObserver helper)
   ═══════════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-visual { height: 300px; }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: rgba(240,247,255,.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a { font-size: 1.2rem; color: var(--text); }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item.pi-wide { grid-column: span 1; height: 240px; }
  .portfolio-item { height: 220px; }

  /* Stats */
  .hero-stats { gap: 28px; }
  .stat-num { font-size: 1.6rem; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-content { padding: 48px 0 40px; }
  .hero-title { font-size: 2rem; }
  .hero-sub { font-size: .95rem; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
  .contact-form { padding: 24px; }
}
