/**
 * Motto Burger & Steak — Base Styles
 * Modern reset, typography, global elements
 * @version 2.0.0
 */

/* ═══════════════════════════════════════
   MODERN CSS RESET
   ═══════════════════════════════════════ */

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  hanging-punctuation: first last;
  overflow-x: clip;
}

html.lenis {
  scroll-behavior: auto !important;
}

html.lenis,
html.lenis body {
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--motto-font-body);
  font-size: var(--motto-text-base);
  font-weight: var(--motto-weight-regular);
  line-height: var(--motto-leading-relaxed);
  color: var(--motto-color-text);
  background-color: var(--motto-color-bg);
  overflow-x: clip;
  position: relative;
  width: 100%;
  max-width: 100%;
}

#motto-main {
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  padding-top: var(--motto-header-height);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 196, 0, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 196, 0, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: var(--motto-z-behind);
}

html.is-nav-open,
body.is-nav-open {
  overflow: hidden;
  height: 100%;
}

body.is-nav-open #motto-main,
body.is-nav-open .motto-footer {
  visibility: hidden;
  pointer-events: none !important;
  touch-action: none;
}

body.is-nav-open .motto-mobile-menu {
  pointer-events: auto;
  touch-action: pan-y;
}

body.is-nav-open .motto-mobile-menu a {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  touch-action: manipulation;
}

body.is-nav-open .motto-header {
  pointer-events: auto;
}

/* Mobil dokunma — butonlar anında tepki versin */
button,
.motto-btn,
.motto-header__toggle,
.motto-menu-item__toggle,
.motto-menu-item__zoom,
input[type="submit"],
input[type="button"],
[role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 196, 0, 0.12);
}

.motto-footer a,
.motto-hero__actions a,
.motto-mobile-nav a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 196, 0, 0.12);
}

body.has-custom-cursor {
  cursor: none;
}

body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor [role="button"],
body.has-custom-cursor input,
body.has-custom-cursor textarea,
body.has-custom-cursor select,
body.has-custom-cursor label {
  cursor: none;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--motto-font-display);
  font-weight: var(--motto-weight-regular);
  line-height: var(--motto-leading-tight);
  letter-spacing: var(--motto-tracking-display);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

strong,
b {
  font-weight: var(--motto-weight-semibold);
}

small {
  font-size: var(--motto-text-sm);
}

hr {
  border: none;
  height: 1px;
  background: var(--motto-color-border);
  margin: var(--motto-space-8) 0;
}

/* Remove default fieldset styles */
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* Accessible hidden */
[hidden],
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ═══════════════════════════════════════
   SKIP LINK
   ═══════════════════════════════════════ */

.motto-skip-link {
  position: fixed;
  top: var(--motto-space-4);
  left: var(--motto-space-4);
  z-index: var(--motto-z-skip);
  padding: var(--motto-space-3) var(--motto-space-6);
  font-family: var(--motto-font-body);
  font-size: var(--motto-text-sm);
  font-weight: var(--motto-weight-semibold);
  letter-spacing: var(--motto-tracking-wide);
  text-transform: uppercase;
  color: var(--motto-black);
  background: var(--motto-gold);
  border-radius: var(--motto-radius-md);
  transform: translateY(-200%);
  transition: transform var(--motto-transition-fast);
  box-shadow: var(--motto-shadow-gold);
}

.motto-skip-link:focus {
  transform: translateY(0);
  outline: none;
  box-shadow: var(--motto-focus-ring), var(--motto-shadow-gold);
}

/* ═══════════════════════════════════════
   SELECTION
   ═══════════════════════════════════════ */

::selection {
  background-color: var(--motto-gold);
  color: var(--motto-black);
}

::-moz-selection {
  background-color: var(--motto-gold);
  color: var(--motto-black);
}

/* ═══════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--motto-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 196, 0, 0.3);
  border-radius: var(--motto-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--motto-gold);
}

/* ═══════════════════════════════════════
   CONTAINER
   ═══════════════════════════════════════ */

.motto-container {
  width: 100%;
  max-width: var(--motto-container-max);
  margin-inline: auto;
  padding-inline: var(--motto-gutter);
}

.motto-container--narrow {
  max-width: var(--motto-container-narrow);
}

.motto-container--wide {
  max-width: var(--motto-container-wide);
}

.motto-container--flush {
  padding-inline: 0;
}

/* ═══════════════════════════════════════
   TYPOGRAPHY — HEADINGS
   ═══════════════════════════════════════ */

h1,
.motto-h1 {
  font-size: var(--motto-text-hero);
  line-height: var(--motto-leading-none);
  letter-spacing: var(--motto-tracking-tight);
}

