@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --bg: #fafaf8;
  --bg-alt: #f2f0eb;
  --bg-card: #ffffff;
  --bg-elevated: #f8f7f4;
  --bg-hover: #f0eee9;
  --border: #e5e2db;
  --border-light: #d5d2cb;
  --text: #1a1a2e;
  --text-secondary: #555;
  --text-muted: #888;
  --accent: #5cbfcc;
  --accent-hover: #49a8b5;
  --accent-glow: rgba(92,191,204,0.10);
  --dark: #1a1a2e;
  --dark-light: #16213e;
  --white: #ffffff;
  --success: #2d8a4e;
  --danger: #c0392b;
  --font: 'DM Sans', -apple-system, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --max-w: 1200px;
  --header-h: 90px;
  --radius: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-main { flex: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, textarea, select { font-family: inherit; color: var(--text); }

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

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font); font-weight: 500; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 400; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 400; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.serif { font-family: var(--serif); font-style: italic; color: var(--accent); }
.label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 16px;
  display: block;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 500; font-size: 0.9rem;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--dark); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(92,191,204,0.25); }
.btn-outline { border-color: var(--text); color: var(--text); }
.btn-outline:hover { background: var(--text); color: var(--white); }
.btn-ghost { color: var(--text-secondary); padding: 14px 20px; }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 16px 36px; font-size: 0.95rem; }

/* ═══════════════════
   HEADER (light)
   ═══════════════════ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 0.85rem; color: var(--text-secondary);
  transition: color 0.2s; position: relative;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.nav .nav-cta {
  background: var(--accent); color: var(--dark);
  padding: 9px 22px; border-radius: var(--radius);
  font-weight: 500;
}
.nav .nav-cta:hover { background: var(--accent-hover); }

.menu-toggle { display: none; padding: 8px; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: all 0.3s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

@media (max-width: 900px) {
  .menu-toggle { display: flex; position: relative; z-index: 100002; }
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.35s;
    z-index: 100001;
    text-align: center;
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav a {
    font-size: 1.2rem;
    color: #1a1a2e;
    padding: 16px 0;
    display: block;
    border-bottom: 1px solid #eee;
  }
  .nav .nav-cta {
    color: white;
    margin-top: 12px;
    border-bottom: none;
  }
}

/* ═══════════════════
   HERO (dark — stays dark)
   ═══════════════════ */
.hero {
  min-height: 80vh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 60px) 0 60px;
  position: relative; overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(92,191,204,0.06) 0%, transparent 60%);
}
.hero .container { position: relative; z-index: 2; width: 100%; }

