/* ==========================================================================
   Mann Graphics — Global Stylesheet
   Premium teal / white / dark theme with 3D accents
   ========================================================================== */

:root {
  --teal: #1c9aa0;
  --teal-dark: #0f6b72;
  --teal-light: #5fd0d6;
  --ink: #0b1f24;
  --ink-soft: #294048;
  --paper: #ffffff;
  --paper-soft: #f4f9fa;
  --line: #e2eef0;
  --shadow: 0 20px 60px rgba(15, 60, 65, 0.12);
  --shadow-lg: 0 30px 90px rgba(15, 60, 65, 0.18);
  --radius: 18px;
  --ff-heading: "Poppins", "Segoe UI", system-ui, sans-serif;
  --ff-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------------- */
/* Header / Navigation                                                     */
/* ---------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(15, 60, 65, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: 0.5px;
}

.brand .brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
}

.brand span.sub {
  color: var(--teal-dark);
  font-weight: 400;
  font-size: 0.95rem;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(28, 154, 160, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(28, 154, 160, 0.45);
}

.nav-login {
  border: 1.5px solid var(--teal);
  border-radius: 999px;
  padding: 8px 22px !important;
  color: var(--teal-dark) !important;
  font-weight: 600;
}

.nav-login::after {
  display: none;
}

.nav-login:hover {
  background: var(--teal);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* ---------------------------------------------------------------------- */
/* Hero with 3D canvas                                                     */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  overflow: hidden;
  background: radial-gradient(ellipse at top right, #e6f7f8 0%, var(--paper) 55%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-canvas canvas { display: block; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--teal);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--teal);
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  box-shadow: 0 14px 34px rgba(28, 154, 160, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(28, 154, 160, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  transform: translateY(-3px);
}

/* ---------------------------------------------------------------------- */
/* Section utilities                                                       */
/* ---------------------------------------------------------------------- */

section { padding: 100px 0; position: relative; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::before { display: none; }
.section-head .eyebrow::after {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--teal);
  display: inline-block;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--ink-soft);
}

.alt-bg { background: var(--paper-soft); }

/* ---------------------------------------------------------------------- */
/* Cards / Grids                                                           */
/* ---------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 28px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.card:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 12px 26px rgba(28, 154, 160, 0.3);
}

.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { font-size: 0.96rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------------- */
/* Stats strip                                                             */
/* ---------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px 0;
}

.stat {
  text-align: center;
}

.stat .num {
  font-family: var(--ff-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--teal-dark);
}

.stat .label {
  font-size: 0.9rem;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ---------------------------------------------------------------------- */
/* CTA band                                                                */
/* ---------------------------------------------------------------------- */

.cta-band {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  border-radius: 28px;
  padding: 64px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin: 0 24px;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 28px; }

.cta-band .btn-primary {
  background: #fff;
  color: var(--teal-dark);
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
}

.cta-band .btn-primary:hover { color: var(--teal-dark); }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: #c8dde0;
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid h4 {
  color: #fff;
  margin-bottom: 18px;
  font-size: 1rem;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }

.footer-grid a:hover { color: var(--teal-light); }

.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 0.92rem; color: #9bb6ba; max-width: 320px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.85rem;
  color: #7e9a9e;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------------------------------------------------------------- */
/* Page header (non-home pages)                                            */
/* ---------------------------------------------------------------------- */

.page-hero {
  padding: 160px 0 80px;
  background: radial-gradient(ellipse at top right, #e6f7f8 0%, var(--paper) 55%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 14px; }
.page-hero p { color: var(--ink-soft); max-width: 600px; margin: 0 auto; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--teal-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}

/* ---------------------------------------------------------------------- */
/* About page extras                                                       */
/* ---------------------------------------------------------------------- */

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

.about-visual {
  position: relative;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #e6f7f8, #d4eef0);
}

.about-visual canvas { width: 100%; height: 100%; display: block; }

.timeline {
  margin-top: 20px;
  border-left: 2px solid var(--line);
  padding-left: 28px;
}

.timeline .item {
  position: relative;
  margin-bottom: 28px;
}

.timeline .item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(28,154,160,0.15);
}

.timeline .item h4 { margin-bottom: 4px; }
.timeline .item span { color: var(--teal-dark); font-weight: 600; font-size: 0.85rem; }

/* ---------------------------------------------------------------------- */
/* Services page                                                           */
/* ---------------------------------------------------------------------- */

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}

.service-row:last-child { border-bottom: none; }

.service-row:nth-child(even) .service-visual { order: 2; }

.service-visual {
  height: 320px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eaf8f9, #d4eef0);
  position: relative;
  overflow: hidden;
}

.service-visual canvas { width: 100%; height: 100%; }

.service-text .tag {
  display: inline-block;
  background: rgba(28,154,160,0.1);
  color: var(--teal-dark);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.service-text h2 { margin-bottom: 14px; }
.service-text ul { margin: 18px 0 0; padding-left: 0; list-style: none; }
.service-text li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.95rem;
}

.service-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ---------------------------------------------------------------------- */
/* Portfolio                                                                */
/* ---------------------------------------------------------------------- */

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.filter-bar button {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.25s ease;
}

.filter-bar button.active,
.filter-bar button:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 280px;
  background: linear-gradient(135deg, #d4eef0, #b9e4e7);
  display: flex;
  align-items: flex-end;
  transition: transform 0.4s ease;
}

.portfolio-item:hover { transform: translateY(-6px); }

.portfolio-item .overlay {
  position: relative;
  z-index: 2;
  padding: 22px;
  color: var(--ink);
  width: 100%;
  background: linear-gradient(to top, rgba(255,255,255,0.92), rgba(255,255,255,0));
}

.portfolio-item .overlay span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal-dark);
  font-weight: 700;
  margin-bottom: 4px;
}

