/* Global styles for Bake Kao — aesthetic + interactive */
:root{
  --bg:#f5ece6; /* warm beige from brochure background */
  --surface:#ffffff;
  --text:#2a1f1a;
  --muted:#6b5d54;
  --primary:#8b5a3c; /* warm brown from brochure text */
  --primary-600:#6f4730;
  --primary-50:#f7ede5;
  --accent:#e8d5c4;
  --border:#d9c9ba;
  --shadow:0 10px 30px rgba(139,90,60,.14);
  --shadow-lg:0 20px 50px rgba(139,90,60,.18);
  --radius:14px;
  --radius-sm:10px;
}

*{box-sizing:border-box}
html,body{padding:0;margin:0}
body{
  font-family:Lora,Georgia,serif;
  color:var(--text);
  background:linear-gradient(180deg,#f5ece6, #ede2d8 40%, #f5ece6 100%);
  background-image:
    linear-gradient(180deg,#f5ece6, #ede2d8 40%, #f5ece6 100%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='10' y='50' font-size='32' opacity='0.03'%3E🎂%3C/text%3E%3C/svg%3E");
  background-size: cover, 80px 80px;
  line-height:1.65;
}
.container{max-width:1240px;margin:0 auto;padding:0 1.5rem}

/* Modern Header */
.site-header{
  position:sticky;
  top:0;
  background:rgba(255,255,255,.95);
  backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid var(--border);
  z-index:40;
  box-shadow:0 2px 10px rgba(139,90,60,.06);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1.2rem 0;
  gap:2rem;
}
.logo{
  font-family:Lora,Georgia,serif;
  font-size:1.8rem;
  color:var(--primary);
  text-decoration:none;
  font-weight:700;
  letter-spacing:-.5px;
  transition:transform .2s ease;
}
.logo:hover{transform:scale(1.05)}
.nav-links{
  display:flex;
  gap:.8rem;
  list-style:none;
  margin:0;
  padding:0;
  align-items:center;
  flex-wrap:wrap;
}
.nav-links a{
  color:var(--text);
  text-decoration:none;
  padding:.7rem 1.1rem;
  border-radius:999px;
  font-weight:500;
  transition:all .2s ease;
  display:inline-block;
}

/* Nav button styling (Gallery, Pricing, About) */
.nav-btn{
  background:var(--surface);
  border:1px solid var(--border);
  box-shadow:0 2px 6px rgba(139,90,60,.08);
}
.nav-btn:hover{
  background:var(--primary-50);
  border-color:var(--primary);
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(139,90,60,.15);
}

.nav-links a:hover{
  transform:translateY(-1px);
}

/* Modern Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.8rem 1.3rem;
  border-radius:999px;
  border:1px solid var(--border);
  transition:all .2s ease;
  font-weight:600;
  background:var(--surface);
  cursor:pointer;
  text-decoration:none;
  font-size:.95rem;
  white-space:nowrap;
}
.btn:hover{
  box-shadow:var(--shadow);
  transform:translateY(-2px);
  border-color:var(--primary);
}
.btn:active{transform:translateY(0)}
.btn-primary{
  background:var(--primary);
  color:#fff;
  border-color:var(--primary);
}
.btn-primary:hover{
  background:var(--primary-600);
  box-shadow:var(--shadow-lg);
}
.chip{
  display:inline-block;
  padding:.4rem .85rem;
  border-radius:999px;
  background:var(--primary-50);
  color:var(--primary-600);
  font-weight:600;
  font-size:.9rem;
  border:1px solid var(--border);
}

h1,h2,h3{font-family:Lora,Georgia,serif;color:#151515;line-height:1.3;font-weight:700}
h1{font-size:clamp(2.4rem,6vw,3.5rem);letter-spacing:-.5px}
h2{
  font-size:clamp(1.8rem,4.5vw,2.4rem);
  letter-spacing:-.5px;
  margin-bottom:1.5rem;
}
.muted{color:var(--muted)}
.small{font-size:.95rem}

/* Hero and sections */
.hero{display:grid;grid-template-columns:1.05fr .95fr;gap:2.5rem;align-items:center;padding:3rem 0}
.hero-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:2rem;
  box-shadow:var(--shadow);
}
.hero img{width:100%;border-radius:var(--radius);border:1px solid var(--border)}
.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1rem}
.kpi{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  padding:1rem;
  text-align:center;
  transition:transform .2s ease,box-shadow .2s ease;
}
.kpi:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}
.kpi strong{font-size:1.1rem}

