/* ============================================================
   Terracotta Minimal - Custom Styles
   Design: Warm Mediterranean, handcrafted pottery aesthetic
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --terracotta: #c67a4b;
  --terracotta-light: #d4956b;
  --terracotta-dark: #a85d32;
  --cream: #faf5f0;
  --cream-dark: #f5ede4;
  --sand: #e8d5c4;
  --clay-red: #b5452c;
  --dark-earth: #3c2415;
  --text-dark: #2a1a10;
  --text-medium: #5c3d2e;
  --text-light: #8c6c5a;
  --white: #fffefb;
  --shadow-sm: 0 2px 8px rgba(60, 36, 21, 0.06);
  --shadow-md: 0 4px 20px rgba(60, 36, 21, 0.10);
  --shadow-lg: 0 8px 40px rgba(60, 36, 21, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base & Typography ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #3c2415;
  background-color: #faf5f0;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #3c2415;
}

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(250, 245, 240, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 213, 196, 0.5);
  transition: all var(--transition);
  z-index: 1000;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-link {
  position: relative;
  color: #5c3d2e;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: #c67a4b;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: #c67a4b;
  border-radius: 2px;
  transition: transform var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ---------- Terracotta Sun (Hero) ---------- */
.terracotta-sun {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #d4956b 0%, #c67a4b 35%, #a85d32 100%);
  opacity: 0.55;
  filter: blur(2px);
}

.terracotta-sun::after {
  content: '';
  position: absolute;
  top: 60px;
  right: 80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #e8d5c4 0%, #d4956b 60%, transparent 100%);
  opacity: 0.5;
}

.organic-blob {
  position: absolute;
  border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
  background: rgba(232, 213, 196, 0.35);
  z-index: 0;
}

.blob-1 {
  width: 200px;
  height: 200px;
  top: 20%;
  left: -60px;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-2 {
  width: 140px;
  height: 140px;
  bottom: 15%;
  right: -30px;
  animation: blobFloat 6s ease-in-out infinite reverse;
}

.blob-3 {
  width: 100px;
  height: 100px;
  top: 55%;
  left: 10%;
  animation: blobFloat 7s ease-in-out 2s infinite;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(15px, -15px) scale(1.05); }
  50% { transform: translate(-5px, -20px) scale(0.95); }
  75% { transform: translate(-15px, -5px) scale(1.02); }
}

.hero-image {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(250, 245, 240, 0.9);
}

/* ---------- Feature Cards ---------- */
.feature-card {
  background: #fffefb;
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  border-top: 4px solid #c67a4b;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c67a4b, #d4956b, #a85d32);
  border-radius: 4px 4px 0 0;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: #a85d32;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(198, 122, 75, 0.12), rgba(165, 93, 50, 0.08));
  color: #c67a4b;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* ---------- Stats ---------- */
.stat-card {
  background: #fffefb;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  color: #c67a4b;
  line-height: 1.2;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fffefb;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid #c67a4b;
  transition: all var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-left-color: #a85d32;
}

.testimonial-card .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f5ede4;
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  background: #fffefb;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: #3c2415;
  transition: color var(--transition);
}

.faq-question:hover {
  color: #c67a4b;
}

.faq-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #c67a4b;
  color: #fffefb;
  font-size: 0.8rem;
  transition: all var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-indicator {
  background: #a85d32;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer-inner {
  color: #5c3d2e;
  line-height: 1.75;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, #c67a4b 0%, #a85d32 50%, #8b3a1f 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 254, 251, 0.06);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 254, 251, 0.04);
}

/* ---------- Footer ---------- */
.footer {
  background: #3c2415;
  color: #e8d5c4;
}

.footer h5 {
  color: #faf5f0;
  font-weight: 700;
  margin-bottom: 1.25rem;
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
}

.footer a {
  color: #d4956b;
  transition: color var(--transition);
  text-decoration: none;
}

.footer a:hover {
  color: #faf5f0;
}

.footer-bottom {
  border-top: 1px solid rgba(232, 213, 196, 0.15);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

/* ---------- Floating Elements ---------- */
.floating-cs {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c67a4b, #a85d32);
  color: #fffefb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(165, 93, 50, 0.4);
  cursor: pointer;
  z-index: 999;
  transition: all var(--transition);
  border: none;
}

.floating-cs:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(165, 93, 50, 0.5);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fffefb;
  color: #c67a4b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 999;
  border: 2px solid rgba(198, 122, 75, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #c67a4b;
  color: #fffefb;
  border-color: #c67a4b;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #c67a4b, #a85d32);
  color: #fffefb;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(165, 93, 50, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #a85d32, #8b3a1f);
  box-shadow: 0 6px 24px rgba(165, 93, 50, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #c67a4b;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
  border: 2px solid #c67a4b;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-outline:hover {
  background: #c67a4b;
  color: #fffefb;
}

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fffefb;
  color: #c67a4b;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
  background: #faf5f0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* ---------- Section Headers ---------- */
.section-tag {
  display: inline-block;
  background: rgba(198, 122, 75, 0.1);
  color: #c67a4b;
  padding: 0.35rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #3c2415;
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle {
  color: #8c6c5a;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- About Page ---------- */
.about-values-card {
  background: #fffefb;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition);
  border-bottom: 3px solid transparent;
}

.about-values-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: #c67a4b;
}

.about-team-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f5ede4;
}

/* ---------- Contact Page ---------- */
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid #e8d5c4;
  border-radius: var(--radius-md);
  background: #fffefb;
  color: #3c2415;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: #c67a4b;
  box-shadow: 0 0 0 4px rgba(198, 122, 75, 0.1);
}

.contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  color: #5c3d2e;
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-info-card {
  background: #fffefb;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
}

.contact-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(198, 122, 75, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c67a4b;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ---------- Mobile Hamburger ---------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #fffefb;
  box-shadow: -4px 0 30px rgba(60, 36, 21, 0.15);
  z-index: 2000;
  padding: 2rem;
  transition: right var(--transition);
}

.mobile-menu.open {
  right: 0;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(60, 36, 21, 0.4);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 2100;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #3c2415;
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

  .nav-links {
    display: none;
  }

  .terracotta-sun {
    width: 300px;
    height: 300px;
    top: -20px;
    right: -60px;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .hero-image {
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .terracotta-sun {
    width: 220px;
    height: 220px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .feature-card {
    padding: 1.5rem 1.25rem;
  }
}
