/* =========================================================================
   IRSEN BEAUTY STUDIO - MAIN STYLESHEET
   Modern Luxury Design System
   Optimized for Cyrillic Typography & iPhone Performance
========================================================================= */

/* =========================================================================
   CSS VARIABLES - UNIFIED DESIGN SYSTEM
========================================================================= */
/* ===============================
   MAIN MANIFEST
   ================================ */

/* Components */
@import "header.styles.css";
@import "menu.styles.css";
@import "brand-slider.styles.css";
@import "studio.styles.css";
@import "about.irsen.styles.css";
@import "certificates.styles.css";
@import "team.styles.css";
@import "services.styles.css";
@import "testimonials.styles.css";
@import "instagram.styles.css";
@import "shorts.styles.css";
@import "before-after.styles.css";
@import "faq.styles.css";
@import "contacts.styles.css";
@import "open-hours.styles.css";
@import "footer.styles.css";

:root {
  /* BRAND COLORS - Dark Identity */
  --color-black: #0e0e0e;
  --color-pure-black: #000000;
  --color-white: #ffffff;

  /* PRIMARY GOLD - Single Source of Truth */
  --color-gold: #c8aa78;
  --color-gold-hover: #d4b585;
  --color-gold-active: #b69763;
  --color-gold-disabled: rgba(200, 170, 120, 0.65);
  --color-gold-border: rgba(200, 170, 120, 0.25);

  /* LIGHT UX SURFACES - Warm Neutrals */
  --color-surface-light: #faf9f7;
  --color-surface-warm: #f7f6f4;
  --color-surface-card: #ffffff;

  /* TEXT COLORS */
  --color-text-primary: #1f1f1f;
  --color-text-secondary: #5a5a5a;
  --color-text-muted: #888888;
  --color-text-inverse: #ffffff;

  /* FUNCTIONAL COLORS */
  --color-success: #4caf50;
  --color-error: #e74c3c;
  --color-border: rgba(0, 0, 0, 0.08);

  /* TYPOGRAPHY - Cyrillic Optimized */
  --font-primary: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-headings: "Playfair Display", Georgia, serif;
  --font-script: "Pinyon Script", cursive;

  /* FONT SIZES - Fluid Typography */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.375rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.625rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --text-3xl: clamp(2rem, 1.75rem + 1.25vw, 2.75rem);
  --text-4xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);

  /* SPACING SCALE */
  --space-xs: clamp(0.5rem, 0.45rem + 0.25vw, 0.625rem);
  --space-sm: clamp(0.75rem, 0.7rem + 0.25vw, 1rem);
  --space-md: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --space-lg: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  --space-xl: clamp(4rem, 3rem + 5vw, 6rem);
  --space-2xl: clamp(6rem, 4rem + 10vw, 10rem);

  /* LAYOUT */
  --container-max: 1320px;
  --container-padding: clamp(1rem, 2vw, 2.5rem);
  --section-padding: clamp(4rem, 8vw, 8rem);

  /* TRANSITIONS */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* SHADOWS */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

  /* Z-INDEX SCALE */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* =========================================================================
   RESET & BASE STYLES
========================================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* Enhanced Cyrillic Rendering */
body {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* =========================================================================
   TYPOGRAPHY
========================================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headings);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--text-4xl);
}
h2 {
  font-size: var(--text-3xl);
}
h3 {
  font-size: var(--text-2xl);
}
h4 {
  font-size: var(--text-xl);
}
h5 {
  font-size: var(--text-lg);
}
h6 {
  font-size: var(--text-base);
}

p {
  margin: 0 0 var(--space-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-gold);
}

strong,
b {
  font-weight: 600;
}

em,
i {
  font-style: italic;
}

/* Script Font Class */
.font-script {
  font-family: var(--font-script);
  font-weight: 400;
}

/* =========================================================================
   IMAGES & MEDIA
========================================================================= */
img {
  max-width: 100%;
  height: auto;
  display: block;
  /*vertical-align: middle;*/
}

/* Lazy loading */
img[loading="lazy"] {
  transition: opacity var(--transition-base);
}

img[loading="lazy"].loaded,
img:not([loading="lazy"]) {
  opacity: 1;
}

/* =========================================================================
   LAYOUT UTILITIES
========================================================================= */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-fluid {
  width: 100%;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Section Padding */
.section-padding {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.section-padding-top {
  padding-top: var(--section-padding);
}

.section-padding-bottom {
  padding-bottom: var(--section-padding);
}

/* Background Variants */
.bg-dark {
  background-color: var(--color-pure-black);
  color: var(--color-text-inverse);
}

.bg-black {
  background-color: var(--color-black);
  color: var(--color-text-inverse);
}

.bg-light {
  background-color: var(--color-surface-light);
}

.bg-warm {
  background-color: var(--color-surface-warm);
}

.bg-white {
  background-color: var(--color-surface-card);
}

/* =========================================================================
   BUTTONS - UNIFIED SYSTEM
========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Primary Gold Button */
.btn-gold {
  background-color: transparent;
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-gold:hover {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-pure-black);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201, 164, 107, 0.3);
}

.btn-gold:active {
  background-color: var(--color-gold-active);
  border-color: var(--color-gold-active);
  transform: translateY(0);
}

/* Gold Filled Button */
.btn-gold-fill {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-pure-black);
}