.hero-tag {
  font-size: 0.78rem; color: #777;
  letter-spacing: 1px; margin-bottom: 40px;
  display: flex; align-items: center; gap: 6px;
}
.hero-tag .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.hero h1 { color: #f5f5f5; margin-bottom: 24px; max-width: 680px; line-height: 1.1; }
.hero p {
  color: rgba(255,255,255,0.6); font-size: 1.05rem;
  max-width: 520px; margin-bottom: 40px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-outline { border-color: rgba(255,255,255,0.2); color: #f5f5f5; }
.hero .btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); color: #fff; }

.hero-stats {
  display: flex; gap: 56px;
  margin-top: 40px; padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat h3 { font-size: 2.2rem; font-weight: 400; color: #f5f5f5; margin-bottom: 4px; }
.hero-stat h3::after { content: '+'; color: var(--accent); }
.hero-stat p { font-size: 0.8rem; color: #777; }

@media (max-width: 768px) {
  .hero { padding: 120px 0 40px; }
  .hero-stats { gap: 32px; flex-wrap: wrap; }
  .hero-stat h3 { font-size: 1.6rem; }
}

/* ═══════════════════
   TRUST BAR (light)
   ═══════════════════ */
.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  background: var(--white);
}
.trust-items { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item {
  font-size: 0.82rem; color: var(--text-secondary);
  display: flex; align-items: center; gap: 8px;
}
.trust-item svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 1.5; }

/* ═══════════════════
   SECTIONS (light)
   ═══════════════════ */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); font-size: 0.95rem; max-width: 500px; }
.section-header.center p { margin: 0 auto; }

/* ── Services (light) ── */
.services-main { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 48px; }
.service-main-card { background: var(--white); padding: 40px 32px; transition: all 0.3s; }
.service-main-card:hover { background: var(--bg-elevated); box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.service-main-card h3 { margin-bottom: 12px; font-size: 1.15rem; }
.service-main-card p { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 20px; line-height: 1.6; }
.service-main-card .link { font-size: 0.85rem; color: var(--accent-hover); display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.service-main-card:hover .link { gap: 10px; }

.services-cta { display: flex; gap: 12px; justify-content: center; margin-bottom: 64px; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.service-sm { background: var(--white); padding: 28px 24px; display: flex; gap: 16px; align-items: flex-start; transition: all 0.3s; }
.service-sm:hover { background: var(--bg-elevated); }
.service-sm h4 { font-size: 0.92rem; font-weight: 500; margin-bottom: 4px; }
.service-sm p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.service-sm .svc-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--accent-glow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); font-size: 0.9rem; }

@media (max-width: 768px) {
  .services-main, .services-grid { grid-template-columns: 1fr; }
  .services-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .services-cta .btn { justify-content: center; }
}

/* ── About (light) ── */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img { aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); position: relative; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bg-alt), var(--bg-elevated)); }
.about-placeholder svg { width: 64px; height: 64px; stroke: var(--accent); fill: none; stroke-width: 1; opacity: 0.5; }
.about-badge { position: absolute; bottom: 20px; right: 20px; background: var(--accent); color: var(--dark); padding: 16px 24px; border-radius: var(--radius); text-align: center; }
.about-badge h3 { font-size: 1.8rem; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.about-badge p { font-size: 0.75rem; font-weight: 500; }
.about-text p { color: var(--text-secondary); margin-bottom: 16px; font-size: 0.95rem; line-height: 1.7; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.about-feat { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.85rem; color: var(--text-secondary); background: var(--white); }
.about-feat svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; flex-shrink: 0; }

@media (max-width: 768px) {
  .about-split { grid-template-columns: 1fr; gap: 40px; }
  .about-features { grid-template-columns: 1fr; }
}

/* ── Stats (dark — stays dark) ── */
.stats-bar { background: var(--dark); padding: 48px 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-num { font-size: 2.4rem; font-weight: 400; margin-bottom: 4px; color: #f5f5f5; }
.stat-num::after { content: '+'; color: var(--accent); }
.stat-lbl { font-size: 0.82rem; color: rgba(255,255,255,0.5); }

@media (max-width: 768px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── Projects (light bg, dark cards) ── */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--dark); aspect-ratio: 4/3; display: block; }
.project-card img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease), opacity 0.3s; opacity: 0.8; z-index: 1; }
.project-card:hover img { transform: scale(1.04); opacity: 0.4; }
.project-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--dark-light); }
.project-card-placeholder svg { width: 48px; height: 48px; stroke: rgba(255,255,255,0.3); fill: none; stroke-width: 1; }
.project-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,46,0.95) 0%, rgba(26,26,46,0.6) 40%, rgba(26,26,46,0.1) 70%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; z-index: 2; }
.project-overlay .cat { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.project-overlay h3 { font-size: 1.15rem; margin-bottom: 6px; color: #f5f5f5; }
.project-overlay p { font-size: 0.82rem; color: rgba(255,255,255,0.6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 768px) { .projects-grid { grid-template-columns: 1fr; } }

/* ── Testimonials (light) ── */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; background: var(--white); transition: all 0.3s; }
.testimonial:hover { border-color: var(--border-light); box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.testimonial-text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-glow); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--accent-hover); font-weight: 600; }
.testimonial-author strong { font-size: 0.88rem; display: block; color: var(--text); }
.testimonial-author span { font-size: 0.78rem; color: var(--text-muted); }

@media (max-width: 768px) { .testimonials { grid-template-columns: 1fr; } }

