/*
Theme Name: SimPol Theme
Theme URI: https://example.com/simpol-theme
Author: SimPol
Author URI: https://example.com
Description: A custom WordPress theme created for SimPol. The design follows modern 2025 web trends with a clean, modular layout, warm colour palette and bold typography. It includes dedicated B2B and B2C landing pages, a blog section, subtle contact form and Polish‑language privacy/terms pages.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simpol-theme
Tags: custom-header, custom-background, responsive-layout, blog, translation-ready
*/

/*
=============================================================================
  Global variables
  Define colour palette and typographic scale. Warm tones inspired by 2025
  design trends are used throughout the site to create a welcoming space while
  maintaining high contrast for readability. Colours are pulled from the
  SimPol logo (red and white) and complemented with off‑white and dark grey.
=============================================================================
*/

:root {
  --colour-primary: #d81e31; /* deep red inspired by the logo */
  --colour-secondary: #f5f5f5; /* light grey/off‑white for backgrounds */
  --colour-dark: #1a1a1a; /* dark grey for text */
  --colour-accent: #00a1e0; /* vibrant blue accent used sparingly */
  --colour-muted: #ececec; /* muted background blocks */

  --font-base: 16px;
  --font-family-sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  --font-family-serif: "Georgia", serif;
}

/*
  Reset and base styles
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family-sans);
  font-size: var(--font-base);
  line-height: 1.6;
  color: var(--colour-dark);
  background-color: var(--colour-secondary);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-family-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--colour-dark);
}

p {
  margin-bottom: 1em;
}

a {
  color: var(--colour-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: var(--colour-accent);
  text-decoration: underline;
}

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

/*
  Layout container: restrict content width and provide responsive padding
*/

.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
}

/*
  Header styles
*/

.site-header {
  background-color: var(--colour-secondary);
  border-bottom: 1px solid var(--colour-muted);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

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

.site-logo img {
  width: 50px;
  height: 50px;
  margin-right: 0.5rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--colour-dark);
}

nav.site-nav {
  display: flex;
  gap: 1rem;
}

nav.site-nav a {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

nav.site-nav a:hover,
nav.site-nav a:focus {
  background-color: var(--colour-muted);
}

/*
  Hero section
*/

.hero {
  background: linear-gradient(
    120deg,
    var(--colour-primary) 0%,
    var(--colour-accent) 100%
  );
  color: white;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #fefefe;
}

.hero .cta {
  margin-top: 2rem;
}

.hero .btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  background-color: white;
  color: var(--colour-primary);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero .btn:hover,
.hero .btn:focus {
  background-color: var(--colour-muted);
  color: var(--colour-primary);
}

/*
  Section blocks – used to separate content into blocks with alternate
  background colours for visual rhythm. These blocks align with the 2025
  trend of using big blocks and vivid contrast【941440527045248†L234-L244】.
*/

.block {
  padding: 3rem 0;
}

.block.dark {
  background-color: var(--colour-dark);
  color: white;
}

.block.light {
  background-color: var(--colour-secondary);
}

.block .section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/*
  Grid layout for features or service cards
*/

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

.card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card p {
  margin-bottom: 1rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--colour-primary);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--colour-accent);
}

/*
  Footer styles
*/

.site-footer {
  background-color: var(--colour-dark);
  color: white;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--colour-accent);
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--colour-primary);
}

/*
  Blog styles
*/

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--colour-muted);
}

.post-list h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.post-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}

.post-excerpt {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/*
  Contact form styles – subtle suggestion for the user to reach out without
  overtly pushing them. The form is placed inside a muted block on blog pages.
*/

.contact-form {
  background-color: var(--colour-muted);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 3rem;
}

.contact-form h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--colour-muted);
  border-radius: 4px;
  margin-bottom: 1rem;
  font-family: var(--font-family-sans);
}

.contact-form button {
  padding: 0.75rem 1.5rem;
  background-color: var(--colour-primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.contact-form button:hover {
  background-color: var(--colour-accent);
}

/*
  Responsive adjustments
*/

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  nav.site-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}