/* Grids and cards */
.grid{display:grid;gap:1.5rem}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(350px,1fr))}
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.8rem;
  box-shadow:var(--shadow);
  transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease;
  position:relative;
  overflow:hidden;
}
.card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background:linear-gradient(90deg,var(--primary),var(--accent));
  opacity:0;
  transition:opacity .3s ease;
}
.card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-lg);
  border-color:var(--primary);
}
.card:hover::before{opacity:1}
.card img{display:block;width:100%;height:auto;border-radius:12px;border:1px solid var(--border)}
.card h3{
  margin-top:0;
  margin-bottom:.8rem;
  font-size:1.4rem;
  color:var(--primary);
}

.section{padding:3rem 0}
.section .section-title{margin-bottom:1.5rem}

/* Modern Footer */
.site-footer{
  margin-top:5rem;
  border-top:1px solid var(--border);
  padding:3rem 0 2rem;
  background:var(--surface);
}
.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:3rem;
  align-items:start;
}
.footer-grid h3{
  font-size:1.1rem;
  margin-bottom:1rem;
  color:var(--primary);
}
.footer-grid p{
  margin:.5rem 0;
  color:var(--muted);
}
.footer-grid a{
  color:var(--primary);
  text-decoration:none;
  font-weight:600;
  transition:color .2s ease;
}
.footer-grid a:hover{
  color:var(--primary-600);
  text-decoration:underline;
}

/* Reveal animations */
.reveal{opacity:0;transform:translateY(20px);transition:opacity .6s ease, transform .6s ease}
.reveal.in{opacity:1;transform:none}

/* FAQ styling */
details{
  margin-bottom:.8rem;
  padding:1rem;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--surface);
  transition:all .2s ease;
}
details:hover{
  border-color:var(--primary);
  box-shadow:var(--shadow);
}
details summary{cursor:pointer;font-weight:600;padding:.5rem;list-style:none}
details summary::-webkit-details-marker{display:none}
details summary::before{content:'▸ ';display:inline-block;transition:transform .2s ease;color:var(--primary)}
details[open] summary::before{transform:rotate(90deg)}
details p{margin:.5rem 0 0 1.2rem}

/* Pricing page specific styles */
.price{
  font-size:2rem;
  font-weight:700;
  color:var(--primary);
  margin:.8rem 0 1.2rem;
  letter-spacing:-.5px;
}
.pricing-details{
  font-size:.95rem;
  line-height:1.7;
}
.pricing-details p{
  margin:.9rem 0;
}
.pricing-details strong{
  color:var(--text);
  font-weight:600;
  font-size:1rem;
}
.pricing-details ul{
  margin:.5rem 0 1rem 1.2rem;
  padding:0;
}
.pricing-details ul li{
  margin:.4rem 0;
  color:var(--muted);
}
.pricing-details ul li::marker{
  color:var(--primary);
}