.btn-gold-fill:hover {
  background-color: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201, 164, 107, 0.3);
}

/* Small Button Variant */
.btn-sm,
.btn-gold-sm {
  padding: 0.625rem 1.5rem;
  font-size: var(--text-xs);
}

/* Outline Button */
.btn-outline-gold {
  background-color: transparent;
  border-color: var(--color-gold-border);
  color: var(--color-gold);
}

.btn-outline-gold:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-hover);
}

/* Disabled State */
.btn:disabled,
.btn.disabled {
  background-color: transparent;
  border-color: var(--color-gold-border);
  color: var(--color-gold-disabled);
  cursor: not-allowed;
  opacity: 0.65;
  transform: none !important;
  box-shadow: none !important;
}

/* =========================================================================
   MAIN SECTION
========================================================================= */
.main-section {
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.main-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.main-section__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.main-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
}

.main-section .container {
  position: relative;
  z-index: 2;
}

.main-section h1 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.main-section .lead {
  color: var(--color-gold);
  font-size: var(--text-lg);
  font-weight: 400;
  margin-bottom: var(--space-lg);
}

/* =========================================================================
   FORMS - PREMIUM INPUT STYLES
========================================================================= */
.form-control,
.form-select {
  width: 100%;
  padding: 1rem 0.5rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text-primary);
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  transition: border-color var(--transition-base);
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-bottom-color: var(--color-gold);
  box-shadow: none;
}

.form-control::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23c9a46b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 2rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* =========================================================================
   ANIMATIONS
========================================================================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   SECTION TITLES & DECORATIVE ELEMENTS
========================================================================= */
.section-title {
  font-size: var(--text-3xl);
  font-family: var(--font-headings);
  text-align: center;
  margin-bottom: var(--space-md);
  position: relative;
}

.section-subtitle {
  display: block;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.divider,
.section-divider {
  width: 60px;
  height: 1px;
  background-color: var(--color-gold);
  margin: var(--space-md) auto;
}

/* =========================================================================
   RESPONSIVE BREAKPOINTS
========================================================================= */

/* Large screens (laptop and desktop monitors) */
@media only screen and (min-width: 1200px) {
  :root {
    --container-max: 1320px;
  }
}

/* Medium screens (regular laptops and iPad Pro) */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  :root {
    --container-max: 1140px;
  }
}

/* Tablets (iPads and similar devices) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  :root {
    --container-max: 100%;
    --section-padding: clamp(3rem, 6vw, 5rem);
  }

  h1 {
    font-size: var(--text-3xl);
  }
  h2 {
    font-size: var(--text-2xl);
  }

  .main-section {
    max-height: 700px;
  }
}

/* Smartphones in landscape orientation */
@media only screen and (orientation: landscape) and (max-width: 767px) {
  :root {
    --section-padding: clamp(2.5rem, 5vw, 4rem);
  }

  .main-section {
    min-height: 500px;
    max-height: 600px;
  }
}

/* Small mobile phones (portrait orientation) - iPhone Priority */
@media only screen and (max-width: 480px) {
  :root {
    --container-padding: 1rem;
    --section-padding: 3rem;
  }

  h1 {
    font-size: var(--text-2xl);
  }
  h2 {
    font-size: var(--text-xl);
  }

  .btn {
    width: 100%;
    padding: 1rem;
  }

  .main-section {
    min-height: 500px;
  }

  .main-section h1 {
    font-size: 2rem;
  }
}

/* Extra-small screens (old phones) */
@media only screen and (max-width: 320px) {
  :root {
    --container-padding: 0.75rem;
  }

  body {
    font-size: 0.9375rem;
  }
}

/* High-resolution screens (Retina displays) */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
  only screen and (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: subpixel-antialiased;
  }
}

/* =========================================================================
   UTILITY CLASSES
========================================================================= */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.text-gold {
  color: var(--color-gold);
}
.text-white {
  color: var(--color-text-inverse);
}
.text-muted {
  color: var(--color-text-muted);
}

.fw-light {
  font-weight: 300;
}
.fw-normal {
  font-weight: 400;
}
.fw-medium {
  font-weight: 500;
}
.fw-semibold {
  font-weight: 600;
}
.fw-bold {
  font-weight: 700;
}

.text-uppercase {
  text-transform: uppercase;
}

/* =========================================================================
   ACCESSIBILITY
========================================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}
