/* global.css – shared across all pages */

:root {
  --primary: #3b2a7a;      /* deep purple */
  --secondary: #c9a14a;    /* warm gold */
  --dark: #1b1b1f;
  --light: #f7f5f2;
  --accent: #e7dfcf;
  --text: #252525;
  --max-width: 1200px;
  --radius: 8px;
  --shadow-soft: 0 14px 30px rgba(0,0,0,0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
}

/* Layout */

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top bar */

.top-bar {
  background: var(--dark);
  color: #fff;
  font-size: 0.85rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  gap: 1rem;
}

.top-bar-left span {
  opacity: 0.9;
}

.top-bar-right {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-bar-right a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}

.top-bar-right a:hover {
  opacity: 1;
}

/* Header / nav */

header {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(circle at 20% 20%, var(--secondary), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-text h1 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand-text p {
  margin: 0;
  font-size: 0.8rem;
  color: #666;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  text-decoration: none;
  color: #444;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #241751);
  color: #fff;
  box-shadow: 0 10px 25px rgba(41,28,115,0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(41,28,115,0.36);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

.btn-secondary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: rgba(59,42,122,0.22);
}

.btn-ghost:hover {
  background: rgba(59,42,122,0.05);
}

/* Mobile nav */

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 800px) {
  .nav-links {
    position: fixed;
    inset: 64px 0 auto 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-cta .btn-ghost {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

/* Hero */

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.hero h2 {
  font-size: clamp(2rem, 2.6vw, 2.6rem);
  margin: 0 0 0.85rem;
  color: var(--dark);
}

.hero p.lead {
  margin: 0 0 1.5rem;
  color: #555;
  max-width: 32rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.badge {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #efe7d8;
  color: #5c4b1c;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-note {
  font-size: 0.85rem;
  color: #666;
}

.hero-media {
  position: relative;
}

.hero-card {
  background: #fff;
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card-main {
  height: 230px;
  border-radius: 18px;
  background: linear-gradient(135deg, #352262, #7f6bcc);
  position: relative;
  overflow: hidden;
}

.hero-card-main::before {
  content: "";
  position: absolute;
  inset: 18% 15% auto auto;
  border-radius: 999px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle at 30% 20%, #f5f0ff, rgba(255,255,255,0));
  opacity: 0.8;
}

.hero-stats {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-stat {
  background: rgba(9,7,21,0.78);
  border-radius: 14px;
  padding: 0.5rem 0.7rem;
  color: #fff;
  font-size: 0.8rem;
}

.hero-stat strong {
  display: block;
  font-size: 0.95rem;
}

.hero-chip {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255,255,255,0.9);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.hero-floating {
  position: absolute;
  right: -10px;
  bottom: 35%;
  background: #fff;
  border-radius: 16px;
  padding: 0.6rem 0.85rem;
  font-size: 0.8rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

/* Sections */

.section {
  padding: 3rem 0;
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-kicker {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--secondary);
  margin-bottom: 0.3rem;
}

.section-title {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  color: var(--dark);
}

.section-subtitle {
  margin: 0;
  color: #666;
  max-width: 32rem;
}

/* Cards & grids */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Service cards */

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}

.card h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.card p {
  margin-bottom: 0.75rem;
  color: #555;
}

.card-tag {
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f1edf7;
  color: #4b3a88;
  display: inline-block;
  margin-bottom: 0.45rem;
}

.card-meta {
  font-size: 0.85rem;
  color: #777;
}

/* Process */

.process-steps {
  display: grid;
  gap: 1rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Portfolio */

.portfolio-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1000px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.project-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.project-image {
  height: 170px;
  background: linear-gradient(135deg, #d9cfbc, #f7f2e7);
}

.project-body {
  padding: 1rem 1.1rem 1.1rem;
}

.project-meta {
  font-size: 0.8rem;
  color: #777;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

/* Testimonials */

.testimonials {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .testimonials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .testimonials {
    grid-template-columns: minmax(0, 1fr);
  }
}

.testimonial-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}

.testimonial-quote {
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-meta {
  font-size: 0.8rem;
  color: #777;
}

/* Contact / forms */

.form-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.75rem;
}

@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

form {
  background: #fff;
  padding: 1.25rem;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.form-field {
  margin-bottom: 0.9rem;
}

label {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
  color: #555;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(59,42,122,0.12);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

/* Blog */

.blog-list {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .blog-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.blog-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.blog-meta {
  font-size: 0.75rem;
  color: #777;
  margin-bottom: 0.35rem;
}

/* Footer */

footer {
  background: #111117;
  color: #e4e3ee;
  margin-top: auto;
}

.footer-main {
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.footer-brand h3 {
  margin-top: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-brand p {
  font-size: 0.85rem;
  color: #c8c6dd;
}

.footer-title {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  color: #d2d0ea;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #262633;
  padding: 0.75rem 0;
  font-size: 0.8rem;
  color: #9f9db8;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Utility */

.text-center {
  text-align: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #ede8fa;
  color: #433277;
}
