/* ==============================
   SERVICE CUTS - Main Stylesheet
   ============================== */

/* Root Theme Variables */
:root {
  --bg: #f7f7f8;
  --card: #ffffff;
  --accent: #111111;
  --accent-hover: #222222;
  --muted: #6b7280;
  --radius: 14px;
  --maxw: 1100px;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: #0f1724;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s;
}

a:hover {
  opacity: 0.8;
}

/* ==============================
   Layout
   ============================== */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px;
}

/* ==============================
   Utility Classes
   ============================== */
.text-muted {
  color: var(--muted);
}

.text-bold {
  font-weight: 700;
}

.text-small {
  font-size: 13px;
}

.section {
  margin-top: 28px;
}

.flex-center {
  display: flex;
  align-items: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flex-gap-sm {
  display: flex;
  gap: 8px;
  align-items: center;
}

.flex-gap-md {
  display: flex;
  gap: 12px;
}

/* ==============================
   Header Component
   ============================== */
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-tagline {
  font-size: 13px;
  color: var(--muted);
}

/* ==============================
   Navigation Buttons
   ============================== */
.cta-login {
  margin-left: 4px;
}

.cta-signup {
  margin-left: 4px;
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.cta-signup:hover {
  background: #f5f5f5;
}

/* ==============================
   Hero Section Components
   ============================== */
.btn-secondary {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e6e7e9;
  display: inline-block;
}

.btn-secondary:hover {
  background: #f5f5f5;
}

.hero-features {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.hero-feature {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eee;
}

/* ==============================
   Section Headers
   ============================== */
.section-subtitle {
  color: var(--muted);
}

.service-card-link {
  margin-top: 12px;
}

/* ==============================
   Pricing Card Components
   ============================== */
.price-description {
  color: var(--muted);
  margin-top: 6px;
}

.price-amount {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
}

/* ==============================
   Testimonials Components
   ============================== */
blockquote footer {
  color: var(--muted);
}

/* ==============================
   Booking Section Components
   ============================== */
.booking-subtitle {
  color: #cbd5e1;
}

.booking-buttons {
  display: flex;
  gap: 10px;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ==============================
   Footer Components
   ============================== */
.footer-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-info {
  max-width: 380px;
}

.footer-text {
  color: var(--muted);
  margin-top: 6px;
}

.footer-title {
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  color: var(--muted);
}

.footer-newsletter {
  min-width: 220px;
}

.newsletter-form {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #e6e7e9;
}

.newsletter-btn {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-btn:hover {
  background: var(--accent-hover);
}

.footer-bottom {
  border-top: 1px solid #eee;
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* ==============================
   Header & Navigation
   ============================== */
header {
  background: var(--card);
  box-shadow: 0 1px 6px rgba(16, 24, 40, 0.05);
  border-radius: 12px;
  padding: 14px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}

nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}

.cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ==============================
   Hero Section
   ============================== */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding: 44px 0;
}

.hero .title {
  font-size: 32px;
  line-height: 1.05;
  margin: 0;
}

.hero p {
  color: var(--muted);
  margin-top: 10px;
  max-width: 580px;
}

.hero .buttons {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}

.hero-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* ==============================
   Services Section
   ============================== */
.grid {
  display: grid;
  gap: 16px;
}

.services {
  grid-template-columns: repeat(1, 1fr);
}

.service-card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
}

/* ==============================
   Pricing Section
   ============================== */
.pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.price {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  min-width: 160px;
  flex: 1;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.04);
}

/* ==============================
   Testimonials Section
   ============================== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 12px;
}

blockquote {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  font-style: italic;
}

/* ==============================
   Booking CTA Section
   ============================== */
.booking {
  background: linear-gradient(90deg, #0f1724, #0b1320);
  color: #fff;
  padding: 28px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.booking .btn {
  background: #fff;
  color: #0f1724;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s;
}

.booking .btn:hover {
  background: #f0f0f0;
}

/* ==============================
   Footer
   ============================== */
footer {
  margin-top: 22px;
  padding: 18px 0;
  color: var(--muted);
  font-size: 14px;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--accent);
}

/* ==============================
   Mobile Navigation Toggle
   ============================== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--accent);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ==============================
   Responsive Design
   ============================== */

/* Extra Small Devices (phones, 480px and below) */
@media (max-width: 480px) {
  .container {
    padding: 16px;
  }

  header {
    padding: 12px;
  }

  .logo {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .hero {
    padding: 24px 0;
  }

  .hero .title {
    font-size: 24px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 14px;
  }

  .hero .buttons {
    flex-direction: column;
  }

  .hero .buttons a {
    width: 100%;
    text-align: center;
  }

  .hero-card img {
    height: 200px;
  }

  h2 {
    font-size: 22px;
  }

  .service-card {
    padding: 14px;
  }

  .service-card h3 {
    font-size: 16px;
  }

  .pricing {
    flex-direction: column;
  }

  .price {
    min-width: 100%;
  }

  .booking {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }

  .booking > div:last-child {
    width: 100%;
    flex-direction: column;
  }

  .booking .btn {
    width: 100%;
    text-align: center;
  }

  footer > div > div:first-child {
    flex-direction: column;
    gap: 24px;
  }

  footer form {
    flex-direction: column;
  }

  footer button[type="submit"] {
    width: 100%;
  }
}

/* Small Devices (landscape phones, 481px to 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .container {
    padding: 20px;
  }

  .hero .title {
    font-size: 28px;
  }

  .hero-card img {
    height: 260px;
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing {
    flex-wrap: wrap;
  }

  .price {
    flex: 1 1 calc(50% - 12px);
    min-width: calc(50% - 12px);
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .nav-toggle {
    display: none !important;
  }

  nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    padding: 0;
    width: auto;
  }

  .hero {
    grid-template-columns: 1fr 420px;
  }

  .services {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero .title {
    font-size: 32px;
  }

  .hero-card img {
    height: 300px;
  }
}

/* Large Devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 480px;
  }

  .hero .title {
    font-size: 38px;
  }

  .hero-card img {
    height: 320px;
  }
}

/* Extra Large Devices (large desktops, 1100px and up) */
@media (min-width: 1100px) {
  .hero {
    grid-template-columns: 1fr 520px;
  }

  .hero .title {
    font-size: 42px;
  }
}

/* Mobile Navigation Styles (below 768px) */
@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  header > div {
    flex-wrap: wrap;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    flex-direction: column;
    padding: 16px;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.1);
    border-radius: 0 0 12px 12px;
    z-index: 1000;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.2s;
  }

  nav a:hover {
    background: var(--bg);
  }

  nav .cta {
    text-align: center;
  }

  header {
    position: relative;
  }
}

/* ==============================
   Modal (Login / Signup)
   ============================== */
.modal-bg {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(16, 24, 40, 0.18);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-bg.active {
  display: flex;
}

.modal {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(2, 6, 23, 0.13);
  padding: 36px 32px 28px 32px;
  min-width: 340px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  position: relative;
  animation: popIn 0.25s ease;
}

@keyframes popIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal h2 {
  margin: 0 0 18px 0;
  font-size: 24px;
  text-align: center;
  letter-spacing: 0.5px;
}

.modal label {
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--muted);
  margin-top: 10px;
}

.modal input[type="email"],
.modal input[type="password"] {
  width: 100%;
  padding: 12px 10px;
  border-radius: 8px;
  border: 1px solid #e6e7e9;
  margin-bottom: 2px;
  font-size: 16px;
  background: #fafbfc;
  transition: border 0.2s;
}

.modal input[type="email"]:focus,
.modal input[type="password"]:focus {
  border: 1.5px solid var(--accent);
  outline: none;
}

.modal .login-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 18px;
  letter-spacing: 0.5px;
  transition: background 0.18s;
}

.modal .login-btn:hover {
  background: var(--accent-hover);
}

.modal .close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s;
}

.modal .close-btn:hover {
  color: var(--accent);
}
