/* ==============================================================================
   CSS DIRECTIVES FOR DABEEB LAZAM MINERALS (JAPANESE MARKET)
   ============================================================================== */

:root {
  --primary: #0f1c3f;        /* Deep Corporate Blue */
  --primary-light: #182d61;
  --accent: #c5a880;         /* Metallic Sand Gold */
  --accent-hover: #b4966e;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --error: #ef4444;
  --success: #10b981;
  --border-color: #e2e8f0;
  --font-base: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.8;
  letter-spacing: 0.03em;
  overflow-x: hidden;
}

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

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

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

/* Typography helper */
.text-gradient {
  background: linear-gradient(135deg, #f3e5ab 0%, #c5a880 50%, #aa7c11 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 168, 128, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

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

.btn-primary-outline:hover {
  background-color: var(--accent);
  color: #000000;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem 0;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(15, 28, 63, 0.15);
  padding: 0.5rem 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  max-width: 250px;
}

.site-logo {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--accent);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-toggle .bar {
  width: 100%;
  height: 2.5px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: #ffffff;
  padding: 10rem 0 7rem;
  overflow: hidden;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 780px;
}

.badge {
  display: inline-block;
  background-color: rgba(197, 168, 128, 0.15);
  color: var(--accent);
  border: 1px solid rgba(197, 168, 128, 0.4);
  padding: 0.25rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

/* Trust Strip */
.trust-strip {
  display: flex;
  gap: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-num {
  font-family: 'Inter', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--accent);
}

.trust-lbl {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Sections Base */
.section {
  padding: 6.5rem 0;
}

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

.section-header {
  max-width: 700px;
  margin: 0 auto 4.5rem;
}

.sub-title {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.section-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

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

/* Cards Base */
.card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(15, 28, 63, 0.05);
  border-color: rgba(197, 168, 128, 0.4);
}

/* Benefit Cards */
.card-img-wrapper {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-body {
  padding: 2rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--primary);
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* How It Works Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  width: 3px;
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-left: 100px;
  margin-bottom: 4rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-badge {
  position: absolute;
  left: 15px;
  top: 0;
  width: 53px;
  height: 53px;
  background-color: var(--primary);
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 5px var(--bg-white);
  z-index: 2;
}

.timeline-panel {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2rem;
  position: relative;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.timeline-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Services section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-white);
  border-left: 4px solid var(--accent);
  padding: 2rem;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.service-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

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

/* Testimonials */
.testimonial-card {
  padding: 2.5rem;
}

.quote-icon {
  font-family: 'Inter', sans-serif;
  font-size: 4rem;
  line-height: 1;
  color: rgba(197, 168, 128, 0.25);
  margin-bottom: -1.5rem;
}

.testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  position: relative;
}

.client-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--primary);
}

.client-info span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* About Us Layout */
.about-grid {
  display: grid;
  grid-template-columns: 4.5fr 7.5fr;
  gap: 3.5rem;
  align-items: center;
}

.about-image-wrapper {
  border-radius: 6px;
  overflow: hidden;
}

.about-img {
  width: 100%;
  object-fit: cover;
}

.about-content .section-title {
  margin-bottom: 1.5rem;
}

.about-paragraph {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.about-meta {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.about-meta p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

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

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.5rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-trigger::after {
  content: '+';
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  transition: var(--transition);
}

.faq-item.active .faq-trigger::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-panel {
  max-height: 1000px;
  transition: max-height 1s cubic-bezier(1, 0, 1, 0);
}

.faq-text {
  padding-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Lead Section & Form UI */
.lead-section {
  background-color: var(--primary);
  color: #ffffff;
  position: relative;
}

.lead-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.lead-title {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 1.5rem;
}

.lead-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.lead-perks {
  list-style: none;
  margin-bottom: 2.5rem;
}

.lead-perks li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

.lead-perks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}

.lead-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Form Styling */
.lead-form-box {
  background-color: var(--bg-white);
  border-radius: 6px;
  padding: 3rem;
  color: var(--text-dark);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

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

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--primary);
}

.form-group label .required {
  color: var(--error);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

.field-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-group input {
  margin-top: 0.35rem;
}

.checkbox-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.legal-inline-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 700;
}

/* Success and Error States */
.form-response {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-white);
  padding: 3rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 10;
}

.response-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.success-response {
  color: var(--primary);
}

.success-response .response-icon {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.error-response {
  color: var(--error);
}

.error-response .response-icon {
  background-color: rgba(239, 68, 110, 0.1);
  color: var(--error);
}

.form-response h4 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.form-response p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Footer Section */
.site-footer {
  background-color: #080f22;
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2rem;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  display: grid;
  grid-template-columns: 7.5fr 4.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 1.5rem;
}

.footer-contact-info p {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: #ffffff;
  font-weight: 700;
}

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

.footer-links-group h5 {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.85rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.back-to-top {
  font-weight: 700;
  color: var(--accent);
}

/* Cookie Notice Banner UI */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--primary);
  color: #ffffff;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(197, 168, 128, 0.3);
  z-index: 9999;
  display: none;
  animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner-content p {
  flex: 1;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-link {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
}

.btn-cookie-accept {
  background-color: var(--accent);
  color: #000000;
  border: none;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
}

.btn-cookie-decline {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
}

.btn-cookie-accept:hover {
  background-color: var(--accent-hover);
}

.btn-cookie-decline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ==============================================================================
   RESPONSIVE LAYOUT MEDIA QUERIES
   ============================================================================== */

@media (max-width: 1024px) {
  .grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-image-wrapper {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  /* Header navigation adaptation */
  .mobile-toggle {
    display: flex;
  }
  
  .main-nav {
    position: fixed;
    top: 73px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 73px);
    background-color: var(--primary);
    flex-direction: column;
    padding: 3rem;
    transition: var(--transition);
    z-index: 999;
  }
  
  .main-nav.active {
    left: 0;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  
  .nav-links a {
    font-size: 1.2rem;
  }
  
  .header-actions {
    display: none;
  }
  
  /* Hero typography */
  .hero-title {
    font-size: 2rem;
  }
  
  /* Grid conversions */
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .lead-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-badge {
    left: -5px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
}

@media (max-width: 480px) {
  .grid-3col {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .lead-form-box {
    padding: 1.5rem;
  }
}