h2,
.motto-h2 {
  font-size: var(--motto-text-3xl);
  line-height: var(--motto-leading-tight);
}

h3,
.motto-h3 {
  font-size: var(--motto-text-2xl);
  line-height: var(--motto-leading-tight);
}

h4,
.motto-h4 {
  font-size: var(--motto-text-xl);
  line-height: var(--motto-leading-snug);
}

h5,
.motto-h5 {
  font-size: var(--motto-text-lg);
  line-height: var(--motto-leading-snug);
}

h6,
.motto-h6 {
  font-size: var(--motto-text-md);
  line-height: var(--motto-leading-snug);
}

.motto-display {
  font-family: var(--motto-font-display);
  font-size: clamp(2.5rem, 2rem + 3vw, 4.75rem);
  line-height: var(--motto-leading-none);
  letter-spacing: var(--motto-tracking-tight);
}

.motto-eyebrow {
  display: block;
  font-family: var(--motto-font-body);
  font-size: var(--motto-text-xs);
  font-weight: var(--motto-weight-semibold);
  letter-spacing: var(--motto-tracking-widest);
  text-transform: uppercase;
  color: var(--motto-gold);
  margin-bottom: var(--motto-space-3);
}

.motto-lead {
  font-size: var(--motto-text-lg);
  line-height: var(--motto-leading-relaxed);
  color: var(--motto-color-text-muted);
  max-width: 65ch;
}

.motto-text-muted {
  color: var(--motto-color-text-muted);
}

.motto-text-subtle {
  color: var(--motto-color-text-subtle);
}

.motto-text-gold {
  color: var(--motto-gold);
}

.motto-text-gradient {
  background: var(--motto-gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ═══════════════════════════════════════
   LINKS
   ═══════════════════════════════════════ */

a:not([class]) {
  color: var(--motto-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 196, 0, 0.4);
  transition: color var(--motto-transition-fast), text-decoration-color var(--motto-transition-fast);
}

a:not([class]):hover {
  color: var(--motto-gold-light);
  text-decoration-color: var(--motto-gold-light);
}

a:not([class]):focus-visible {
  outline: none;
  box-shadow: var(--motto-focus-ring);
  border-radius: var(--motto-radius-sm);
}

/* ═══════════════════════════════════════
   IMAGES & MEDIA
   ═══════════════════════════════════════ */

.motto-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.motto-img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.motto-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--motto-radius-lg);
}

.motto-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

.motto-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motto-duration-slow) var(--motto-ease-expo-out);
}

.motto-media:hover img {
  transform: scale(1.05);
}

/* ═══════════════════════════════════════
   MAIN LAYOUT
   ═══════════════════════════════════════ */

.motto-main {
  position: relative;
  z-index: var(--motto-z-base);
  min-height: 50vh;
}

.motto-page {
  padding-top: var(--motto-header-height);
}

.motto-page--no-header-offset {
  padding-top: 0;
}

/* ═══════════════════════════════════════
   UTILITY — SPACING
   ═══════════════════════════════════════ */

.motto-section {
  padding-block: var(--motto-section-y);
  position: relative;
}

.motto-section--lg {
  padding-block: var(--motto-section-y-lg);
}

.motto-section--dark {
  background-color: var(--motto-dark);
}

.motto-section--black {
  background-color: var(--motto-black);
}

/* ═══════════════════════════════════════
   UTILITY — GRID HELPERS
   ═══════════════════════════════════════ */

.motto-grid {
  display: grid;
  gap: var(--motto-space-6);
}

.motto-grid--2 {
  grid-template-columns: 1fr;
}

.motto-grid--3 {
  grid-template-columns: 1fr;
}

.motto-grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .motto-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (min-width: 1024px) {
  .motto-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* ═══════════════════════════════════════
   UTILITY — FLEX
   ═══════════════════════════════════════ */

.motto-flex {
  display: flex;
  align-items: center;
  gap: var(--motto-space-4);
}

.motto-flex--between {
  justify-content: space-between;
}

.motto-flex--center {
  justify-content: center;
}

.motto-flex--col {
  flex-direction: column;
  align-items: flex-start;
}

/* ═══════════════════════════════════════
   FOCUS VISIBLE GLOBAL
   ═══════════════════════════════════════ */

:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--motto-focus-ring);
}

/* ═══════════════════════════════════════
   PRINT
   ═══════════════════════════════════════ */

@media print {
  body {
    background: white;
    color: black;
  }

  .motto-header,
  .motto-footer,
  .motto-cursor,
  .motto-skip-link {
    display: none !important;
  }
}
