/* 
=========================================
   Marian DCDC - Page Layout Styles
=========================================
*/

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height, 68px);
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--neutral-dark);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--neutral-dark);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--neutral-gray);
  font-size: 1rem;
}

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

ul {
  list-style: none;
}

/* Section Common Styles */
section {
  min-height: auto;
  padding: clamp(3.5rem, 6vw, 5.5rem) clamp(1rem, 3.5vw, 1.5rem);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  section {
    overflow-x: hidden;
  }
}

section > * {
  width: 100%;
  max-width: 100%;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
}

.section-header .tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--primary-light);
  color: var(--primary-hover);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.section-header p {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.6;
}

/* Sticky Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  z-index: 1000;
  background-color: white;
  border-radius: 0;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border-color);
}

.nav-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.75rem clamp(1.25rem, 3.5vw, 3rem);
  box-sizing: border-box;
  transition: padding 0.3s ease;
}

header.scrolled .nav-container {
  padding: 0.65rem clamp(1.25rem, 3.5vw, 3rem);
}

.logo {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 1vw, 0.65rem);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.15rem, 3.5vw, 1.4rem);
  color: rgb(0, 0, 0);
  justify-self: start;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo span {
  color: var(--primary);
}

.brand-logo-img {
  width: clamp(30px, 4vw, 36px);
  height: clamp(30px, 4vw, 36px);
  object-fit: cover;
  border-radius: var(--radius-xs, 6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  display: inline-block;
  transition: var(--transition-fast);
}

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

.footer-logo .footer-logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs, 6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.2vw, 2.25rem);
  justify-self: center;
  margin: 0;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgb(4, 4, 4);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
  margin-left: 0;
  flex-shrink: 0;
}

/* Header Log In Button - Modern, Pill & Responsive */
.nav-actions .nav-login-btn,
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem !important;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-full, 9999px);
  background-color: var(--primary);
  color: var(--neutral-white);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  min-height: 40px;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.nav-login-btn:hover {
  background-color: var(--primary-hover, #0d9488);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.35);
}

.nav-login-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}

.nav-login-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-login-btn i,
.nav-login-btn svg,
.nav-login-btn .btn-login-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke-width: 2.2;
  transition: transform 0.2s ease;
}

.nav-login-btn:hover i,
.nav-login-btn:hover svg,
.nav-login-btn:hover .btn-login-icon {
  transform: translateX(2px);
}

.nav-login-btn .btn-login-text-short {
  display: none;
}

