﻿/* ============================================================
   BASE.CSS — Reset, Custom Properties, Typography
   Kancelaria Notarialna Żory
   ============================================================ */

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

/* Custom Properties */
:root {
  /* Colors */
  --color-bg:         #F9F7F4;
  --color-surface:    #FFFFFF;
  --color-dark:       #1A2B22;
  --color-primary:    #2C5F4A;
  --color-primary-lt: #3D7A60;
  --color-gold:       #C8A96A;
  --color-gold-lt:    #DFC08A;
  --color-text:       #1C1C1C;
  --color-muted:      #7A7A6E;
  --color-border:     #E5E0D8;
  --color-cream:      #F2EDE4;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --section-gap:  7rem;
  --container-w:  1180px;
  --container-px: 2rem;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  0.25s;
}

/* Base */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(3rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

p { color: var(--color-muted); font-size: 1rem; line-height: 1.75; }

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

img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

section {
  padding-block: var(--section-gap);
}

.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.1rem;
}

.rule {
  width: 44px;
  height: 2px;
  background: var(--color-gold);
  margin-block: 1.2rem;
}

.section-head {
  margin-bottom: 4rem;
}

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

.section-head--center .rule {
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  border-radius: 2px;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(44,95,74,0.25);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.btn__arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--dur) var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}