@media (max-width:900px){
  .hero{grid-template-columns:1fr}
  .kpis{grid-template-columns:1fr 1fr}
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  /* Keep footer as 2 columns on mobile - just adjust ratio */
  .footer-grid{grid-template-columns:1fr 1fr;gap:1rem}
  
  /* Header/Nav fixes */
  .site-header{
    padding:.5rem 0;
  }
  .nav{
    padding:.5rem 0;
    gap:.8rem;
    flex-wrap:nowrap;
  }
  .nav-links{
    gap:.3rem;
    flex-wrap:nowrap;
  }
  .nav-links a{
    padding:.5rem .6rem;
    font-size:.75rem;
    white-space:nowrap;
  }
  .nav-btn{
    border:1px solid var(--border);
  }
  .btn-primary{
    padding:.5rem .7rem;
    font-size:.75rem;
  }
  .logo{
    font-size:1.3rem;
    white-space:nowrap;
  }
  
  .container{
    padding:0 1rem;
  }
  .section{
    padding:2rem 0;
  }
  
  /* Fix header/footer text slicing */
  h1{
    font-size:clamp(1.8rem, 8vw, 2.5rem);
    line-height:1.2;
  }
  h2{
    font-size:clamp(1.4rem, 6vw, 2rem);
    line-height:1.3;
  }
  h3{
    font-size:clamp(1.1rem, 5vw, 1.4rem);
  }
  
  /* Responsive text */
  p, .muted{
    font-size:.95rem;
    line-height:1.6;
  }
  
  /* Fix footer overflow */
  .site-footer{
    padding:1.5rem 0 1rem;
  }
  .footer-grid h3{
    font-size:.95rem;
    margin-bottom:.5rem;
  }
  .footer-grid p{
    font-size:.85rem;
    line-height:1.5;
    margin:.4rem 0;
  }
  .footer-grid a{
    word-break:break-word;
    font-size:.85rem;
  }
  
  /* Fix card padding */
  .card{
    padding:1.2rem;
  }
  .hero-card{
    padding:1.5rem;
  }
  
  /* Fix button sizing */
  .btn{
    padding:.7rem 1rem;
    font-size:.85rem;
  }
  
  /* Fix price display */
  .price{
    font-size:1.6rem;
  }
  
  /* Fix carousel/slider on mobile */
  .pricing-details{
    font-size:.9rem;
  }
  
  /* Improve readability */
  body{
    font-size:.95rem;
  }
}

/* Extra small devices (phones in portrait) */
@media (max-width:480px){
  .container{
    padding:0 .8rem;
  }
  
  .nav{
    gap:.5rem;
    flex-wrap:nowrap;
  }
  
  .logo{
    font-size:1.1rem;
  }
  
  .nav-links{
    gap:.25rem;
    flex-wrap:nowrap;
  }
  
  .nav-links a{
    padding:.45rem .5rem;
    font-size:.7rem;
  }
  
  .btn-primary{
    padding:.45rem .6rem;
    font-size:.7rem;
  }
  
  h1{
    font-size:1.6rem;
  }
  
  h2{
    font-size:1.3rem;
  }
  
  .card{
    padding:1rem;
  }
  
  .btn{
    padding:.6rem .8rem;
    font-size:.8rem;
  }
  
  /* Fix kpis on very small screens */
  .kpis{
    grid-template-columns:1fr;
    gap:.8rem;
  }
  
  /* Better spacing */
  .section{
    padding:1.5rem 0;
  }
  
  /* Compact footer on very small screens */
  .site-footer{
    padding:1.2rem 0 .8rem;
  }
  
  /* Keep 2 columns, just smaller text */
  .footer-grid h3{
    font-size:.9rem;
    margin-bottom:.4rem;
  }
  
  .footer-grid p{
    font-size:.8rem;
    line-height:1.4;
    margin:.3rem 0;
  }
  
  .footer-grid a{
    font-size:.8rem;
  }
  
  .footer-grid .small{
    font-size:.75rem;
  }
}

@media (min-width:901px) and (max-width:1200px){
  .container{max-width:960px}
}

