/*
  R2P2 Site Styles
  This stylesheet defines a modern, slick design with support for light
  and dark themes. It uses CSS variables to easily toggle colors and
  ensures a responsive layout across devices.  Typography is set
  with the Inter font family.
*/

/* CSS Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background-color: var(--background);
  color: var(--foreground);
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* Theme Variables */
:root {
  /* Light theme */
  --background: #ffffff;
  --background-elevated: #f5f5f7;
  --foreground: #1f2a37;
  --primary: #0d6efd;
  --secondary: #6c63ff;
  --accent: #00c49a;
  --border: #e5e7eb;
  --shadow: rgba(0, 0, 0, 0.05);
}

body.dark {
  /* Dark theme overrides */
  --background: #0e1525;
  --background-elevated: #17223b;
  --foreground: #f5f5f7;
  --primary: #3d8bff;
  --secondary: #7e6bff;
  --accent: #00c49a;
  --border: #24314e;
  --shadow: rgba(0, 0, 0, 0.25);
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
  color: var(--foreground);
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--foreground);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

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

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

.btn-secondary {
  background-color: var(--background-elevated);
  color: var(--primary);
  border: 1px solid var(--primary);
}

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

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--shadow);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links a {
  margin: 0 1rem;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
}

.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme toggle switch */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}
.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.theme-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: 0.4s;
  border-radius: 24px;
}
.theme-switch .slider:before {
  position: absolute;
  content: '';
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: var(--background);
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 1px 3px var(--shadow);
}
.theme-switch input:checked + .slider {
  background-color: var(--primary);
}
.theme-switch input:checked + .slider:before {
  transform: translateX(24px);
}

/* Hero */
.hero {
  padding: 6rem 0 3rem;
  background-image: linear-gradient(
    135deg,
    var(--background-elevated) 0%,
    var(--background) 60%,
    var(--background-elevated) 100%
  );
}

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

.hero-text {
  flex: 1 1 55%;
}

.hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}
.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--foreground);
  max-width: 600px;
}
.hero-actions .btn {
  margin-right: 1rem;
}

.hero-image {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-svg {
  width: 100%;
  max-width: 300px;
}

/* Features Section */
.features {
  padding: 5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background-color: var(--background-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 4px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px var(--shadow);
}
.feature-icon {
  color: var(--primary);
  margin-bottom: 1rem;
}
.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}
.feature-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Solutions Section */
.solutions {
  padding: 5rem 0;
  background-color: var(--background-elevated);
}
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.solution-card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px var(--shadow);
}
.solution-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
}
.solution-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* About Section */
.about {
  padding: 5rem 0;
}
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.about-text {
  flex: 1 1 55%;
}
.about-image {
  flex: 1 1 35%;
  text-align: center;
}
.about-logo { max-width: 520px;
  margin: 0 auto;
}
.about h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.about p {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1rem;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: var(--background-elevated);
}
.contact-content {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Booking Section */
.booking-section {
  padding: 5rem 0;
  background-color: var(--background);
}

.booking-section .contact-content {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.contact-form {
  margin-top: 2rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--background);
  color: var(--foreground);
  resize: vertical;
  font-size: 0.95rem;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.form-status {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.newsletter-form input {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--background);
  color: var(--foreground);
}
.newsletter-status {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background-color: var(--background);
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--border);
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.footer-column {
  flex: 1 1 30%;
  min-width: 200px;
}
.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}
.footer-column p,
.footer-column a {
  font-size: 0.95rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  display: block;
}
.footer-column a:hover {
  color: var(--primary);
}
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--foreground);
  opacity: 0.8;
}

/* Responsive typography */
@media screen and (min-width: 768px) {
  .hero-text h1 {
    font-size: 3rem;
  }
  .section-title {
    font-size: 2.6rem;
  }
  .about h2 {
    font-size: 2.4rem;
  }
}

/* Subtle scroll animations */
[data-scroll] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scrolled {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
/* Round theme buttons (replace switch) */
.theme-round{display:flex;gap:8px;align-items:center;justify-content:flex-end}
.theme-btn{width:34px;height:34px;border-radius:999px;border:1px solid var(--border);background:var(--background-elevated);color:var(--foreground);cursor:pointer}
.theme-btn[aria-pressed="true"]{border-color:var(--primary);box-shadow:0 0 0 3px rgba(99,102,241,.25)}

/* Kill browser autofill yellow */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--foreground) !important;
  -webkit-box-shadow: 0 0 0px 1000px var(--background) inset !important;
  box-shadow: 0 0 0px 1000px var(--background) inset !important;
  transition: background-color 5000s ease-in-out 0s;
}
body.dark input:-webkit-autofill,
body.dark textarea:-webkit-autofill,
body.dark select:-webkit-autofill {
  -webkit-text-fill-color: var(--foreground) !important;
  -webkit-box-shadow: 0 0 0px 1000px var(--background) inset !important;
  box-shadow: 0 0 0px 1000px var(--background) inset !important;
}
.timeslots{display:flex;flex-wrap:wrap;gap:.5rem}
.timeslot{padding:.5rem .75rem;border:1px solid var(--border);border-radius:10px;background-color:var(--background);color:var(--foreground);cursor:pointer;font-size:.9rem}
.timeslot:hover{border-color:var(--primary)}
.timeslot.selected{background-color:var(--primary);color:#fff;border-color:var(--primary)}


/* Hero logo sizing */
.hero-image img{max-width:260px; width:100%; height:auto; display:block; margin:0 auto;}

.fi{width:28px;height:28px;}
.feature-icon{color:var(--primary);display:flex;align-items:center;justify-content:center;}

/* Make selects full-width like inputs */
.contact-form select{width:100%;display:block;}

#bookingService{width:100%;display:block;}

.hero-image .hero-svg, .hero-image .hero-logo, .hero-image img{max-width:360px;width:100%;height:auto;display:block;}


/* Select styling to match inputs */
.contact-form select,
#bookingService,
select{
  width: 100%;
  display: block;
  background-color: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.contact-form select:focus,
#bookingService:focus,
select:focus{
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