/* Hamburger mobile menu button */
.menu-toggle {
  display: none;
  background: var(--neutral-light, #f1f5f9);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-xs, 6px);
  cursor: pointer;
  padding: 0;
  color: var(--neutral-dark, #0f172a);
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: var(--transition-fast);
}

.menu-toggle:hover {
  background-color: #e2e8f0;
  color: var(--primary);
}

.menu-toggle i,
.menu-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  width: min(300px, 86vw);
  max-width: 86vw;
  height: 100vh;
  height: 100dvh;
  background-color: var(--bg-card);
  box-shadow: var(--shadow-xl);
  z-index: 1001;
  padding: 2.5rem clamp(1.25rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

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

.mobile-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--neutral-dark);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-drawer-links a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--neutral-dark);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Footer Section */
footer {
  background-color: rgb(1, 36, 36);
  color: #94a3b8;
  padding: 4rem 1.5rem 2rem 1.5rem;
  border-top: 1px solid #1e293b;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 4rem;
}

.footer-col-about {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  color: var(--neutral-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.4rem;
}

.footer-logo span {
  color: var(--primary);
}

.footer-logo-icon {
  width: 36px;
  height: 36px;
  background-color: #1e293b;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.footer-col-about p {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-social-links {
  display: flex;
  gap: 0.85rem;
}

.footer-social-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: rgb(1, 36, 36);
  border: 1px solid rgb(1, 94, 81);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social-icon:hover {
  background-color: var(--primary);
  color: var(--neutral-white);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: var(--neutral-white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-links a:hover {
  color: var(--neutral-white);
  padding-left: 0.25rem;
}

.footer-col-newsletter {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-newsletter-text {
  font-size: 0.9rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex-grow: 1;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #1e293b;
  background-color: #0f172a;
  color: var(--neutral-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary);
}

.newsletter-form .btn {
  padding: 0.7rem 1rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0 auto;
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  color: var(--neutral-white);
}

/* Responsiveness Media Queries for layout */
@media (max-width: 992px) {
  section#home.hero,
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 8rem 1.25rem 4rem 1.25rem;
  }
  
  .hero h1 {
    font-size: clamp(2.2rem, 5vw, 2.75rem);
    line-height: 1.18;
  }

  .floating-card-1,
  .floating-card-2 {
    display: none;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .footer-container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
  }

  /* Responsive login button for tablet/medium screens */
  .nav-login-btn .btn-login-text-full {
    display: none !important;
  }
  .nav-login-btn .btn-login-text-short {
    display: inline !important;
  }
  .nav-actions .nav-login-btn,
  .nav-login-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  header {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    transform: none;
    border-radius: 0;
    overflow: hidden;
  }

  .nav-container,
  header.scrolled .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0.6rem clamp(0.75rem, 3vw, 1.25rem);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .logo {
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
  }

  /* Header actions layout with login button beside hamburger menu */
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
  }

  /* Neutralize AOS horizontal translations on mobile to eliminate page panning */
  [data-aos="fade-left"],
  [data-aos="fade-right"] {
    transform: translate3d(0, 20px, 0) !important;
  }

  .menu-toggle {
    display: inline-flex;
    order: 2;
    width: 38px;
    height: 38px;
    min-height: 38px;
    min-width: 38px;
    padding: 0;
    border-radius: var(--radius-sm, 8px);
    background: var(--neutral-light, #f1f5f9);
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--neutral-dark, #0f172a);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }

  .menu-toggle i,
  .menu-toggle svg {
    width: 19px;
    height: 19px;
  }

  .nav-actions .nav-login-btn,
  .nav-login-btn {
    order: 1;
    padding: 0.45rem 0.85rem !important;
    font-size: 0.825rem;
    min-height: 38px;
    height: 38px;
    gap: 0.4rem;
    border-radius: var(--radius-full);
    flex-shrink: 0;
  }

  .nav-login-btn .btn-login-text-full {
    display: none !important;
  }

  .nav-login-btn .btn-login-text-short {
    display: inline !important;
  }

  .nav-login-btn i,
  .nav-login-btn svg,
  .nav-login-btn .btn-login-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
  }

  section {
    min-height: auto;
    padding: 4rem 1.25rem 2.5rem 1.25rem;
  }
  
  .section-header h2 {
    font-size: clamp(1.5rem, 4.5vw, 1.85rem);
  }
  
  .nav-links {
    display: none; /* Hidden on mobile; mobile drawer is used instead */
  }
  
  .booking-section {
    padding: 2rem 1.25rem;
  }
  
  .booking-category-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .booking-scheduling-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .nav-container,
  header.scrolled .nav-container {
    padding: 0.5rem 0.75rem;
  }

  .logo {
    font-size: clamp(1.05rem, 3.8vw, 1.15rem);
    gap: 0.4rem;
    max-width: calc(100% - 90px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-logo-img {
    width: 30px;
    height: 30px;
  }

  .nav-actions {
    gap: 0.4rem;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
    min-height: 36px;
    min-width: 36px;
    order: 2;
  }

  .menu-toggle i,
  .menu-toggle svg {
    width: 18px;
    height: 18px;
  }

  /* Compact matching icon button on phones so it NEVER overflows or clips */
  .nav-actions .nav-login-btn,
  .nav-login-btn {
    order: 1;
    width: 36px;
    height: 36px;
    min-height: 36px;
    min-width: 36px;
    padding: 0 !important;
    border-radius: var(--radius-sm, 8px);
    gap: 0;
  }

  .nav-login-btn .btn-login-text-full,
  .nav-login-btn .btn-login-text-short {
    display: none !important;
  }

  .nav-login-btn i,
  .nav-login-btn svg,
  .nav-login-btn .btn-login-icon {
    width: 16px;
    height: 16px;
    margin: 0;
  }
}

@media (max-width: 480px) {
  section {
    padding: 3.25rem 1rem 2rem 1rem;
  }

  section#home.hero,
  .hero {
    padding: 6.5rem 1rem 3rem 1rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 6.5vw, 2.2rem);
    line-height: 1.2;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: clamp(0.95rem, 3.8vw, 1.1rem);
    line-height: 1.5;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  
  .floating-card {
    display: none;
  }
  
  .success-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 360px) {
  .nav-container,
  header.scrolled .nav-container {
    padding: 0.4rem 0.5rem;
  }

  .logo {
    font-size: 0.95rem;
    gap: 0.35rem;
  }

  .brand-logo-img {
    width: 26px;
    height: 26px;
  }

  .nav-actions {
    gap: 0.3rem;
  }

  .menu-toggle {
    width: 34px;
    height: 34px;
    min-height: 34px;
    min-width: 34px;
  }

  .nav-actions .nav-login-btn,
  .nav-login-btn {
    width: 34px;
    height: 34px;
    min-height: 34px;
    min-width: 34px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }
}

/* Extra-Wide & 4K Screen Enhancements */
@media (min-width: 1440px) {
  section {
    max-width: 1280px;
  }
  .hero-container {
    max-width: 1280px;
  }
  .footer-container {
    max-width: 1280px;
  }
}

@media (min-width: 1920px) {
  section {
    max-width: 1360px;
  }
  .hero-container {
    max-width: 1360px;
  }
  .footer-container {
    max-width: 1360px;
  }
}