/* ── Blog (light) ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); transition: all 0.3s; }
.blog-card:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.blog-img { aspect-ratio: 16/9; background: var(--bg-alt); overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-img img { transform: scale(1.03); }
.blog-body { padding: 24px; }
.blog-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.blog-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.blog-body p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 768px) { .blog-grid { grid-template-columns: 1fr; } }

/* ── Blog Detail (2-column) ── */
.blog-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; }
.blog-cover { width: 100%; border-radius: var(--radius-lg); margin-bottom: 28px; }
.blog-meta-bar {
  display: flex; gap: 24px; flex-wrap: wrap;
  color: var(--text-muted); font-size: 0.85rem;
  padding-bottom: 20px; margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.blog-meta-bar span { display: inline-flex; align-items: center; gap: 6px; }
.blog-meta-bar svg { flex-shrink: 0; }
.blog-detail-body { color: var(--text-secondary); line-height: 1.9; }
.blog-detail-body p { margin-bottom: 16px; }
.blog-detail-body h2 { color: var(--text); margin: 32px 0 16px; }
.blog-detail-body img { border-radius: var(--radius); margin: 24px 0; }

.blog-sidebar { position: sticky; top: 100px; }
.sidebar-posts { display: flex; flex-direction: column; }
.sidebar-post-item {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  transition: color 0.2s; font-size: 0.9rem; color: var(--text);
}
.sidebar-post-item:last-child { border-bottom: none; }
.sidebar-post-item:hover { color: var(--accent); }
.sidebar-post-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.sidebar-post-thumb-placeholder {
  width: 60px; height: 60px; border-radius: 8px;
  background: var(--bg-alt); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sidebar-post-item span { line-height: 1.4; }

@media (max-width: 768px) {
  .blog-detail-grid { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
}

/* ── FAQ (light) ── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem; font-weight: 500; text-align: left; color: var(--text); }
.faq-question svg { width: 18px; height: 18px; stroke: var(--text-muted); fill: none; stroke-width: 1.5; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-answer-inner { padding-bottom: 24px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* ── Calculator (light) ── */
.calc-box { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px; max-width: 700px; margin: 0 auto; background: var(--white); }
.calc-box .section-header { margin-bottom: 32px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.calc-result { display: none; text-align: center; padding: 32px; border: 1px solid var(--accent-glow); border-radius: var(--radius); margin-top: 24px; background: rgba(92,191,204,0.06); }
.calc-price { font-size: 1.8rem; font-weight: 400; color: var(--accent-hover); margin: 8px 0; }
.calc-note { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; }

@media (max-width: 768px) {
  .calc-box { padding: 28px 20px; }
  .calc-grid { grid-template-columns: 1fr; }
}

/* ── CTA (dark — stays dark) ── */
.cta { text-align: center; padding: 80px 0; background: var(--dark); }
.cta h2 { margin-bottom: 12px; color: #f5f5f5; }
.cta p { color: rgba(255,255,255,0.6); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; font-size: 0.95rem; }
.cta .serif { color: var(--accent); }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta .btn-outline { border-color: rgba(255,255,255,0.2); color: #f5f5f5; }
.cta .btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); color: #fff; }

/* ═══════════════════
   FOOTER (dark — stays dark)
   ═══════════════════ */
.footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; }
.footer .logo { color: #f5f5f5; }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.88rem; margin-top: 12px; line-height: 1.7; }
.footer h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.5px; color: #f5f5f5; }
.footer-links a { display: block; padding: 5px 0; font-size: 0.85rem; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-contact { font-size: 0.85rem; color: rgba(255,255,255,0.45); }
.footer-contact div { display: flex; gap: 10px; margin-bottom: 12px; }
.footer-contact svg { width: 15px; height: 15px; stroke: var(--accent); fill: none; stroke-width: 1.5; flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: rgba(255,255,255,0.55); }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; display: flex; justify-content: space-between; font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: var(--accent); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); transition: all 0.3s; }
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-social a svg { width: 16px; height: 16px; fill: currentColor; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ═══════════════════
   INNER PAGES
   ═══════════════════ */
/* Page hero (dark — stays dark) */
.page-hero {
  position: relative; min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--header-h) + 60px) 0 60px;
  background: var(--dark); overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(92,191,204,0.1) 0%, transparent 50%);
  z-index: 1;
}
.page-hero .container { position: relative; z-index: 2; text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: #f5f5f5; text-align: center; }
.page-hero .breadcrumb { display: flex; gap: 8px; font-size: 0.82rem; color: rgba(255,255,255,0.4); margin-top: 12px; justify-content: center; }
.page-hero .breadcrumb a { color: var(--accent); }
.page-hero p { text-align: center; }

.maps-container { width: 100%; line-height: 0; }
.maps-container iframe { width: 100% !important; height: 400px !important; border: 0 !important; display: block; }

/* ── Contact (light) ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 14px; }
.contact-item .ci-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-glow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item .ci-icon svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.contact-item h4 { font-size: 0.88rem; font-weight: 500; margin-bottom: 2px; }
.contact-item p { font-size: 0.85rem; color: var(--text-muted); }
.contact-item a { color: var(--text-secondary); transition: color 0.2s; }
.contact-item a:hover { color: var(--accent); }

.contact-form { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; background: var(--white); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; color: var(--text-secondary); }
.form-control { width: 100%; padding: 12px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; transition: border-color 0.2s; color: var(--text); }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(92,191,204,0.1); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Service Detail (light) ── */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; padding: 60px 0; }
.detail-content .content { color: var(--text-secondary); line-height: 1.8; }
.detail-content .content p { margin-bottom: 16px; }
.detail-content .content h2 { color: var(--text); margin: 32px 0 16px; }
.detail-sidebar { position: sticky; top: 100px; }
.sidebar-box { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; background: var(--white); }
.sidebar-box h4 { font-size: 0.92rem; font-weight: 600; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.sidebar-box ul li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.sidebar-box ul li:last-child { border: none; }
.sidebar-box ul li a { font-size: 0.88rem; color: var(--text-secondary); display: flex; justify-content: space-between; transition: color 0.2s; }
.sidebar-box ul li a:hover { color: var(--accent); }
.sidebar-cta { background: var(--dark); border-color: transparent; }
.sidebar-cta h4 { color: var(--accent) !important; border-bottom-color: rgba(255,255,255,0.1) !important; }
.sidebar-cta p { font-size: 0.88rem; color: rgba(255,255,255,0.55); margin-bottom: 16px; }
.sidebar-cta a[href^="tel"] { color: var(--accent) !important; }

@media (max-width: 768px) { .detail-grid { grid-template-columns: 1fr; } }

/* ── Project Detail (light) ── */
.project-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 32px 0; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elevated); }
.project-info-item label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.project-info-item p { font-weight: 500; margin-top: 4px; }
.project-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 32px 0; }
.project-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); cursor: pointer; transition: opacity 0.3s; }
.project-gallery img:hover { opacity: 0.8; }

