/* =============================================
   Just Lucky Artisans — Stylesheet
   ============================================= */

/* --- Custom Properties --- */
:root {
  --color-primary: #1B3A4B;
  --color-accent: #D4A84B;
  --color-bg: #F8F6F2;
  --color-text: #333;
  --color-text-light: #666;
  --color-white: #fff;
  --color-border: #e0ddd8;
  --font-stack: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul {
  list-style: none;
}

/* --- Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.text-center {
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

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

.btn-primary:hover {
  background: #c4982f;
  color: var(--color-primary);
}

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

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

.btn-outline-dark {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

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

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
}

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

.logo:hover {
  opacity: 0.9;
}

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

.nav-link {
  color: var(--color-white);
  font-weight: 500;
  padding: 0.25rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

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

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

/* --- Hero --- */
.hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

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

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4rem 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.15rem;
  opacity: 0.85;
}

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

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -2.5rem -2rem 1.5rem;
  width: calc(100% + 4rem);
  max-width: calc(100% + 4rem);
}

.card p {
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
}

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

.feature {
  text-align: center;
  padding: 2rem 1.5rem;
}

.feature-icon {
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.feature h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--color-text-light);
}

/* --- Testimonials --- */
.testimonial {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-accent);
}

.testimonial blockquote {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
  color: var(--color-primary);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--color-accent);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: var(--color-primary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  opacity: 0.85;
}

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

.cta-banner .btn-primary:hover {
  background: #142d3b;
}

/* --- Service Detail Sections --- */
.service-detail {
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-border);
}

.service-detail:last-of-type {
  border-bottom: none;
}

.service-detail h2 {
  color: var(--color-primary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.service-detail p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.service-list {
  margin-bottom: 2rem;
}

.service-list li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text);
}

.service-list li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: 700;
  position: absolute;
  left: 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.step {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.step h4 {
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery-grid-small {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.service-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-grid-small .service-img {
  height: 150px;
}

/* --- About Page --- */
.about-story {
  max-width: 800px;
  margin: 0 auto;
}

.about-story h2 {
  color: var(--color-primary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about-story p {
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.value-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.value-icon {
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.value-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--color-text-light);
}

/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.contact-form h2 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-stack);
  font-size: 1rem;
  transition: border-color var(--transition);
  background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

#turnstile-widget {
  min-height: 65px;
}

.form-status-success {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
  font-weight: 500;
}

.form-status-error {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: #fbe9e7;
  border: 1px solid #ef9a9a;
  color: #c62828;
  font-weight: 500;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-sidebar {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
}

.contact-sidebar h3 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.contact-info-item {
  margin-bottom: 1.5rem;
}

.contact-info-item h4 {
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  color: var(--color-text-light);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer-col h3 {
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-col p {
  opacity: 0.8;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  padding: 0.25rem 0;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--color-accent);
}

/* --- Social Links --- */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-links a {
  display: inline-block;
  padding: 0.25rem 0;
}

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

/* --- Showcase Carousel --- */
.showcase-section {
  background: var(--color-white);
}

.showcase-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.showcase-track {
  display: flex;
  transition: transform 0.4s ease;
}

.showcase-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.showcase-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
}

.showcase-prev,
.showcase-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(27, 58, 75, 0.6);
  color: var(--color-white);
  border: none;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.showcase-prev { left: 1rem; }
.showcase-next { right: 1rem; }

.showcase-prev:hover,
.showcase-next:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

.showcase-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.showcase-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition);
}

.showcase-dot.active {
  background: var(--color-accent);
}

/* --- Responsive: Tablet (768px) --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .cards-grid,
  .features-grid,
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .showcase-img {
    height: 350px;
  }
}

/* --- Responsive: Mobile (480px) --- */
@media (max-width: 480px) {
  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .section {
    padding: 3rem 0;
  }

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

  .cards-grid,
  .features-grid,
  .values-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .showcase-img {
    height: 250px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }
}
