/* ============================================
   Northern Cadence Digital — Romantic Style
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Raleway:wght@300;400;500;600&display=swap');

/* ----- Custom Properties ----- */
:root {
  --primary: #8B3A62;
  --primary-dark: #6B2A4A;
  --primary-light: #F9F0F4;
  --primary-muted: #C48AA5;
  --accent: #C9A96E;
  --accent-dark: #B08A4E;
  --accent-light: #F5EFE0;
  --text: #2D2D2D;
  --text-light: #6B6B6B;
  --text-white: #FAFAFA;
  --bg: #FFFFFF;
  --bg-warm: #FDF8F5;
  --bg-dark: #2A1A22;
  --bg-footer: #1E1218;
  --border: #E8DDE3;
  --shadow: 0 4px 24px rgba(139, 58, 98, 0.08);
  --shadow-hover: 0 8px 40px rgba(139, 58, 98, 0.15);
  --radius: 12px;
  --radius-lg: 24px;
  --max-w: 1200px;
  --header-h: 80px;
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin-bottom: 1rem; }

.section-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  color: var(--primary-muted);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.section-title { margin-bottom: 1rem; }
.section-desc {
  max-width: 640px;
  margin: 0 auto 3rem;
  color: var(--text-light);
  font-size: 1.05rem;
}
.text-center { text-align: center; }

/* ----- Decorative Elements ----- */
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 2.5rem auto;
  max-width: 240px;
}
.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-muted), transparent);
}
.divider-ornament svg { flex-shrink: 0; }

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

/* ----- Header ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
  height: var(--header-h);
}
.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(139, 58, 98, 0.06);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-mark {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-muted));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-muted);
}

/* Navigation */
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: 50px;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.nav a:hover, .nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}

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

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 36px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139, 58, 98, 0.3);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 169, 110, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ----- Hero ----- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 40%, #3D1A2E 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 0C6.716 0 0 6.716 0 15c8.284 0 15-6.716 15-15zM15 30c8.284 0 15-6.716 15-15-8.284 0-15 6.716-15 15z' fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 1;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23ffffff' d='M0,60 C360,120 1080,0 1440,60 L1440,120 L0,120 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: 100% 120px;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 40px 24px 80px;
}
.hero h1 {
  color: #fff;
  margin-bottom: 1.2rem;
  font-weight: 700;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Floating decorative shapes */
.hero-decor {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: var(--accent);
}
.hero-decor-1 { width: 400px; height: 400px; top: -100px; right: -100px; }
.hero-decor-2 { width: 300px; height: 300px; bottom: 60px; left: -80px; }
.hero-decor-3 { width: 200px; height: 200px; top: 30%; left: 15%; background: #fff; opacity: 0.04; }

/* ----- Cards ----- */
.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* Service Card */
.service-card .icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition);
}
.service-card:hover .icon-wrap {
  background: var(--primary);
}
.service-card .icon-wrap svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
  transition: color var(--transition);
}
.service-card:hover .icon-wrap svg { color: #fff; }
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { color: var(--text-light); font-size: 0.95rem; margin: 0; }

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: center;
}

/* ----- Testimonials ----- */
.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 40px 32px 32px;
  box-shadow: var(--shadow);
  position: relative;
  transition: all var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.testimonial-card .quote-icon {
  position: absolute;
  top: -16px;
  left: 32px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial-card .quote-icon svg { width: 18px; height: 18px; color: #fff; }
.testimonial-card blockquote {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}
.author-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}
.author-info span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ----- About / Two Column ----- */
.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 2px solid var(--primary-muted);
  opacity: 0.3;
}
.about-content h2 { margin-bottom: 1.5rem; }
.about-content p { color: var(--text-light); }

/* Stats */
.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ----- Portfolio ----- */
.portfolio-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  background: var(--bg);
}
.portfolio-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.portfolio-thumb {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.portfolio-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(42, 26, 34, 0.6));
}
.portfolio-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 50px;
}
.portfolio-body { padding: 28px 24px; }
.portfolio-body h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.portfolio-body p { color: var(--text-light); font-size: 0.9rem; margin: 0; }
.portfolio-result {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

/* ----- Contact ----- */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; color: var(--primary); }
.contact-info-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 2px;
}
.contact-info-item span,
.contact-info-item a {
  font-size: 0.9rem;
  color: var(--text-light);
}
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-wrap iframe { display: block; }

/* ----- CTA Banner ----- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 0C6.716 0 0 6.716 0 15c8.284 0 15-6.716 15-15zM15 30c8.284 0 15-6.716 15-15-8.284 0-15 6.716-15 15z' fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.cta-banner > * { position: relative; z-index: 2; }
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p {
  color: rgba(255,255,255,0.8);
  max-width: 540px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* ----- Footer ----- */
.footer {
  background: var(--bg-footer);
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 0 30px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text small { color: var(--primary-muted); }
.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  max-width: 280px;
  margin-top: 12px;
}
.footer-links h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  font-family: var(--font-body);
}
.footer-links a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
}

/* ----- Page Hero (inner pages) ----- */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 0C6.716 0 0 6.716 0 15c8.284 0 15-6.716 15-15zM15 30c8.284 0 15-6.716 15-15-8.284 0-15 6.716-15 15z' fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23ffffff' d='M0,40 C360,80 1080,0 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: 100% 80px;
}
.page-hero > * { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto;
  font-style: italic;
  font-family: var(--font-heading);
}

/* ----- Section Backgrounds ----- */
.bg-warm { background: var(--bg-warm); }
.bg-light { background: var(--primary-light); }
.bg-dark {
  background: var(--bg-dark);
  color: var(--text-white);
}
.bg-dark h2, .bg-dark h3 { color: var(--text-white); }
.bg-dark p { color: rgba(255,255,255,0.7); }
.bg-dark .section-subtitle { color: var(--accent); }

/* ----- Process Steps ----- */
.process-step {
  text-align: center;
  position: relative;
}
.process-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-muted));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}
.process-step h3 { margin-bottom: 0.5rem; }
.process-step p { color: var(--text-light); font-size: 0.9rem; }

/* ----- Values ----- */
.value-card {
  text-align: center;
  padding: 32px 24px;
}
.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  color: var(--primary);
}
.value-card h3 { margin-bottom: 0.5rem; }
.value-card p { color: var(--text-light); font-size: 0.9rem; margin: 0; }

/* ----- Team ----- */
.team-card { text-align: center; }
.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--primary-light);
}
.team-card h3 { margin-bottom: 0.25rem; font-size: 1.1rem; }
.team-card .role {
  color: var(--primary-muted);
  font-size: 0.85rem;
  font-style: italic;
  font-family: var(--font-heading);
}
.team-card p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* ----- FAQ / Accordion ----- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  padding: 0;
  gap: 16px;
}
.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--primary-muted);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer p {
  padding-top: 12px;
  color: var(--text-light);
  font-size: 0.95rem;
}
.faq-item.active .faq-answer { max-height: 300px; }

/* ----- Responsive ----- */
@media (max-width: 968px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .stats-row { gap: 24px; }
}

@media (max-width: 768px) {
  section { padding: 70px 0; }
  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 8px;
  }
  .hamburger { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 140px 0 100px; }
  .hero-content { padding: 24px; }
  .page-hero { padding: 130px 0 60px; }
  .stats-row { flex-wrap: wrap; gap: 20px; }
  .stat { flex: 1; min-width: 80px; }
}