/* ── Gallery (light) ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-alt); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s, opacity 0.3s; }
.gallery-item:hover img { transform: scale(1.04); opacity: 0.7; }
.gallery-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 20px; background: linear-gradient(to top, rgba(26,26,46,0.8), transparent); color: #f5f5f5; font-size: 0.85rem; opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .gallery-label { opacity: 1; }

/* ── Teklif Al (light) ── */
.teklif-wrapper { max-width: 640px; margin: 0 auto; }
.teklif-form { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; background: var(--white); }

@media (max-width: 768px) { .teklif-form { padding: 24px 18px; } }

/* ── Filter (light) ── */
.filter-bar { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-btn { padding: 8px 20px; border-radius: 100px; font-size: 0.85rem; border: 1px solid var(--border); color: var(--text-muted); transition: all 0.2s; }
.filter-btn:hover, .filter-btn.active { background: var(--text); color: var(--white); border-color: var(--text); }

/* ── Post Detail (light) ── */
.post-content { max-width: 720px; margin: 0 auto; padding: 60px 0; }
.post-content h1 { margin-bottom: 16px; }
.post-content .post-meta { color: var(--text-muted); margin-bottom: 32px; font-size: 0.88rem; }
.post-content .content { color: var(--text-secondary); line-height: 1.9; }
.post-content .content p { margin-bottom: 16px; }
.post-content .content img { border-radius: var(--radius); margin: 24px 0; }
.post-content .content h2 { color: var(--text); margin: 32px 0 16px; }

/* ── Misyon/Vizyon/Değerler ── */
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mvv-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s var(--ease);
}
.mvv-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); border-color: var(--accent); }
.mvv-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-glow); color: var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.mvv-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.mvv-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }
@media (max-width: 768px) { .mvv-grid { grid-template-columns: 1fr; } }

