/* ======================================================
   JÓZEF SZYMELEWICZ — Design System
   Adapted from Rybalnia: Deep Green + Gold + Cream
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Open+Sans:ital,wght@0,300;0,400;0,600;1,300&display=swap');

/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-dark: #1a3a2a;
  --green-mid: #2d6a4f;
  --green-light: #52b788;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --cream: #f8f4ec;
  --cream-dark: #ede8dc;
  --text-dark: #1c2b23;
  --text-mid: #3d5a48;
  --text-light: #7a9e8a;
  --white: #ffffff;
  --shadow-soft: 0 4px 30px rgba(26, 58, 42, 0.12);
  --shadow-mid: 0 8px 40px rgba(26, 58, 42, 0.20);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-dark);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

/* === UTILITIES === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  color: var(--green-dark);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 56px;
  letter-spacing: 1px;
}

.section-divider {
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 14px auto 0;
  border-radius: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* === NAVBAR === */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
}

#navbar.scrolled {
  background: rgba(26, 58, 42, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
}

.nav-brand img {
  display: inline-block;
  height: 32px;
  width: auto;
  margin-right: 12px;
  border-radius: 4px;
}

.nav-brand span {
  color: var(--gold-light);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--gold-light);
}

/* === HERO === */
#hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--green-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
  /* Override global dark green */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-title span {
  color: var(--gold-light);
}

.hero-tagline {
  color: var(--cream);
  font-size: 1.1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* === CARDS GRID === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 80px 0;
}

.service-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-mid);
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.service-card p {
  color: var(--text-mid);
  font-size: 0.9rem;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-top: 20px;
  background: var(--gold);
  color: var(--green-dark);
}

.btn:hover {
  background: var(--gold-light);
}

/* === ABOUT SECTION === */
#about-me {
  padding: 100px 0;
  background: var(--cream-dark);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.about-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-mid);
}

/* === FOOTER UPDATED === */
footer {
  background: var(--green-dark);
  color: var(--white);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  display: block;
  transition: transform var(--transition);
}

.footer-social a:hover {
  transform: translateY(-3px);
}

.footer-social svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.footer-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

.footer-contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-contact-info span {
  display: block;
  font-size: 0.8rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-contact-info a {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Mobile responsive refinements */
@media (max-width: 992px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }

  .footer-contact {
    flex-direction: column;
    text-align: center;
  }
}

/* === ARTICLE & SUBPAGES === */
.article-header {
  text-align: center;
  margin-bottom: 60px;
}

.article-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 100px 0;
}

.article-section.reverse {
  direction: rtl;
}

.article-section.reverse>* {
  direction: ltr;
}

.article-text h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  position: relative;
}

.article-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-mid);
}

.article-img-wrap img {
  width: 100%;
  transition: transform 0.8s ease;
}

.article-img-wrap:hover img {
  transform: scale(1.05);
}

.data-box {
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--gold);
  margin: 60px 0;
}

.data-box h4 {
  margin-bottom: 24px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.data-list {
  list-style: none;
}

.data-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--cream-dark);
  display: flex;
  justify-content: space-between;
}

.data-list li:last-child {
  border-bottom: none;
}

.data-list strong {
  color: var(--green-dark);
}

.img-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 16px;
  font-style: italic;
}

/* Mobile responsive refinements */
@media (max-width: 992px) {
  .article-section {
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 60px 0;
  }

  .article-section.reverse {
    direction: ltr;
  }
}