:root {
  --primary: #de8845;
  --dark: #1f1f29;
  --light: #f5f5f7;
  --text: #3a3a47;
  --accent: #1d7a85;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, blinkmacsystemfont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  z-index: 10;
  border-bottom: 1px solid #f0f0f0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--dark);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-name {
  margin: 0;
  font-weight: 600;
}

.brand-tagline {
  margin: 0;
  font-size: 0.875rem;
  color: #7a7a8c;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 500;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text);
}

.nav-login {
  margin-left: 0.5rem;
}

.login-section {
  padding: 3rem 0 1rem;
  background: #f8f8fb;
}

.login-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: start;
}

.login-card,
.login-info {
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid #ececec;
  box-shadow: 0 25px 60px rgba(31, 31, 41, 0.05);
}

.login-card h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--dark);
  font-size: 1.5rem;
}

.login-card label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.login-card input {
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-family: inherit;
}

.login-card input:focus {
  outline: 2px solid var(--primary);
}

.auth-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.remember {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-weight: 500;
}

.auth-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: #e0e0e0;
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.google-btn {
  width: 100%;
  justify-content: center;
  border: 1px solid #d4d4d4;
  background: #fff;
  color: var(--text);
}

.google-btn img {
  width: 20px;
  height: 20px;
}

.login-info h3 {
  margin-top: 0;
  color: var(--dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn.primary {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

.btn.primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.btn.ghost {
  border-color: #dcdcdc;
  color: var(--dark);
}

.btn.google-btn {
  width: 100%;
  justify-content: center;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  transition: all 0.2s ease;
}

.btn.google-btn:hover {
  background: #f8f8f8;
  border-color: #bbb;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn.small {
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
}

.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, #fff 0%, #f9f3ef 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin: 0.5rem 0 1.5rem;
  color: var(--dark);
}

.hero h1 span {
  color: var(--primary);
}

.lead {
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 1.5rem;
  color: #555;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-metrics {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.metric {
  font-size: 2rem;
  color: var(--dark);
  margin: 0;
  font-weight: 700;
}

.metric-label {
  margin: 0;
  color: #6b6b7a;
}

.hero-card {
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(31, 31, 41, 0.1);
}

.card-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 0;
}

.card-foot {
  font-size: 0.9rem;
  color: #6c6c7f;
}

.section {
  padding: 4rem 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-head.light {
  color: #fff;
}

.section-head h2 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--dark);
}

.section-head.light h2 {
  color: #fff;
}

