/*
Theme Name: SensLogos
Author: Rafał Gordzielik, Kevin Gruszecki
Author URI: https://rafgorit.pl
Description: Nowoczesny szablon WordPress dla gabinetu logopedycznego, integracji sensorycznej i zajęć korekcyjno-kompensacyjnych.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: senslogos
Tags: custom-menu, featured-images, flexible-header, responsive-layout, translation-ready, accessibility-ready
*/

/* ----------------------------------------------------
   1. CSS VARIABLES & THEME TOKENS
   ---------------------------------------------------- */
:root {
  /* Colors from Dok1 & makieta.png */
  --color-marine: #00a2c0;         /* Morski błękit */
  --color-navy: #1e355e;           /* Głęboki granat */
  --color-beige: #fbf5e6;          /* Ciepły beż */
  --color-beige-dark: #f0e6cf;     /* Darker warm beige */
  --color-green: #8db641;          /* Przycisk - zielony */
  --color-green-hover: #7aa034;
  
  /* Layout Colors */
  --color-text-dark: #2d3748;
  --color-text-muted: #5a6a85;
  --color-white: #ffffff;
  --color-light-blue: #eef9fc;
  
  /* Typography */
  --font-headers: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-ui: 'Montserrat', sans-serif;
  
  /* Spacing */
  --container-width: 1200px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 40px rgba(30, 53, 94, 0.1);
}

/* ----------------------------------------------------
   2. CSS RESET & BASICS
   ---------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headers);
  color: var(--color-navy);
  margin-top: 0;
  font-weight: 600;
}

h1 {
  font-weight: 700;
}

p {
  margin-bottom: 1.5rem;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ----------------------------------------------------
   3. TYPOGRAPHY & BUTTONS
   ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--color-green);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(141, 182, 65, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(141, 182, 65, 0.4);
}

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

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-marine);
  transform: translateY(-2px);
}

/* ----------------------------------------------------
   4. LAYOUT: HEADER
   ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
  transition: var(--transition-smooth);
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 60px;
  width: auto;
}

.logo-text {
  font-family: var(--font-headers);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-navy);
}

.logo-text span {
  color: var(--color-marine);
}

.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-menu a {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-navy);
  padding: 0.5rem 0;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-green);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
  width: 100%;
}

.header-phone {
  margin-left: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--color-navy);
  transition: var(--transition-smooth);
}

.header-phone:hover {
  color: var(--color-marine);
}

.header-phone svg {
  fill: var(--color-marine);
  width: 18px;
  height: 18px;
}

/* Mobile Nav Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-navy);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* ----------------------------------------------------
   5. WAVES & SEPARATORS
   ---------------------------------------------------- */
.wave-divider {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.wave-top {
  top: 0;
  transform: rotate(180deg);
}

.wave-bottom {
  bottom: 0;
}

.wave-marine { fill: var(--color-marine); }
.wave-beige { fill: var(--color-beige); }
.wave-white { fill: var(--color-white); }
.wave-light-blue { fill: var(--color-light-blue); }

/* ----------------------------------------------------
   6. HERO SECTION
   ---------------------------------------------------- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #00bada 0%, var(--color-marine) 100%);
  padding: 100px 0 160px;
  color: var(--color-white);
  overflow: hidden;
}

/* Background floating wave shapes for artistic feel */
.hero-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,32L80,37.3C160,43,320,53,480,58.7C640,64,800,64,960,53.3C1120,43,1280,21,1360,10.7L1440,0L1440,100L1360,100C1280,100,1120,100,960,100C800,100,640,100,480,100C320,100,160,100,80,100L0,100Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: 100% 100%;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-title {
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
  font-family: var(--font-headers);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  color: var(--color-navy);
  letter-spacing: 0.5px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

.hero-media {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
}

.hero-img {
  max-width: 100%;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.15));
  animation: float 6s ease-in-out infinite;
}

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

/* ----------------------------------------------------
   7. QUICK SERVICES (OVERVIEW CARDS)
   ---------------------------------------------------- */