.portfolio-item .shape {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.35;
}

/* ---------------------------------------------------------------------- */
/* Contact page                                                            */
/* ---------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info .item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-info .icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(28,154,160,0.3);
}

.contact-info h4 { margin-bottom: 6px; }
.contact-info p { font-size: 0.92rem; }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-status {
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 500;
  min-height: 1.2em;
}

.form-status.success {
  color: #1c9a5a;
}

.form-status.error {
  color: #c0392b;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--paper-soft);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}

.map-embed {
  margin-top: 50px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 360px;
}

.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------------------------- */
/* Reveal animation                                                        */
/* ---------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .service-row { grid-template-columns: 1fr; gap: 32px; }
  .service-row:nth-child(even) .service-visual { order: 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------------- */
/* Gallery (category pages)                                                */
/* ---------------------------------------------------------------------- */

.category-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.category-nav a {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: all 0.25s ease;
}

.category-nav a.active,
.category-nav a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.gallery-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.gallery-item .thumb {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-item .thumb .zoom-hint {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--ink);
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.25s ease;
}

.gallery-item .thumb:hover .zoom-hint {
  opacity: 1;
  transform: scale(1);
}

.gallery-item .thumb:hover {
  filter: brightness(1.04);
}

.gallery-item .info {
  padding: 22px 24px;
}

.gallery-item .info span.cat {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal-dark);
  font-weight: 700;
  margin-bottom: 6px;
}

.gallery-item .info h3 { margin-bottom: 8px; }
.gallery-item .info p { font-size: 0.92rem; }

/* ---------------------------------------------------------------------- */
/* Lightbox / Zoom modal                                                   */
/* ---------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 31, 36, 0.82);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-box {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s ease;
  box-shadow: var(--shadow-lg);
}

.lightbox.active .lightbox-box {
  transform: scale(1) translateY(0);
}

.lightbox-image {
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  position: relative;
}

.lightbox-body {
  padding: 28px 32px 32px;
}

.lightbox-body span.cat {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

.lightbox-body h3 { margin-bottom: 10px; font-size: 1.3rem; }
.lightbox-body p { font-size: 0.95rem; }

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: #fff;
  transform: rotate(90deg);
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle { display: flex; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .form-row { grid-template-columns: 1fr; }
}