.service-grid,
.feature-grid,
.portfolio-grid,
.testimonial-grid {
  display: grid;
  gap: 1.5rem;
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  border: 1px solid #eee;
  border-radius: 20px;
  padding: 1.8rem;
  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.card h3 {
  margin-top: 0;
  color: var(--dark);
}

.card ul {
  padding-left: 1.2rem;
  margin: 0;
  color: #5e5e6b;
}

.card .btn {
  margin-top: 1.2rem;
}

.accent {
  background: var(--dark);
  color: #fff;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 2rem;
}

.feature-grid article {
  padding: 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Featured Products Section */
.featured-products {
  background: linear-gradient(180deg, #f9f9fb 0%, #fff 100%);
  padding: 4rem 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.featured-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.featured-image {
  position: relative;
  height: 100%;
  min-height: 400px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-image img {
  transform: scale(1.1);
}

.featured-content {
  padding: 3rem;
}

.featured-content h3 {
  font-size: 2rem;
  color: var(--dark);
  margin: 0 0 1rem 0;
}

.featured-content p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.feature-list li {
  padding: 0.5rem 0;
  color: var(--text);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  
  .featured-image {
    min-height: 300px;
  }
  
  .featured-content {
    padding: 2rem;
  }
  
  .featured-content h3 {
    font-size: 1.5rem;
  }
}

.portfolio-section {
  background: linear-gradient(180deg, #fff 0%, #f9f9fb 100%);
}

.portfolio-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.portfolio-card h3 {
  margin: 1rem 0 0.5rem 0;
  color: var(--dark);
  font-size: 1.2rem;
}

.portfolio-card p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

.portfolio-image {
  overflow: hidden;
  position: relative;
  min-height: 250px;
  border-radius: 16px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  min-height: 250px;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.portfolio-card:hover .portfolio-image::after {
  opacity: 1;
}

.portfolio-card {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #1d7a85, #4bb5b4);
  color: #fff;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-card:nth-child(2) {
  background: linear-gradient(135deg, #c15892, #f3a68b);
}

.portfolio-card:nth-child(3) {
  background: linear-gradient(135deg, #4950c5, #8295ff);
}

.portfolio-card .label {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.testimonials {
  background: var(--light);
}

.testimonial-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.testimonial-grid article {
  background: #fff;
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid #eee;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.author {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--dark);
}

.order {
  background: #fbfbff;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.order-info {
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid #ececec;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.checklist li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #fff;
  border-color: #ececec;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.04);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  border-radius: 12px;
  border: none;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid var(--primary);
}

.contact-form .btn {
  align-self: flex-start;
}

.file-label input[type="file"] {
  padding: 0.5rem 0;
  border: none;
}

.form-note {
  font-size: 0.85rem;
  color: #6b6b7a;
  margin: 0;
}

.login-guard {
  background: #fff5ec;
  border: 1px solid #ffd9b6;
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.login-guard strong {
  font-size: 1.1rem;
  color: var(--dark);
}

.login-guard a {
  color: var(--primary);
  font-weight: 600;
}

.locked {
  position: relative;
}

.locked::after {
  content: "Login untuk mengisi formulir";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--dark);
  border-radius: 20px;
}

.confirmation {
  background: linear-gradient(180deg, #fff 0%, #eef2ff 100%);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.timeline-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid #e1e6ff;
  box-shadow: 0 20px 50px rgba(73, 80, 197, 0.08);
}

.timeline-card h3 {
  margin-top: 0.8rem;
  color: var(--dark);
}

.timeline-card p {
  margin-bottom: 0;
  color: #606080;
}

.step {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(73, 80, 197, 0.2);
}

.contact {
  background: #11111a;
  color: #fbfbfb;
}

.contact .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.contact-info {
  line-height: 1.8;
}

.contact-info h2 {
  color: #fff;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.contact-list li + li {
  margin-top: 0.4rem;
}

.contact-list a {
  color: #ffd5b5;
}

.contact-hours {
  margin-top: 1rem;
  color: #d1d1db;
}

.contact .contact-form {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.contact .contact-form input,
.contact .contact-form textarea {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact .contact-form input::placeholder,
.contact .contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact .contact-form input:focus,
.contact .contact-form textarea:focus {
  outline: 2px solid #ffd5b5;
}

.site-footer {
  background: #08080f;
  color: #b3b3c3;
  text-align: center;
  padding: 1.5rem 0 2rem;
  font-size: 0.95rem;
}

/* New Styles for PHP pages */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.alert-error {
  background: #fee;
  border: 1px solid #fcc;
  color: #c33;
}

.alert-success {
  background: #efe;
  border: 1px solid #cfc;
  color: #3c3;
}

.order-form {
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid #ececec;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.04);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group small {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pesanan-list {
  display: grid;
  gap: 1.5rem;
}

.pesanan-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pesanan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.pesanan-header h3 {
  margin: 0;
  color: var(--dark);
}

.pesanan-layanan {
  color: #666;
  font-size: 0.95rem;
  margin: 0.25rem 0 0 0;
}

.badge {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge.pending {
  background: #fff3cd;
  color: #856404;
}

.badge.info {
  background: #d1ecf1;
  color: #0c5460;
}

.badge.warning {
  background: #ffeaa7;
  color: #d68910;
}

.badge.success {
  background: #d4edda;
  color: #155724;
}

.badge.danger {
  background: #f8d7da;
  color: #721c24;
}

.pesanan-body {
  margin-top: 1rem;
}

.pesanan-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pesanan-detail p {
  margin: 0;
  font-size: 0.95rem;
}

.pesanan-keterangan {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.pesanan-keterangan strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #eee;
}

.empty-state h3 {
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #666;
  margin-bottom: 1.5rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #eee;
    gap: 0.5rem;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 0.75rem;
    width: 100%;
    text-align: center;
  }

  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: -1;
  }

  .section {
    padding: 2rem 0;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact .container {
    grid-template-columns: 1fr;
  }

  .order-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .pesanan-header {
    flex-direction: column;
    align-items: stretch;
  }

  .pesanan-detail {
    grid-template-columns: 1fr;
  }

  .login-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-head h2 {
    font-size: 1.75rem;
  }

  .card {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-image {
    min-height: 200px;
  }
}

