/* ==========================================
   Petr Petřík – Angličtina s úsměvem
   ========================================== */

/* ---------- Custom Properties ---------- */
:root {
  --sun: #FFD23F;
  --ocean: #0077B6;
  --coral: #FF6B6B;
  --sand: #FFF8EE;
  --deep: #023E5C;
  --mint: #52D9B1;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-light: #5a6170;
  --radius: 16px;
  --card-border: 2.5px solid var(--deep);
  --card-shadow: 6px 8px 0 var(--deep);
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--deep);
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Section Tag ---------- */
.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ocean);
  margin-bottom: 0.5rem;
}

.section-tag--light {
  color: var(--sun);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: var(--card-border);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--card-shadow);
}

.btn:active {
  transform: translate(0, 0);
  box-shadow: none;
}

.btn--primary {
  background: var(--sun);
  color: var(--deep);
}

.btn--outline {
  background: transparent;
  color: var(--deep);
}

.btn--nav {
  padding: 0.55rem 1.3rem;
  background: var(--coral);
  color: var(--white) !important;
  border-color: var(--deep);
  border-radius: 50px;
  font-weight: 600;
}

.btn--lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* ==========================================
   NAV
   ========================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 248, 238, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--sun);
  transition: box-shadow 0.3s;
}

.nav--scrolled {
  box-shadow: 0 2px 20px rgba(2, 62, 92, 0.1);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav__logo {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--deep);
}

.nav__logo-petr { color: var(--deep); }
.nav__logo-petrik { color: var(--coral); }
.nav__logo-cz { color: var(--deep); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--deep);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--ocean);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--deep);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  padding: 120px 0 80px;
  background: var(--sand);
  overflow: hidden;
}

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

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sun);
  color: var(--deep);
  border: none;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero__tag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--deep);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  color: var(--deep);
  margin-bottom: 1.2rem;
}

.accent {
  color: var(--coral);
  font-style: italic;
  font-family: 'Fraunces', serif;
}

.accent2 {
  color: var(--ocean);
  font-family: 'Fraunces', serif;
}

.hero__microcopy {
  text-align: center;
  color: #777;
  font-size: 0.88rem;
  margin-top: 0.5rem;
}

.hero__perex {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Card */
.hero__card-wrap {
  display: flex;
  justify-content: center;
}

.hero__card {
  background: var(--white);
  border: 2.5px solid var(--deep);
  border-radius: 2rem;
  box-shadow: 8px 10px 0 var(--deep);
  max-width: 380px;
  overflow: hidden;
  text-align: center;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 1.2rem 1.2rem 0 0;
  display: block;
}

.hero__card-body {
  padding: 1.2rem 1.5rem 1.5rem;
  text-align: center;
}

.hero__name {
  margin-top: 1.2rem;
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--deep);
  letter-spacing: -0.5px;
}

.hero__subtitle {
  color: var(--coral);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.3rem;
  margin-bottom: 1rem;
}

.hero__card-stats {
  display: flex;
  gap: 0.8rem;
  padding: 0 1rem;
  margin-bottom: 16px;
}

.hero__card-stat {
  background: var(--sand);
  border: 1.5px solid #e8dfd0;
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  flex: 1;
}

.hero__card-stat strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--deep);
}

.hero__card-stat span {
  font-size: 0.75rem;
  color: var(--text-light);
}

.hero__card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.tag {
  border: 1.5px solid var(--deep);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
}

.tag--sun { background: var(--sun); }
.tag--blue { background: #d0eeff; }
.tag--mint { background: #c8f7e8; }

/* ==========================================
   O MNĚ
   ========================================== */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about__text p {
  color: var(--text-light);
  margin-bottom: 1rem;
  text-align: justify;
}

.about__stats {
  display: flex;
  gap: 24px;
  margin-top: 2rem;
}

.about__stat {
  background: var(--sand);
  border: var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 20px 24px;
  text-align: center;
  flex: 1;
}

.about__stat strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  color: var(--ocean);
  margin-bottom: 4px;
}

.about__stat span {
  font-size: 0.82rem;
  color: var(--text-light);
}

.about__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 2.5rem;
}

.about__microcopy {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.5rem;
  text-align: center;
}

.about__cta-text {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 1.2rem;
}

.btn-primary {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: var(--card-border);
  background: var(--sun);
  color: var(--deep);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--card-shadow);
}

.btn-primary:active {
  transform: translate(0, 0);
  box-shadow: none;
}

.about__slogan {
  background: var(--sand);
  color: var(--deep);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 1rem;
  padding: 1.2rem 1.8rem;
  border-left: 4px solid var(--sun);
  box-shadow: 4px 4px 0 var(--sun);
  margin-top: 5rem;
  text-align: center;
}

.about__photos {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about__photo {
  border: var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

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

.about__photo--tabule img {
  height: 400px;
  object-position: 10% center;
}

.about__photo--travel img {
  height: 420px;
  object-position: 75% 15%;
}

.about__photo figcaption {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--sand);
  text-align: center;
}

/* ==========================================
   CO NABÍZÍM
   ========================================== */
.services {
  padding: 100px 0;
  background: var(--sand);
  text-align: center;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 3rem;
}

.card {
  background: var(--white);
  border: var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 36px 28px;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 12px 0 var(--deep);
}

.card__icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.15rem;
  color: var(--deep);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.92rem;
  color: var(--text-light);
}