/* ── 3S Yaklaşımı ── */
.three-s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.three-s-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s var(--ease);
}
.three-s-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
.three-s-number { font-size: 3rem; font-weight: 800; color: var(--accent-glow); line-height: 1; margin-bottom: 16px; background: linear-gradient(135deg, var(--accent), rgba(92,191,204,0.3)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.three-s-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.three-s-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }
@media (max-width: 768px) { .three-s-grid { grid-template-columns: 1fr; } }

/* ── Ürünlerimiz - Kategori Grid ── */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 48px; }
.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s var(--ease);
}
.category-card:hover, .category-card.active { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(92,191,204,0.12); }
.category-card.active { background: var(--accent); }
.category-card.active h3, .category-card.active p { color: var(--dark); }
.category-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-glow); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.category-icon svg { stroke: var(--accent); fill: none; stroke-width: 1.5; }
.category-card.active .category-icon { background: rgba(255,255,255,0.25); }
.category-card.active .category-icon svg { stroke: var(--dark); }
.category-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.category-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Ürünlerimiz - Ürün Kartları ── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.product-img { position: relative; aspect-ratio: 4/3; background: var(--bg-alt); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--dark); }
.product-category { position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--dark); font-size: 0.7rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; }
.product-info { padding: 20px; }
.product-info h3 { font-size: 1rem; margin-bottom: 6px; }
.product-volume { font-size: 0.8rem; color: var(--accent); font-weight: 600; display: inline-block; margin-bottom: 8px; }
.product-info p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Ürün Detay Ek Bilgiler ── */
.product-details-section { display: grid; gap: 20px; }
.product-detail-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.product-detail-item h4 { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 600; margin-bottom: 8px; color: var(--accent); }
.product-detail-item h4 svg { stroke: var(--accent); }
.product-detail-item p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; white-space: pre-line; }

/* ── Contact Social Links ── */
.social-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius); border: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-secondary); transition: all 0.2s;
}
.social-link:hover { border-color: var(--accent); color: var(--accent); }
.social-link svg { fill: currentColor; }

/* ═══════════════════
   UTILITIES
   ═══════════════════ */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }

