/* =========================================
   MK MOTEL & RESIDENCE — Global Styles
   ========================================= */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --c-accent: #0e7268;
  --c-accent-hover: #0b5d55;
  --c-accent-light: rgba(14, 114, 104, 0.08);
  --c-accent-border: rgba(14, 114, 104, 0.18);
  --white: #ffffff;
  --c-bg: #ffffff;
  --c-text: #1a1a1a;
  --c-text-secondary: #555555;
  --c-text-light: #777777;
  --c-border: #e5e7eb;
  --c-border-light: #f0f0f0;
  --c-dark: #111111;
  --c-dark-light: #1d1d1d;
  --c-light-gray: #dddddd;
  --c-bg-subtle: #f8fafa;

  /* Font Sizes */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.5rem;

  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;

  /* Border Radius */
  --br-sm: 4px;
  --br-md: 8px;
  --br-lg: 12px;
  --br-xl: 16px;
  --br-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --header-height: 72px;
  --container-max: 1200px;
  --container-wide: 1400px;

  /* Font */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  line-height: 1.6;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-size: var(--fs-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--c-accent-hover);
}

ul,
ol {
  list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--c-text);
}

h1 {
  font-size: var(--fs-4xl);
}

h2 {
  font-size: var(--fs-3xl);
}

h3 {
  font-size: var(--fs-xl);
}

h4 {
  font-size: var(--fs-lg);
}

p {
  line-height: 1.7;
  color: var(--c-text-secondary);
}

.text-accent {
  color: var(--c-accent);
}

.text-center {
  text-align: center;
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--c-text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-accent);
  margin-bottom: var(--sp-sm);
}

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.section {
  padding: var(--sp-4xl) 0;
}

.section-sm {
  padding: var(--sp-3xl) 0;
}

.header-spacer {
  height: var(--header-height);
  width: 100%;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 0.75rem 1.75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  font-family: var(--font-family);
  border-radius: var(--br-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.3px;
}

.btn-accent {
  background-color: var(--c-accent);
  color: var(--white);
}

.btn-accent:hover {
  background-color: var(--c-accent-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14, 114, 104, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--c-accent);
  border: 2px solid var(--c-accent);
}

.btn-outline:hover {
  background-color: var(--c-accent);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--c-accent);
  font-weight: 700;
}

.btn-white:hover {
  background: #f0faf9;
  color: var(--c-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: var(--fs-base);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--fs-xs);
}

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--c-border);
  border-radius: var(--br-lg);
  padding: var(--sp-xl);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--c-accent-border);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--br-md);
  background: var(--c-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-md);
  color: var(--c-accent);
  font-size: var(--fs-xl);
}

.card h3 {
  margin-bottom: var(--sp-sm);
  font-size: var(--fs-lg);
}

.card p {
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* --- Image Placeholders --- */
.img-placeholder {
  background: linear-gradient(135deg, #e8eded 0%, #d5dfde 100%);
  border-radius: var(--br-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-light);
  font-size: var(--fs-sm);
  font-weight: 500;
  overflow: hidden;
  position: relative;
}

.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(14, 114, 104, 0.04) 100%);
}

/* --- Pills / Tags --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 0.4rem 1rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  background: var(--c-accent-light);
  color: var(--c-accent);
  border-radius: var(--br-full);
  border: 1px solid var(--c-accent-border);
  transition: all var(--transition-fast);
}

.pill:hover {
  background: var(--c-accent);
  color: var(--white);
  border-color: var(--c-accent);
}

/* --- Info Block --- */
.info-block {
  background: var(--c-bg-subtle);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--br-md);
  padding: var(--sp-lg) var(--sp-xl);
}

.info-block h4 {
  margin-bottom: var(--sp-sm);
  color: var(--c-text);
}

.info-block p {
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-xs);
}

.info-block p:last-child {
  margin-bottom: 0;
}

/* --- Grid Helpers --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-xl);
}

/* =========================================
   HEADER / NAVBAR
   ========================================= */
.main-header {
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--c-border);
  transition: var(--transition-base);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-xl);
  max-width: var(--container-wide);
  margin: 0 auto;
  height: 100%;
}

/* Logo */
.logo {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--fs-md);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  white-space: nowrap;
}

.logo:hover {
  color: var(--white);
}

