/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #591426;
  --primary-light: #7a2a3f;
  --primary-dark: #3e0d1a;
  --secondary: #8C745E;
  --secondary-light: #a8917a;
  --tertiary: #ece5e5;
  --white: #ffffff;
  --off-white: #faf8f8;
  --text: #2c2c2c;
  --text-light: #5a5a5a;
  --border: #ddd;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-lg: rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --header-height: 80px;
}

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

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -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(--primary-light); }
ul, ol { list-style: none; }

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); margin-bottom: 12px; }
p { margin-bottom: 16px; }

.section-subtitle {
  color: var(--secondary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  transition: box-shadow var(--transition), background var(--transition);
  height: var(--header-height);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo span { color: var(--secondary); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition);
  border-radius: 2px;
}
.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); }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: var(--header-height);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(89, 20, 38, 0.82) 0%, rgba(62, 13, 26, 0.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
  padding: 0 24px;
}
.hero-content h1 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
}
.hero-content p {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 28px;
  line-height: 1.7;
}

/* Inner page hero */
.hero-inner {
  height: 340px;
  min-height: 280px;
  max-height: 400px;
}
.hero-inner .hero-content h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(89, 20, 38, 0.3);
}
.btn-outline {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--secondary-light);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--off-white);
}
.section-dark {
  background: var(--primary);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .section-subtitle { color: var(--tertiary); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

/* ===== BREADCRUMBS ===== */
.breadcrumb {
  padding: 16px 0;
  margin-top: var(--header-height);
  background: var(--tertiary);
}
.breadcrumb-list {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.breadcrumb-list li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--text-light);
}
.breadcrumb-list a { color: var(--secondary); }
.breadcrumb-list a:hover { color: var(--primary); }
.breadcrumb-list .current { color: var(--text-light); }

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: 0 2px 12px var(--shadow);
  transition: all var(--transition);
  border: 1px solid transparent;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow-lg);
  border-color: var(--tertiary);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--primary);
}

.card h3 { color: var(--primary); }
.card p { color: var(--text-light); font-size: 0.95rem; }

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 36px;
}

.team-card {
  text-align: center;
  padding: 40px 24px;
}
.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid var(--tertiary);
  box-shadow: 0 4px 20px var(--shadow);
}
.team-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--tertiary);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--secondary);
  border: 4px solid var(--border);
}
.team-card h3 { margin-bottom: 4px; }
.team-role {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.team-card p { color: var(--text-light); font-size: 0.92rem; }

/* ===== PROJECT GALLERY ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 12px var(--shadow);
  transition: all var(--transition);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow-lg);
}
.project-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--tertiary);
}
.project-card-body {
  padding: 24px;
}
.project-card-body h3 { font-size: 1.1rem; }
.project-card-body p { color: var(--text-light); font-size: 0.92rem; }

/* ===== BLOG / RESOURCES ===== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.resource-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 12px var(--shadow);
  transition: all var(--transition);
}
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow-lg);
}
.resource-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--tertiary);
}
.resource-card-body {
  padding: 24px;
}
.resource-card-body h3 { font-size: 1.15rem; }
.resource-card-body p { color: var(--text-light); font-size: 0.92rem; }
.resource-meta {
  font-size: 0.82rem;
  color: var(--secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 1.2rem;
}
.contact-item h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.contact-item p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 0;
}
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  height: 400px;
}
.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== SLIDESHOW ===== */
.slideshow {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-lg);
}
.slideshow img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: none;
}
.slideshow img.active { display: block; }
.slide-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: none;
  transition: background var(--transition);
}
.slide-dot.active { background: var(--white); }

/* ===== CTA BAND ===== */
.cta-band {
  text-align: center;
  padding: 64px 24px;
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== INTRO TEXT ===== */
.intro-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.site-footer h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-links a {
  display: block;
  color: rgba(255,255,255,0.7);
  padding: 4px 0;
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--white); }
.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { height: 70vh; }
  .hero-inner { height: 280px; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 20px;
    box-shadow: -4px 0 30px var(--shadow-lg);
    transition: right var(--transition);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; }

  .section { padding: 56px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .slideshow img { height: 260px; }
  .hero { height: 60vh; min-height: 400px; }
  .hero-inner { height: 240px; min-height: 220px; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn { padding: 12px 28px; font-size: 0.9rem; }
  .project-grid { grid-template-columns: 1fr; }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* Service detail page */
.service-detail { max-width: 800px; }
.service-detail h2 { margin-top: 32px; }

/* Content body */
.content-body {
  max-width: 800px;
  margin: 0 auto;
}
.content-body h2 { margin-top: 36px; }
.content-body p { margin-bottom: 16px; }
.content-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.content-body li {
  margin-bottom: 8px;
  color: var(--text-light);
}