/* ==========================================
   PRO KOHO
   ========================================== */
.audience {
  padding: 100px 0;
  background: var(--deep);
  color: var(--white);
  text-align: center;
}

.audience h2 {
  color: var(--white);
}

.audience__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 3rem;
}

.audience__card {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 32px 20px;
  transition: transform 0.3s, background 0.3s;
}

.audience__card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.14);
}

.audience__icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 14px;
}

.audience__card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.audience__card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   JAK TO FUNGUJE
   ========================================== */
.steps {
  padding: 100px 0;
  background: var(--white);
  text-align: center;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 3rem;
}

.steps__item {
  position: relative;
  text-align: center;
}

.steps__number {
  font-family: 'Fraunces', serif;
  font-size: 4rem;
  font-weight: 800;
  color: var(--sun);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
  -webkit-text-stroke: 2px var(--deep);
}

.steps__item h3 {
  font-size: 1.1rem;
  color: var(--deep);
  margin-bottom: 8px;
}

.steps__item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ==========================================
   REFERENCE
   ========================================== */
.testimonials {
  padding: 100px 0;
  background: var(--sand);
  text-align: center;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 3rem;
}

.testimonial {
  background: var(--white);
  border: var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 36px 28px;
  text-align: left;
  position: relative;
}

.review__stars {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.testimonial__quote {
  font-family: 'Fraunces', serif;
  font-size: 4rem;
  color: var(--sun);
  line-height: 1;
  margin-bottom: -10px;
}

.testimonial p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial__author strong {
  display: block;
  font-size: 1rem;
  color: var(--deep);
}

.testimonial__author span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ==========================================
   KONTAKT
   ========================================== */
.contact {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--deep) 0%, #01304a 100%);
  color: var(--white);
  text-align: center;
}

.contact h2 {
  color: var(--white);
}

.contact__subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.contact__form {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

.form__group--full {
  margin-bottom: 20px;
}

.form__group label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.9);
}

.form__group input,
.form__group select,
.form__group textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  padding: 14px 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: border-color 0.2s, background 0.2s;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--sun);
  background: rgba(255, 255, 255, 0.12);
}

.form__group select option {
  background: var(--deep);
  color: var(--white);
}

.contact .btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--sun);
  color: var(--deep);
  border: var(--card-border);
}

.contact .btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 8px 0 #d0eeff;
}

.contact .btn:active {
  transform: translate(0, 0);
  box-shadow: none;
}

.field-error {
  display: block;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.4rem;
}

.form__microcopy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.8rem;
  text-align: center;
}

.form__status {
  margin-top: 16px;
  font-size: 0.95rem;
  min-height: 1.5em;
  text-align: center;
}

.form__status--success {
  color: var(--mint);
}

.form__status--error {
  color: var(--coral);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================
   REVEAL ANIMATIONS
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .steps__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* Mobile */
@media (max-width: 768px) {

  /* -- General -- */
  html, body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 1.2rem;
  }

  /* -- NAV -- */
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--sand);
    flex-direction: column;
    padding: 24px 20px;
    gap: 20px;
    border-bottom: 2px solid var(--sun);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .nav__links--open {
    transform: translateY(0);
  }

  .nav__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .nav__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  /* -- HERO -- */
  .hero {
    padding: 100px 0 60px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 7vw, 3.5rem);
  }

  .hero__perex {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__text > div[style] {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero__card-wrap {
    width: 100%;
  }

  .hero__card {
    max-width: 100%;
    width: 100%;
  }

  .hero__card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0 0.8rem;
  }

  .hero__card-stat {
    padding: 0.7rem 0.4rem;
  }

  .hero__card-stat strong {
    font-size: 1.2rem;
  }

  .hero__card-stat span {
    font-size: 0.65rem;
    white-space: nowrap;
    text-align: center;
    display: block;
  }

  /* -- O MNĚ -- */
  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__photos {
    order: -1;
    width: 100%;
  }

  .about__text {
    order: 2;
  }

  .about__photo--tabule img {
    height: 280px;
    object-position: 20% center;
    object-fit: cover;
  }

  .about__photo--travel img {
    height: 300px;
  }

  .about__stats {
    flex-direction: column;
    gap: 16px;
  }

  .about__slogan {
    width: 100%;
  }

  /* -- CO NABÍZÍM / JAK TO FUNGUJE -- */
  .services__grid,
  .steps__grid {
    grid-template-columns: 1fr;
  }

  /* -- PRO KOHO -- */
  .audience__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  /* -- JAK TO FUNGUJE (číslo vlevo, text vpravo) -- */
  .steps__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
  }

  .steps__number {
    font-size: 3rem;
    flex-shrink: 0;
    min-width: 60px;
  }

  /* -- REFERENCE -- */
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  /* -- KONTAKT -- */
  .form__row {
    grid-template-columns: 1fr;
  }

  .contact__form {
    max-width: 100%;
  }

  /* -- FOOTER -- */
  .footer {
    padding: 24px 1.2rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .audience__grid {
    grid-template-columns: 1fr;
  }
}
