/* =========================================================
   MaaLean — Brand Stylesheet
   Colors: Deep Purple #6B2D8B | Dark #2D1040 | Gold #C9A84C
   ========================================================= */

:root {
  --purple:      #6B2D8B;
  --purple-dark: #2D1040;
  --purple-mid:  #8B3DAD;
  --purple-light:#F3EEFB;
  --gold:        #C9A84C;
  --gold-dark:   #A8882E;
  --white:       #FFFFFF;
  --off-white:   #F5F5F5;
  --text:        #222222;
  --text-muted:  #666666;
  --border:      #E0D4EF;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(45, 16, 64, 0.12);
  --shadow-lg:   0 8px 40px rgba(45, 16, 64, 0.18);
  --transition:  all 0.3s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--purple); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--purple-dark);
}

/* ---- Container ---- */
.container {
  width: 90%;
  max-width: 1160px;
  margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--purple-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--purple);
  transform: translateY(-2px);
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
#site-header {
  background: var(--purple-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

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

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--off-white);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 4px 0;
  position: relative;
}

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

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

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

.nav-links .btn {
  padding: 8px 22px;
  font-size: 0.88rem;
}

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

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 60%, var(--purple-mid) 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  text-align: center;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600'%3E%3Cpolygon points='0,0 400,0 200,300' fill='rgba(255,255,255,0.03)'/%3E%3Cpolygon points='400,0 800,0 600,300' fill='rgba(255,255,255,0.04)'/%3E%3Cpolygon points='0,600 400,300 0,300' fill='rgba(255,255,255,0.03)'/%3E%3Cpolygon points='800,600 400,300 800,300' fill='rgba(255,255,255,0.04)'/%3E%3Cpolygon points='200,300 600,300 400,600' fill='rgba(255,255,255,0.02)'/%3E%3C/svg%3E") center/cover;
}

.hero-content { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.8rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.25rem;
}

.hero h1 span { color: var(--gold); }

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.hero-stat .number {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.hero-stat .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}

/* =========================================================
   SECTIONS — shared
   ========================================================= */
section { padding: 80px 0; }
section.bg-light { background: var(--purple-light); }
section.bg-dark  { background: var(--purple-dark); color: var(--white); }
section.bg-dark h2, section.bg-dark h3 { color: var(--white); }
section.bg-dark p  { color: rgba(255,255,255,0.8); }

.section-label {
  display: inline-block;
  color: var(--purple);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-label.light { color: var(--gold); }

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
}

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

.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* =========================================================
   CARDS
   ========================================================= */
.cards-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 56px; height: 56px;
  background: var(--purple-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.6rem;
}

.card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.card p  { color: var(--text-muted); font-size: 0.95rem; }

/* Dark cards */
.card.dark {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  color: var(--white);
}
.card.dark h3 { color: var(--white); }
.card.dark p  { color: rgba(255,255,255,0.75); }
.card.dark .card-icon { background: rgba(255,255,255,0.1); }

/* =========================================================
   ABOUT SECTION (two-column)
   ========================================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col.reverse > *:first-child { order: 2; }
.two-col.reverse > *:last-child  { order: 1; }

.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-item .icon {
  width: 36px; height: 36px; min-width: 36px;
  background: var(--purple-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.feature-item p { font-size: 0.95rem; color: var(--text-muted); margin-top: 2px; }
.feature-item h4 { font-size: 0.95rem; color: var(--purple-dark); }

/* =========================================================
   SERVICES PAGE
   ========================================================= */
.service-block {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-bottom: 1.5rem;
}

.service-block:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.service-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: var(--white);
  flex-shrink: 0;
}

.service-body h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.service-body p  { color: var(--text-muted); font-size: 0.95rem; }

.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag {
  font-size: 0.78rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 50px;
  background: var(--purple-light);
  color: var(--purple);
}

/* =========================================================
   BLOG
   ========================================================= */
.blog-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--white);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.blog-card-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}

.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.blog-meta {
  display: flex; gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-family: 'Poppins', sans-serif;
}

.blog-meta .cat {
  color: var(--purple);
  font-weight: 600;
}

.blog-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  flex: 1;
}

.blog-card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.read-more {
  color: var(--purple);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.read-more:hover { color: var(--gold); gap: 10px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.contact-info p  { color: var(--text-muted); margin-bottom: 1.5rem; }

.contact-details { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item .c-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: var(--purple-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--purple);
}

.contact-item .c-text strong { display: block; font-size: 0.85rem; color: var(--purple); font-family: 'Poppins', sans-serif; }
.contact-item .c-text span  { font-size: 0.95rem; color: var(--text-muted); }

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 1.25rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--purple-dark);
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(107, 45, 139, 0.12);
}

textarea { resize: vertical; min-height: 130px; }

.form-submit { margin-top: 0.5rem; }
.form-submit .btn { width: 100%; justify-content: center; }

/* Alert messages */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  padding: 80px 0;
  text-align: center;
}

.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.cta-band p  { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 1.05rem; }

/* =========================================================
   FOOTER
   ========================================================= */
#site-footer {
  background: var(--purple-dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img { width: 100px; height: auto; margin-bottom: 1rem; }
.footer-brand p   { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.65); }

.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--gold); padding-left: 4px; }

.social-links { display: flex; gap: 0.75rem; margin-top: 1.25rem; }

.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--gold);
  color: var(--purple-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a { color: var(--gold); }

/* =========================================================
   PAGE HEADER (inner pages)
   ========================================================= */
.page-header {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}

.page-header h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.5rem; }
.page-header p  { color: rgba(255,255,255,0.8); font-size: 1.05rem; }

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .two-col       { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.reverse > *:first-child { order: 0; }
  .two-col.reverse > *:last-child  { order: 0; }
  .contact-grid  { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .service-block { grid-template-columns: 1fr; }
  .service-icon  { width: 56px; height: 56px; font-size: 1.4rem; margin-bottom: 1rem; }
}

@media (max-width: 680px) {
  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0; background: var(--purple-dark); padding: 1rem 0; }
  .nav-links.open { display: flex; }
  .nav-links a    { padding: 0.75rem 1.5rem; width: 100%; }
  .nav-toggle     { display: flex; }
  .hero-stats     { gap: 1.5rem; }
  .footer-grid    { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  section         { padding: 60px 0; }
  .hero           { padding: 80px 0 60px; }
  .footer-bottom  { flex-direction: column; text-align: center; }
}
