/* =====================================================================
   Decorismo PL - Base Styles
   ---------------------------------------------------------------------
   Elegant, modern, atmospheric, creative, personalized
   All other CSS files should build on top of this base.
   ===================================================================== */

/* =====================================================================
   1. CSS Custom Properties (Variables)
   ===================================================================== */

:root {
  /* -------------------------------------------------------------------
     Color Palette
     ------------------------------------------------------------------- */
  --color-bg: #070708; /* deep, cinematic background */
  --color-bg-alt: #101117;
  --color-surface: #181922;
  --color-surface-soft: #22232f;

  --color-text: #f5f5f7;
  --color-text-soft: #c4c4cf;
  --color-text-muted: #9a9aac;

  --color-primary: #f2c26b; /* warm, refined accent */
  --color-primary-soft: rgba(242, 194, 107, 0.16);
  --color-primary-strong: #f3ad39;

  --color-success: #4bbf8b;
  --color-warning: #f4b23a;
  --color-danger: #f05a5a;

  /* Neutral grays - used mostly on light surfaces / borders */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2933;
  --gray-900: #111827;

  /* -------------------------------------------------------------------
     Typography
     ------------------------------------------------------------------- */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-md: 1.0625rem; /* 17px - slightly refined base */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* -------------------------------------------------------------------
     Spacing Scale (px)
     ------------------------------------------------------------------- */
  --space-0: 0px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* -------------------------------------------------------------------
     Radii
     ------------------------------------------------------------------- */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* -------------------------------------------------------------------
     Shadows (soft, cinematic)
     ------------------------------------------------------------------- */
  --shadow-xs: 0 4px 10px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 20px 50px rgba(0, 0, 0, 0.55);
  --shadow-soft-inner: inset 0 0 0 1px rgba(255, 255, 255, 0.02);

  /* -------------------------------------------------------------------
     Transitions & Motion
     ------------------------------------------------------------------- */
  --ease-standard: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);

  --duration-fast: 120ms;
  --duration-normal: 200ms;
  --duration-slow: 320ms;

  /* Layout */
  --container-max-width: 1120px;
  --container-padding-x: 1.5rem;
}

/* =====================================================================
   2. Reset & Normalize
   ===================================================================== */

/* Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margins */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a class */
ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

/* Set core root defaults */
html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Images & media */
img,
svg,
video,
canvas,
audio,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* Remove default button styles */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

/* Links without class stay default underlined, others are controlled */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Improve line-height for form elements */
button,
input,
optgroup,
select,
textarea {
  line-height: 1.15;
}

/* =====================================================================
   3. Base Styles
   ===================================================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* Typography scale for headings (hero / editorial feeling) */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 4vw, var(--font-size-5xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(2rem, 3vw, var(--font-size-4xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

h4 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

h5 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-normal);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
}

h6 {
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-1);
}

p {
  margin-bottom: var(--space-3);
  color: var(--color-text-soft);
}

p:last-child {
  margin-bottom: 0;
}

strong,
b {
  font-weight: 600;
}

em {
  font-style: italic;
}

/* Links - refined, no default underline */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-soft),
    opacity var(--duration-normal) var(--ease-soft);
}

a:hover {
  color: var(--color-primary-strong);
}

a:active {
  opacity: 0.7;
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: var(--space-6) 0;
}

/* =====================================================================
   4. Accessibility & Motion
   ===================================================================== */

/* Focus states - visible but elegant */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

:focus {
  outline: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =====================================================================
   5. Layout Utilities
   ===================================================================== */

/* Page container for primary content width */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-x);
}

/* Section spacing (can be used on major homepage/"O nas" sections) */
.section {
  padding-block: var(--space-16);
}

.section--tight {
  padding-block: var(--space-10);
}

.section--contrast {
  background-color: var(--color-bg-alt);
}

/* Flex helpers */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-xs {
  gap: var(--space-2);
}

.gap-sm {
  gap: var(--space-3);
}

.gap-md {
  gap: var(--space-4);
}

.gap-lg {
  gap: var(--space-6);
}

/* Grid helpers */
.grid {
  display: grid;
  gap: var(--space-4);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Alignment utilities */
.text-center {
  text-align: center;
}

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

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

/* Screen reader only */
.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

/* =====================================================================
   6. Form Elements & Inputs
   ===================================================================== */

label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(10, 10, 14, 0.9);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--duration-normal) var(--ease-standard),
    box-shadow var(--duration-normal) var(--ease-standard),
    background-color var(--duration-normal) var(--ease-standard);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary-soft);
}

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

input[disabled],
textarea[disabled],
select[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

/* =====================================================================
   7. Buttons
   ===================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration-normal) var(--ease-standard),
    color var(--duration-normal) var(--ease-standard),
    border-color var(--duration-normal) var(--ease-standard),
    box-shadow var(--duration-normal) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard),
    opacity var(--duration-fast) var(--ease-standard);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: #120f0a !important;
  box-shadow: var(--shadow-xs);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
  opacity: 0.88;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text-soft);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--color-text);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
  transform: none;
}

/* =====================================================================
   8. Cards & Surfaces
   ===================================================================== */

/* Generic card used for services, testimonials, content sections */
.card {
  background: radial-gradient(circle at top left, rgba(242, 194, 107, 0.08), transparent 60%),
    var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.02),
      transparent 40%,
      transparent 60%,
      rgba(255, 255, 255, 0.03)
    );
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-soft);
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  margin-bottom: var(--space-3);
}

.card-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-2);
}

.card-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-body {
  color: var(--color-text-soft);
}

/* Lighter card variant for contrast blocks (e.g., testimonials on dark bg) */
.card--soft {
  background: var(--color-surface-soft);
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.02);
}

/* =====================================================================
   9. Helper Classes Specific to Decorismo PL
   ===================================================================== */

/* For subtle overlays over photography backgrounds */
.backdrop-soft {
  background: linear-gradient(
      to bottom,
      rgba(7, 7, 8, 0.88),
      rgba(7, 7, 8, 0.96)
    );
}

/* Tag / pill for session types (Portret, Rodzina, Content etc.) */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.badge--primary {
  border-color: var(--color-primary-soft);
  background-color: rgba(242, 194, 107, 0.08);
  color: var(--color-primary-strong);
}

/* Lead text for atmospheric intros */
.lead {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-soft);
  max-width: 36rem;
}

/* Small helper for captions under photos */
.caption {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* Spacing helpers (commonly used) */
.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-2); }
.mt-sm { margin-top: var(--space-3); }
.mt-md { margin-top: var(--space-4); }
.mt-lg { margin-top: var(--space-6); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-2); }
.mb-sm { margin-bottom: var(--space-3); }
.mb-md { margin-bottom: var(--space-4); }
.mb-lg { margin-bottom: var(--space-6); }

/* =====================================================================
   End of base.css
   ===================================================================== */