.logo img {
  height: 48px;
  vertical-align: middle;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-sub {
  font-size: var(--fs-xs);
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Navigation */
.nav-container {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.nav-link {
  height: 38px;
  padding: 0 var(--sp-md);
  color: var(--c-text);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--fs-sm);
  border-radius: var(--br-sm);
  transition: all var(--transition-fast);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--c-accent);
  background: var(--c-accent-light);
}

/* Nav Book Now Button */
.nav-btn {
  padding: 0.5rem 1.25rem;
  background-color: var(--c-accent);
  color: var(--white);
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: var(--br-md);
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.nav-btn:hover {
  background-color: var(--c-accent-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14, 114, 104, 0.3);
}

/* Hamburger Menu Toggle */
.menu-btn-container {
  display: none;
  height: 38px;
  width: 38px;
  overflow: hidden;
  position: relative;
  z-index: 1002;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(-50%, -50%);
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 5px;
  transition: 0.3s;
}

.menu-toggle.active,
.menu-toggle:hover {
  gap: 7px;
}

.menu-icon {
  background-color: var(--c-text);
  height: 2px;
  width: 22px;
  transition: 0.3s;
  border-radius: 3px;
}

.menu-icon:nth-child(4) {
  position: absolute;
  transform: rotate(-45deg) translate(50px, 0px);
  transition: 0.6s;
  opacity: 0;
}

.menu-toggle.active .menu-icon:nth-child(2) {
  transform: rotate(45deg);
}

.menu-toggle.active .menu-icon:nth-child(4) {
  transform: rotate(-45deg) translate(0, 0);
  opacity: 1;
}

.menu-toggle.active .menu-icon:nth-child(1),
.menu-toggle.active .menu-icon:nth-child(3) {
  transform: translateX(100px);
  opacity: 0;
}

/* =========================================
   FOOTER
   ========================================= */
.main-footer {
  background: var(--c-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--sp-3xl) 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--sp-3xl);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.footer-brand .logo {
  margin-bottom: var(--sp-md);
  font-size: var(--fs-lg);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--fs-sm);
  line-height: 1.7;
  max-width: 320px;
}

.footer-heading {
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--sp-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
  text-decoration: none;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
  font-size: var(--fs-sm);
}

.footer-contact-item .icon {
  color: var(--c-accent);
  font-size: var(--fs-md);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  margin-top: var(--sp-3xl);
  padding: var(--sp-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.4);
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

.reveal-delay-6 {
  transition-delay: 0.6s;
}

/* =========================================
   FORM ELEMENTS
   ========================================= */
.form-group {
  margin-bottom: var(--sp-lg);
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: var(--sp-sm);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--fs-base);
  font-family: var(--font-family);
  color: var(--c-text);
  background: var(--white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--br-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(14, 114, 104, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* Form Messages */
.form-message {
  padding: var(--sp-md) var(--sp-lg);
  border-radius: var(--br-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  display: none;
  margin-top: var(--sp-md);
}

.form-message.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-message.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* =========================================
   RESPONSIVE — Tablet (≤1024px)
   ========================================= */
@media (max-width: 1024px) {
  :root {
    --fs-4xl: 2.25rem;
    --fs-3xl: 2rem;
    --fs-2xl: 1.5rem;
  }

  .menu-btn-container {
    display: flex;
  }

  .nav-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: calc(var(--header-height) + var(--sp-xl)) var(--sp-lg) var(--sp-xl);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    gap: var(--sp-md);
    overflow-y: auto;
  }

  .nav-container.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }

  .nav-link {
    height: 50px;
    width: 100%;
    justify-content: flex-start;
    border-bottom: 1px solid var(--c-border);
    border-radius: 0;
    font-size: var(--fs-base);
    color: var(--c-text);
    padding: 0 var(--sp-md);
  }

  .nav-link:hover,
  .nav-link.active {
    background-color: transparent;
    color: var(--c-accent);
  }

  .nav-btn {
    margin-top: var(--sp-md);
    text-align: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* =========================================
   RESPONSIVE — Mobile (≤640px)
   ========================================= */
@media (max-width: 640px) {
  :root {
    --fs-4xl: 1.875rem;
    --fs-3xl: 1.5rem;
    --fs-2xl: 1.25rem;
    --sp-4xl: 3.5rem;
    --sp-3xl: 2.5rem;
  }

  .container,
  .container-wide {
    padding: 0 var(--sp-md);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: var(--sp-sm);
    text-align: center;
  }

  h1 {
    font-size: var(--fs-3xl);
  }

  h2 {
    font-size: var(--fs-2xl);
  }
}

/* =========================================
   CTA SECTION (Global)
   ========================================= */
.cta-section {
  background: var(--c-accent);
  text-align: center;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: var(--sp-md);
}

.cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-md);
  max-width: 600px;
  margin: 0 auto var(--sp-xl);
}