.alert { padding: 14px 20px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #e8f5e9; color: var(--success); border: 1px solid #c8e6c9; }
.alert-danger { background: #fce4ec; color: var(--danger); border: 1px solid #f8bbd0; }

.whatsapp-float {
  position: fixed; bottom: 24px; left: 24px; width: 54px; height: 54px;
  background: #25d366; color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  z-index: 90; box-shadow: 0 4px 20px rgba(37,211,102,0.35); transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 26px; height: 26px; fill: white; }

@media (max-width: 768px) {
  .whatsapp-float { left: 16px; bottom: 16px; width: 48px; height: 48px; }
  .whatsapp-float svg { width: 22px; height: 22px; }
}

.back-to-top {
  position: fixed; bottom: 24px; right: 24px; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: center; color: var(--text);
  z-index: 90; opacity: 0; transform: translateY(10px); transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }
.back-to-top svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 200; display: none; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90vh; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 24px; right: 24px; color: white; font-size: 2rem; padding: 8px; }

.error-page { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 24px 60px; }
.error-page h1 { font-size: 6rem; color: var(--accent); }
.error-page p { color: var(--text-muted); margin: 16px 0 32px; }

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.ohnohoney { opacity: 0; position: absolute; top: 0; left: 0; height: 0; width: 0; z-index: -1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* ═══════════════════
   RESPONSIVE REFINEMENTS
   ═══════════════════ */

/* Tablet & small laptop */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .services-main, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid, .blog-grid, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .mvv-grid, .three-s-grid { grid-template-columns: repeat(3, 1fr); }
  .about-split { gap: 48px; }
  .blog-detail-grid { grid-template-columns: 1fr 280px; gap: 32px; }
  .detail-grid { grid-template-columns: 1fr 280px; gap: 32px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .header .logo img { height: 70px !important; }
  .footer-brand .logo img { height: 64px !important; }
}

/* Tablet portrait & large phones */
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .header .logo img { height: 56px !important; }
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
  .page-hero { min-height: 40vh; padding: calc(var(--header-h) + 40px) 0 40px; }
  .hero { min-height: auto; padding: calc(var(--header-h) + 50px) 0 50px; }
  .hero h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .hero p { font-size: 0.95rem; }
  .mvv-grid, .three-s-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-detail-grid, .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .blog-sidebar, .detail-sidebar { position: static; }
  .filter-bar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; white-space: nowrap; }
}

/* Phones */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 32px; }
  .btn { padding: 12px 22px; font-size: 0.88rem; }
  .btn-lg { padding: 14px 28px; font-size: 0.9rem; }
  .hero-buttons { width: 100%; }
  .hero-buttons .btn { flex: 1; justify-content: center; min-width: 0; }
  .services-main, .services-grid { grid-template-columns: 1fr; }
  .projects-grid, .blog-grid, .testimonials { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .product-info { padding: 14px; }
  .product-info h3 { font-size: 0.95rem; }
  .product-info p { font-size: 0.8rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .about-split { gap: 32px; }
  .about-img { aspect-ratio: 1/1; max-width: 420px; margin: 0 auto; }
  .about-badge { bottom: 14px; right: 14px; padding: 12px 18px; }
  .about-badge h3 { font-size: 1.4rem; }
  .contact-form { padding: 24px 18px; }
  .footer { padding: 48px 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .trust-items { gap: 16px 24px; }
  .trust-item { font-size: 0.78rem; }
  .maps-container iframe { height: 280px !important; }
  .project-gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .back-to-top { right: 16px; bottom: 16px; width: 36px; height: 36px; }
  .cta { padding: 60px 0; }
  .cta-buttons { width: 100%; }
  .cta-buttons .btn { flex: 1; justify-content: center; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Small phones */
@media (max-width: 480px) {
  :root { --header-h: 64px; }
  .header .logo img { height: 48px !important; }
  .container { padding: 0 14px; }
  .section { padding: 48px 0; }
  .hero { padding: calc(var(--header-h) + 32px) 0 40px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-social { flex-wrap: wrap; }
  .categories-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .gallery-grid, .project-gallery { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.6rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-num { font-size: 1.8rem; }
  .mvv-card, .three-s-card { padding: 28px 22px; }
  .calc-box { padding: 24px 16px; }
  .teklif-form { padding: 20px 14px; }
  .blog-body { padding: 18px; }
  .whatsapp-float { width: 46px; height: 46px; left: 12px; bottom: 12px; }
  .whatsapp-float svg { width: 20px; height: 20px; }
  .filter-btn { padding: 7px 16px; font-size: 0.8rem; }
  .footer-bottom { font-size: 0.72rem; }
  .lightbox-close { top: 12px; right: 12px; font-size: 1.6rem; }
}

/* Prevent iOS zoom on form focus */
@media (max-width: 768px) {
  .form-control, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], textarea, select {
    font-size: 16px !important;
  }
}

/* Images & media never overflow */
img, video, iframe { max-width: 100%; }

/* Long words / URLs don't break layout */
h1, h2, h3, h4, p, a, span { overflow-wrap: break-word; word-wrap: break-word; }
