/*
Theme Name: Simple Lander
Theme URI: https://czapko.ovh
Description: Modern, minimalist landing page WordPress theme with focus on simplicity and conversion.
Author: Daniel Czapko
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: simple-lander
Tags: landing-page, minimal, clean, responsive
*/

/* 
 * CSS Variables
 * Global theme variables for consistent styling across the theme.
 * Edit these values to easily change the entire theme appearance.
 */
 :root {
  --primary-color: #3a7d8c;
  --primary-color-light: #2c4c5a;
  --text-color: #4a4a4a;
  --text-color-light: #666666;
  --heading-color: #2c4a5c;
  --background-color: #ffffff;
  --background-alt-color: #f9f9f9;
  --body-font-family: 'Lato', sans-serif;
  --heading-font-family: 'Montserrat', sans-serif;
  --border-radius-small: 5px;
  --border-radius: 10px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
  --section-padding: 4rem 0;
  --container-width: 1200px;
}

/* 
 * Reset CSS 
 * Basic reset to ensure consistent styling across browsers.
 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Global List Styles */
ul:not(.main-navigation ul):not(.footer-links ul), 
ol:not(.main-navigation ol):not(.footer-links ol) {
    margin-left: 20px;
    padding-left: 0;
    list-style-type: none;
}

ul:not(.main-navigation ul):not(.footer-links ul) li, 
ol:not(.main-navigation ol):not(.footer-links ol) li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Style dla list zagnieżdżonych */
ul:not(.main-navigation ul):not(.footer-links ul) ul,
ol:not(.main-navigation ol):not(.footer-links ol) ol {
    margin-top: 10px;
    margin-bottom: 10px;
}

ul:not(.main-navigation ul):not(.footer-links ul) ul li:before,
ol:not(.main-navigation ol):not(.footer-links ol) ol li:before {
    content: "◦";
    font-size: 1.5em;
    top: -5px;
}

ul:not(.main-navigation ul):not(.footer-links ul) ul ul li:before,
ol:not(.main-navigation ol):not(.footer-links ol) ol ol li:before {
    content: "▪";
    font-size: 1.2em;
    top: -1px;
}

ul:not(.main-navigation ul):not(.footer-links ul) li:before, 
ol:not(.main-navigation ol):not(.footer-links ol) li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2em;
    top: -3px;
}

/* Numerowane listy */
ol:not(.main-navigation ol):not(.footer-links ol) {
    counter-reset: item;
}

ol:not(.main-navigation ol):not(.footer-links ol) li {
    counter-increment: item;
}

/* Style dla numerowanych list zagnieżdżonych */
ol:not(.main-navigation ol):not(.footer-links ol) ol {
    counter-reset: subitem;
}

ol:not(.main-navigation ol):not(.footer-links ol) ol li {
    counter-increment: subitem;
}

ol:not(.main-navigation ol):not(.footer-links ol) ol li:before {
    content: counter(item) "." counter(subitem) ".";
}

ol:not(.main-navigation ol):not(.footer-links ol) ol ol {
    counter-reset: subsubitem;
}

ol:not(.main-navigation ol):not(.footer-links ol) ol ol li {
    counter-increment: subsubitem;
}

ol:not(.main-navigation ol):not(.footer-links ol) ol ol li:before {
    content: counter(item) "." counter(subitem) "." counter(subsubitem) ".";
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font-family);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
}

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

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

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

/* 
 * Layout 
 * Core layout components used throughout the theme.
 */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* 
 * Header Styles 
 * Fixed header with logo and navigation.
 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 2rem 0;
}

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

/* 
 * Logo styles 
 * Styling for the site logo or title.
 */
.logo {
  display: flex;
  align-items: center;
}

.custom-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.custom-logo,
.custom-logo-link img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo h1 {
  font-size: 1.8rem;
  margin: 0;
}

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

/* 
 * Navigation 
 * Main site navigation styles.
 */
.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  margin-left: 2rem;
}

.main-navigation a {
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 
 * Hero Section 
 * Main banner with gradient background and call to action.
 */
.hero-section {
  padding: 10rem 0 6rem;
  background: linear-gradient(135deg,
  color-mix(in srgb, var(--primary-color) 5%, white) 0%,
  color-mix(in srgb, var(--primary-color) 10%, white) 25%,
  color-mix(in srgb, var(--primary-color) 20%, white) 50%,
  color-mix(in srgb, var(--primary-color) 30%, white) 75%,
  color-mix(in srgb, var(--primary-color) 40%, white) 100%);
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* Decorative background with radial gradients */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
          radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--primary-color) 15%, transparent) 0%, color-mix(in srgb, var(--primary-color) 0%, transparent) 50%),
          radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--primary-color) 10%, transparent) 0%, color-mix(in srgb, var(--primary-color) 0%, transparent) 60%);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-section p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #3a3a3a;
}