.quick-services {
  padding: 0;
  margin-top: -80px; /* pull up into hero */
  position: relative;
  z-index: 10;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.quick-card {
  background-color: var(--color-beige);
  border-radius: var(--border-radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  border: 1px solid rgba(240, 230, 207, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quick-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background-color: var(--color-white);
  border-color: var(--color-marine);
}

.quick-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.quick-card:nth-child(1) .quick-icon-wrapper { background-color: var(--color-marine); }
.quick-card:nth-child(2) .quick-icon-wrapper { background-color: #e26a27; }
.quick-card:nth-child(3) .quick-icon-wrapper { background-color: var(--color-navy); }

.quick-icon-wrapper svg {
  width: 32px;
  height: 32px;
  fill: var(--color-white);
}

.quick-card-title {
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.quick-card-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ----------------------------------------------------
   8. ABOUT US (O NAS)
   ---------------------------------------------------- */
.about-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.about-section .wave-divider {
  height: 100px;
}

.about-bg-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 10% 20%, rgba(0, 162, 192, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(251, 245, 230, 0.6) 0%, transparent 50%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.about-content {
  position: relative;
  z-index: 2;
}

.section-label {
  font-family: var(--font-headers);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
  position: relative;
}

.section-subtitle {
  font-family: var(--font-headers);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-marine);
  margin-bottom: 1.5rem;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-dark);
  margin-bottom: 2rem;
}

.about-media {
  position: relative;
  z-index: 2;
}

.about-img-frame {
  position: relative;
  padding: 10px;
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.05);
}

.about-img {
  border-radius: var(--border-radius-md);
  width: 100%;
  object-fit: cover;
}

/* ----------------------------------------------------
   9. OUR OFFER (NASZA OFERTA)
   ---------------------------------------------------- */
.offer-section {
  padding: 100px 0 120px;
  background-color: #f6fcfd;
  position: relative;
}

.offer-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.offer-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 162, 192, 0.2);
}

.offer-img-wrapper {
  overflow: hidden;
  position: relative;
  height: 220px;
}

.offer-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.offer-card:hover .offer-card-img {
  transform: scale(1.05);
}

.offer-card-content {
  padding: 2rem 1.5rem;
}

.offer-card-title {
  font-family: var(--font-headers);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.offer-card-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  height: 50px;
  overflow: hidden;
}

.offer-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy);
}

.offer-card-link svg {
  fill: var(--color-marine);
  width: 16px;
  height: 16px;
  transition: var(--transition-smooth);
}

.offer-card:hover .offer-card-link svg {
  transform: translateX(4px);
}

/* ----------------------------------------------------
   10. CONTACT SECTION (KONTAKT)
   ---------------------------------------------------- */
.contact-section {
  padding: 120px 0;
  background-color: var(--color-white);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
}

.contact-info-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-title {
  font-family: var(--font-headers);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.contact-subtitle {
  font-family: var(--font-headers);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-marine);
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  background-color: var(--color-beige);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-box svg {
  width: 22px;
  height: 22px;
  fill: var(--color-marine);
}

.contact-detail-label {
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.contact-detail-value {
  color: var(--color-text-dark);
  font-size: 1rem;
  line-height: 1.5;
}

/* Contact Form container matching mockup (solid teal box) */
.contact-form-side {
  background-color: var(--color-marine);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  color: var(--color-white);
}

.contact-form-side form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.form-control {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--border-radius-sm);
  padding: 0.9rem 1.2rem;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.25);
  border-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-submit-btn {
  background-color: var(--color-green);
  color: var(--color-white);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 1rem;
}

.form-submit-btn:hover {
  background-color: var(--color-green-hover);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.form-response-msg {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  margin-top: 1rem;
  display: none;
}

.form-response-msg.success {
  display: block;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--color-white);
}

.form-response-msg.error {
  display: block;
  background-color: #f87171;
  border: 1px solid #ef4444;
  color: var(--color-white);
}

/* ----------------------------------------------------
   11. FOOTER (STOPKA)
   ---------------------------------------------------- */
.site-footer {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 3rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: center;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,32L120,26.7C240,21,480,11,720,16C960,21,1200,43,1320,53.3L1440,64L1440,0L1320,0C1200,0,960,0,720,0C480,0,240,0,120,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: 100% 100%;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  opacity: 0.8;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--color-marine);
}

.footer-copyright {
  opacity: 0.7;
  font-size: 0.85rem;
}

.footer-copyright a {
  text-decoration: underline;
}

/* ----------------------------------------------------
   12. RESPONSIVENESS & MEDIA QUERIES
   ---------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .quick-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-media {
    order: -1; /* Image above text on mobile */
  }
  
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 1rem 0;
  }
  
  .menu-toggle {
    display: block;
    z-index: 1001;
  }
  
  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 80px 2rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
  }
  
  .main-navigation.is-active {
    right: 0;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 1.5rem;
  }
  
  .nav-menu a {
    font-size: 1.1rem;
    display: block;
    width: 100%;
  }
  
  .header-phone {
    width: 100%;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
  }
  
  /* Hambuger transform to 'X' */
  .menu-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .quick-grid {
    grid-template-columns: 1fr;
    margin-top: -60px;
  }
  
  .offer-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form-side {
    padding: 2rem 1.5rem;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }
}
