/*
Theme Name: ESC Theme
Theme URI: https://ephramstcloud.eu
Author: ESC
Description: A lightweight WordPress theme inspired by ephramstcloud.eu.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: esc-theme
*/

:root {
  --esc-bg: #fbfbfd;
  --esc-card: #ffffff;
  --esc-text: #22212e;
  --esc-muted: #5f6070;
  --esc-primary: #232135;
  --esc-primary-dark: #11111d;
  --esc-border: #ededf1;
  --esc-input: #f3f3f4;
  --esc-footer: #2f2b46;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  color: var(--esc-text);
  background: var(--esc-bg);
  line-height: 1.6;
}

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

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

.esc-container {
  width: min(1240px, 90%);
  margin: 0 auto;
}

.site-header {
  background: #fff;
}

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

.site-title {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  font-weight: 400;
  color: #000;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.site-logo-image {
  display: block;
  width: auto;
  height: clamp(48px, 6vw, 76px);
  max-width: min(320px, 75vw);
}

.site-nav {
  display: block;
}

.site-nav-list {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav-list a {
  color: var(--esc-text);
  font-size: 0.95rem;
}

.site-nav-list .current-menu-item > a,
.site-nav-list .current_page_item > a {
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}

.contact-hero {
  padding: 5rem 0 3rem;
}

.blog-hero {
  padding: 4.5rem 0 2rem;
  text-align: center;
}

.blog-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
}

.blog-hero p {
  margin: 0.75rem auto 0;
  max-width: 620px;
  color: var(--esc-muted);
}

.blog-listing {
  padding: 1.25rem 0 4rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--esc-border);
}

.blog-card-link {
  color: inherit;
  display: block;
  height: 100%;
}

.blog-card-media img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.15rem 1.15rem 1.4rem;
}

.blog-card-meta {
  margin: 0 0 0.45rem;
  color: var(--esc-muted);
  font-size: 0.88rem;
}

.blog-card-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.blog-card-excerpt {
  margin-top: 0.8rem;
  color: #3d3d49;
}

.blog-card-excerpt p {
  margin: 0;
}

.blog-card-readmore {
  display: inline-block;
  margin-top: 0.95rem;
  font-weight: 700;
}

.blog-pagination {
  margin-top: 2rem;
}

.blog-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.blog-pagination .page-numbers {
  border: 1px solid var(--esc-border);
  padding: 0.45rem 0.75rem;
  background: #fff;
}

.blog-pagination .page-numbers.current {
  background: #11111d;
  border-color: #11111d;
  color: #fff;
}

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

.contact-intro h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.2;
}

.contact-intro p {
  margin: 0 auto 1.65rem;
  max-width: 620px;
  font-size: 0.95rem;
  color: var(--esc-text);
}

.contact-form {
  max-width: 620px;
  margin: 4.5rem auto 0;
}

.contact-form-plugin p {
  margin: 0 0 1.35rem;
}

.contact-form-plugin label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}

.contact-form-plugin input[type="text"],
.contact-form-plugin input[type="email"],
.contact-form-plugin textarea {
  width: 100%;
  border: 0;
  background: var(--esc-input);
  padding: 1rem 1.1rem;
  font: inherit;
  color: var(--esc-text);
}

.contact-form-plugin textarea {
  min-height: 190px;
  resize: vertical;
}

.contact-form-plugin input[type="submit"] {
  border: 0;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  padding: 1rem 2.75rem;
  min-width: 150px;
  border-radius: 999px;
  cursor: pointer;
}

.form-row {
  margin-bottom: 1.35rem;
}

.form-row label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 0;
  background: var(--esc-input);
  padding: 1rem 1.1rem;
  font: inherit;
  color: var(--esc-text);
}

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

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #b9b9bf;
}

.form-actions {
  text-align: center;
  padding-top: 1.5rem;
}

.submit-button {
  border: 0;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  padding: 1rem 2.75rem;
  min-width: 150px;
  border-radius: 999px;
  cursor: pointer;
}

.submit-button:hover {
  background: var(--esc-primary-dark);
}

.follow-section {
  text-align: center;
  padding: 4.5rem 0 5rem;
}

.follow-section h2 {
  margin: 0 0 2rem;
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  color: #13131d;
  font-size: 1.75rem;
  font-weight: 700;
}

.social-links a:hover {
  color: #13131d;
}

.site-footer {
  margin-top: 2rem;
  background: var(--esc-footer);
  padding: 3rem 0 2.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
}

.entry-content {
  background: #fff;
  border: 1px solid var(--esc-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.footer-brand {
  margin: 0 0 1rem;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(2.3rem, 3vw, 3.6rem);
}

.footer-brand-logo-wrap {
  font-size: 0;
}

.footer-logo-image {
  display: inline-block;
  width: auto;
  height: clamp(58px, 7vw, 90px);
  max-width: min(360px, 85vw);
  filter: brightness(0) invert(1);
}

.footer-tagline,
.footer-copy {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.9);
}

.social-links-footer {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.social-links-footer a {
  color: #fff;
}

.social-links-footer a:hover {
  color: #fff;
}

@media (max-width: 800px) {
  .site-header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .site-nav-list {
    justify-content: center;
    gap: 1rem 1.25rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .contact-hero {
    padding-top: 3rem;
  }
}