/* 
 * Button Styles 
 * Reusable button components with hover effects.
 */
.button {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
}

.primary-button {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.primary-button:hover {
  background-color: white;
  color: var(--primary-color);
}

/* 
 * About Section 
 * Two-column layout with image and text.
 */
.about-section {
  background-color: var(--background-alt-color);
}

.about-content {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.about-image {
  flex: 1;
}

.about-text {
  flex: 2;
}

.about-text p {
  margin-bottom: 1rem;
}

/* 
 * Services Section 
 * Grid layout for displaying services/features.
 */
.services-section {
  background-color: var(--background-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* 
 * Card Styles 
 * Common styling for card elements used across multiple sections.
 * Used in services, address, and contact blocks.
 */
.service-card,
.address-block,
.contact-block,
.hours-block {
  background: var(--background-alt-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  color: var(--primary-color);
}

.service-card h3 {
  margin-bottom: 1rem;
}

.service-card {
    background: var(--background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: left;
    transition: var(--transition);
}

.service-card p {
    color: var(--text-color-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 
 * Location Section 
 * Features Google Maps embed and contact information.
 */
.location-section {
  background-color: var(--background-alt-color);
}

.location-content {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
}

.map-container {
  flex: 2;
  height: 550px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

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

/* 
 * Contact Section 
 * Contact form with validation and privacy policy acceptance.
 */
.contact-section {
  background-color: var(--background-color);
}

.contact-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.contact-form-container {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-small);
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(78, 128, 152, 0.2);
}

/* 
 * Checkbox for privacy policy 
 * Custom styling for the privacy policy acceptance checkbox.
 */
.form-group.privacy-policy {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-group.privacy-policy input {
  width: auto;
  margin-top: 0.3rem;
}

/* 
 * Privacy policy page reset 
 * Specific styling for the privacy policy page.
 */
body.privacy-policy {
  display: block;
}

body.privacy-policy .container {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--container-width);
}

/* 
 * Footer 
 * Site footer with logo, navigation, and copyright info.
 */
.site-footer {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-logo h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* 
 * Mobile Menu Styles 
 * Hamburger menu and responsive navigation for mobile devices.
 */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-left: auto;
}

.menu-icon {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  position: relative;
  transition: background-color 0.3s;
}

.menu-icon:before,
.menu-icon:after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: #333;
  position: absolute;
  transition: transform 0.3s;
}

.menu-icon:before {
  top: -8px;
}

.menu-icon:after {
  bottom: -8px;
}

/* Hamburger menu animation when active */
.menu-toggle[aria-expanded="true"] .menu-icon {
  background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon:before {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon:after {
  transform: translateY(-8px) rotate(-45deg);
}

/* 
 * Accessibility 
 * Hidden elements for screen readers - improves accessibility.
 */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* 
 * Page Styles 
 * Styling for standard pages (not homepage).
 */
.page-content {
  padding: 8rem 0 4rem;
  width: 100%;
}

.page-content .site-main {
  width: 100%;
}

.page-content .container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
}

.page-content .entry-header {
  margin-bottom: 2rem;
  text-align: center;
}

.page-content .entry-title {
  font-size: 2.2rem;
  color: var(--heading-color);
}

.page-content .entry-content {
  color: var(--text-color);
  line-height: 1.6;
}

.page-content .entry-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: var(--heading-color);
}

.page-content .entry-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
  color: var(--heading-color);
}

.page-content .entry-content p {
  margin-bottom: 1.2rem;
}

.page-content .entry-content ul,
.page-content .entry-content ol {
  margin: 0 0 1.5rem 1rem;
  padding-left: 1.2rem;
}

.page-content .entry-content li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.page-content .entry-content a {
  text-decoration: underline;
}

/* 
 * Responsive Styles 
 * Media queries for different screen sizes.
 */

/* Tablets and small desktops */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }

  .about-content, 
  .location-content {
    flex-direction: column;
  }

  .location-content {
    align-items: stretch;
    width: 100%;
  }
  
  .map-container {
    flex: none;
    width: 100%;
    height: 400px;
    margin-bottom: 2rem;
  }
  
  .contact-details {
    width: 100%;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .custom-logo,
  .custom-logo-link img {
    max-height: 45px;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 100;
  }

  .menu-toggle {
    display: block;
  }
    
  .main-navigation.active {
    display: block;
  }
    
  .main-navigation ul {
    flex-direction: column;
    align-items: center;
  }
    
  .main-navigation li {
    margin: 0.5rem 0;
  }

  .hero-section {
    padding: 8rem 0 4rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-links ul {
    justify-content: center;
  }
}

/* Small mobile devices */
@media (max-width: 576px) {
  section {
    padding: 3rem 0;
  }

  .hero-section h2 {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .custom-logo,
  .custom-logo-link img {
    max-height: 40px;
  }
}