/* Modern Date & Time Picker Styling */
input[type="date"],
input[type="time"] {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Style the calendar icon for date inputs */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 12px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  filter: invert(0.4) sepia(1) saturate(3) hue-rotate(0deg);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Firefox */
input[type="date"]::-moz-calendar-picker-indicator,
input[type="time"]::-moz-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

input[type="date"]::-moz-calendar-picker-indicator:hover,
input[type="time"]::-moz-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Style for date text */
input[type="date"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit {
  padding: 0;
  color: var(--text);
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="time"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

/* Individual date segments */
input[type="date"]::-webkit-datetime-edit-text,
input[type="time"]::-webkit-datetime-edit-text {
  color: var(--muted);
  padding: 0 0.2rem;
}

input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field,
input[type="time"]::-webkit-datetime-edit-hour-field,
input[type="time"]::-webkit-datetime-edit-minute-field,
input[type="time"]::-webkit-datetime-edit-ampm-field {
  padding: 0.2rem 0.3rem;
  border-radius: 6px;
  color: var(--text);
  font-weight: 500;
}

input[type="date"]::-webkit-datetime-edit-month-field:focus,
input[type="date"]::-webkit-datetime-edit-day-field:focus,
input[type="date"]::-webkit-datetime-edit-year-field:focus,
input[type="time"]::-webkit-datetime-edit-hour-field:focus,
input[type="time"]::-webkit-datetime-edit-minute-field:focus,
input[type="time"]::-webkit-datetime-edit-ampm-field:focus {
  background: var(--primary-50);
  color: var(--primary);
  outline: none;
}

/* Placeholder styling when empty */
input[type="date"]:not(:focus):invalid,
input[type="time"]:not(:focus):invalid {
  color: var(--muted);
}

/* React DatePicker Custom Styling - 2025 Aesthetic */
.datepicker-wrapper {
  width: 100%;
}

.custom-datepicker {
  width: 100%;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 1rem;
  font-family: Lora, Georgia, serif;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text);
}

.custom-datepicker:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 90, 60, 0.1);
}

.custom-datepicker::placeholder {
  color: var(--muted);
}

/* Calendar Popup Styling */
.react-datepicker {
  font-family: Lora, Georgia, serif;
  border: 2px solid var(--primary);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(139, 90, 60, 0.2);
  overflow: hidden;
  background: var(--surface);
}

.react-datepicker__header {
  background: linear-gradient(135deg, var(--primary-50), var(--accent));
  border-bottom: 2px solid var(--primary);
  padding: 1rem;
  border-radius: 0;
}

.react-datepicker__current-month {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.react-datepicker__day-name {
  color: var(--primary);
  font-weight: 600;
  width: 2.5rem;
  line-height: 2.5rem;
  margin: 0.2rem;
}

.react-datepicker__day {
  width: 2.5rem;
  line-height: 2.5rem;
  margin: 0.2rem;
  border-radius: 8px;
  color: var(--text);
  transition: all 0.2s ease;
  cursor: pointer;
}

.react-datepicker__day:hover {
  background: var(--primary-50);
  color: var(--primary);
  transform: scale(1.05);
}

.react-datepicker__day--selected,
.react-datepicker__day--keyboard-selected {
  background: var(--primary);
  color: white;
  font-weight: 700;
  transform: scale(1.1);
}

.react-datepicker__day--selected:hover {
  background: var(--primary-600);
}

.react-datepicker__day--today {
  font-weight: 700;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.react-datepicker__day--disabled {
  color: var(--muted);
  opacity: 0.4;
  cursor: not-allowed;
}

.react-datepicker__day--disabled:hover {
  background: transparent;
  transform: none;
}

.react-datepicker__navigation {
  top: 1.2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.react-datepicker__navigation:hover {
  background: var(--primary-50);
}

.react-datepicker__navigation-icon::before {
  border-color: var(--primary);
  border-width: 2px 2px 0 0;
  width: 8px;
  height: 8px;
}

.react-datepicker__month {
  margin: 1rem;
}

.react-datepicker__triangle {
  display: none;
}

/* Mobile responsive */
@media (max-width: 900px) {
  .react-datepicker {
    font-size: 0.9rem;
  }
  
  .react-datepicker__day-name,
  .react-datepicker__day {
    width: 2.2rem;
    line-height: 2.2rem;
  }
}

/* ================================
   Modern 2025 Select Dropdown Styling
   ================================ */

.modern-select {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  border-radius: 16px;
  border: 2px solid var(--primary);
  background: var(--primary-50);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238b5a3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 20px;
  box-shadow: 0 1px 3px rgba(139, 90, 60, 0.05);
}

.modern-select:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(139, 90, 60, 0.1);
  transform: translateY(-1px);
}

.modern-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 90, 60, 0.1), 0 4px 16px rgba(139, 90, 60, 0.15);
  transform: translateY(-1px);
}

.modern-select:active {
  transform: translateY(0);
}

/* Modern select option styling (limited support but adds polish where possible) */
.modern-select option {
  padding: 0.75rem;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
}

.modern-select option:hover {
  background: var(--primary-50);
}

/* Label styling for modern selects */
.modern-select-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

