/* Babacan Plaza — Handify-inspired theme */
:root {
  --primary-dark: #1a5f4a;
  --primary: #228b6e;
  --primary-light: #2ecc71;
  --accent: #f39c12;
  --accent-hover: #e67e22;
  --text-dark: #1e2d2a;
  --text-muted: #5c6b66;
  --bg-light: #f4f7f6;
  --bg-section: #eef5f2;
  --white: #ffffff;
  --shadow: 0 8px 30px rgba(26, 95, 74, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-dark);
  line-height: 1.65;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-light);
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
}

.site-header.scrolled {
  position: fixed;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.nav-main {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-header.scrolled .nav-main a,
.site-header.inner-page .nav-main a {
  color: var(--text-dark);
}

.nav-main a.active {
  color: var(--accent);
}

.site-header.scrolled .nav-main a.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-link {
  position: relative;
  color: var(--white);
  font-size: 1.25rem;
}

.site-header.scrolled .cart-link,
.site-header.inner-page .cart-link {
  color: var(--primary-dark);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #27ae60);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.45);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-dark);
}

.btn-green {
  background: var(--primary);
  color: var(--white);
}

.btn-green:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.site-header.scrolled .menu-toggle,
.site-header.inner-page .menu-toggle {
  color: var(--primary-dark);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f3d32 0%, var(--primary-dark) 45%, #1e7a5c 100%);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 0 4rem;
}

.hero::before {
  content: "";
  position: absolute;
  width: 55%;
  height: 120%;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(46, 204, 113, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 1.25rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-wrap img {
  width: min(420px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--primary-dark);
  margin: 0 0 0.75rem;
}

.section-title p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.bg-light {
  background: var(--bg-light);
}

.bg-green {
  background: var(--primary-dark);
  color: var(--white);
}

/* About block */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-images img {
  border-radius: var(--radius-lg);
  object-fit: cover;
  height: 220px;
  width: 100%;
}

.about-images img:first-child {
  grid-row: span 2;
  height: 100%;
  min-height: 360px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.check-list li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: 700;
}

/* CTA bar */
.cta-bar {
  background: var(--primary-dark);
  padding: 2.5rem 0;
}

.cta-bar .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-bar h3 {
  color: var(--white);
  margin: 0;
  font-size: 1.35rem;
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--primary-light);
  transition: transform 0.25s;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  margin: 0 0 0.75rem;
  color: var(--primary-dark);
}

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

.link-arrow {
  font-weight: 700;
  color: var(--primary);
}

/* Process */
.process-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.process-step {
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary-light);
  box-shadow: var(--shadow);
}

.process-step span {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 8px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process-center img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  margin: 0;
  color: var(--white);
}

.stat-item p {
  margin: 0.5rem 0 0;
  opacity: 0.9;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, var(--primary-dark));
  padding: 2rem 1rem 1rem;
  color: var(--white);
  font-weight: 700;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  text-align: center;
  background: var(--bg-section);
  border-radius: var(--radius);
  overflow: hidden;
  padding-bottom: 1.5rem;
}

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-card h4 {
  margin: 1rem 0 0.25rem;
  color: var(--primary-dark);
}

.team-card span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pricing-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.pricing-body {
  padding: 2rem;
}

.pricing-card .price {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 800;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.pricing-card ul li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
  font-size: 0.95rem;
}

.pricing-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-light);
}

/* Testimonial + form */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 480px;
}

.contact-quote {
  background: var(--primary);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.contact-form-wrap {
  background: var(--white);
  padding: 3rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #dde5e2;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 139, 110, 0.15);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #e74c3c;
}

.field-error {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}

.field-error.visible {
  display: block;
}

.form-success {
  background: #d4edda;
  color: #155724;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
}

.form-success.visible {
  display: block;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-card img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-date {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

/* Subscribe bar */
.subscribe-bar {
  background: var(--primary-dark);
  padding: 2.5rem 0;
}

.subscribe-bar form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.subscribe-bar input {
  flex: 1;
  min-width: 220px;
  max-width: 400px;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: 50px;
}

/* Footer */
.site-footer {
  background: #0f3d32;
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.site-footer h4 {
  color: var(--white);
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: 0.6rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer a:hover {
  color: var(--primary-light);
}

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

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Page hero inner */
.page-hero {
  background: linear-gradient(135deg, #0f3d32, var(--primary-dark));
  padding: 8rem 0 4rem;
  text-align: center;
  color: var(--white);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.breadcrumb {
  opacity: 0.85;
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--primary-light);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-card img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}

.product-card-body {
  padding: 1.5rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

/* Cart */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cart-table th,
.cart-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.cart-table th {
  background: var(--bg-section);
  color: var(--primary-dark);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-control button {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
}

.cart-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-light);
  border-radius: var(--radius);
}

/* Legal content */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.legal-content h2 {
  color: var(--primary-dark);
  margin-top: 2.5rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  color: var(--primary);
  margin-top: 1.75rem;
}

/* Service detail */
.detail-hero-img {
  border-radius: var(--radius-lg);
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin-bottom: 2rem;
}

.detail-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.sidebar-box {
  background: var(--bg-section);
  padding: 2rem;
  border-radius: var(--radius);
  position: sticky;
  top: 100px;
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid,
  .products-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-wrap {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
  }
  .menu-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow);
  }

  .nav-main.open {
    display: flex;
  }

  .nav-main.open a {
    color: var(--text-dark);
  }

  .hero-grid,
  .about-grid,
  .contact-split,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .products-grid,
  .pricing-grid,
  .blog-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .portfolio-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 6rem;
  }

  .cart-table {
    font-size: 0.85rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
