/*
Theme Name: AllCare One Page
Theme URI: https://allcarefm.gr
Author: OpenAI Codex
Author URI: https://openai.com
Description: A custom one-page WordPress theme for AllCare Facility Management.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: allcare-onepage
*/

:root {
  --allcare-blue: #0d4b9d;
  --allcare-blue-deep: #08346d;
  --allcare-blue-soft: #eaf2fb;
  --allcare-orange: #ff7a14;
  --allcare-orange-deep: #e86605;
  --allcare-ink: #17314d;
  --allcare-muted: #5d6f85;
  --allcare-border: rgba(13, 75, 157, 0.12);
  --allcare-white: #ffffff;
  --allcare-shadow: 0 20px 50px rgba(9, 42, 89, 0.12);
  --allcare-radius: 22px;
  --allcare-max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--allcare-ink);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 20, 0.12), transparent 28%),
    linear-gradient(180deg, #f6f9fe 0%, #ffffff 18%, #f2f7fd 100%);
  line-height: 1.6;
}

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

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

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.site-shell {
  overflow: hidden;
}

.container {
  width: min(calc(100% - 2rem), var(--allcare-max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(13, 75, 157, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand img {
  width: min(250px, 44vw);
  height: auto;
}

.brand-copy {
  display: none;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  color: var(--allcare-blue-deep);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--allcare-orange-deep);
}

.hero {
  position: relative;
  padding: 6rem 0 4rem;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 380px;
  height: 380px;
  right: -120px;
  top: 20px;
  background: radial-gradient(circle, rgba(255, 122, 20, 0.24), rgba(255, 122, 20, 0));
}

.hero::after {
  width: 420px;
  height: 420px;
  left: -180px;
  top: 80px;
  background: radial-gradient(circle, rgba(13, 75, 157, 0.18), rgba(13, 75, 157, 0));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(13, 75, 157, 0.08);
  color: var(--allcare-blue-deep);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1,
.section-heading h2 {
  margin: 0 0 1rem;
  line-height: 1.08;
  color: var(--allcare-blue-deep);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  max-width: 12ch;
}

.hero p {
  max-width: 62ch;
  font-size: 1.06rem;
  color: var(--allcare-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.8rem 0;
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.4rem;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(135deg, var(--allcare-orange) 0%, var(--allcare-orange-deep) 100%);
  color: var(--allcare-white);
  box-shadow: 0 16px 35px rgba(255, 122, 20, 0.28);
}

.button-secondary {
  background: var(--allcare-white);
  color: var(--allcare-blue-deep);
  border: 1px solid rgba(13, 75, 157, 0.14);
}

.button:hover,
.button:focus-visible,
button:hover,
button:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible {
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card,
.info-card,
.service-card,
.sector-card,
.contact-card,
.contact-form-card,
.process-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--allcare-radius);
  box-shadow: var(--allcare-shadow);
}

.stat-card {
  padding: 1.1rem 1rem;
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--allcare-blue-deep);
}

.stat-card span {
  color: var(--allcare-muted);
  font-size: 0.95rem;
}

.hero-panel {
  position: relative;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(8, 52, 109, 0.96) 0%, rgba(13, 75, 157, 0.94) 100%);
  color: var(--allcare-white);
  border-radius: 32px;
  box-shadow: 0 30px 60px rgba(8, 52, 109, 0.28);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.panel-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}

.panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--allcare-orange);
  box-shadow: 0 0 0 6px rgba(255, 122, 20, 0.16);
  flex: 0 0 auto;
}

.section {
  padding: 5.25rem 0;
}

.section-heading {
  max-width: 56rem;
  margin-bottom: 2rem;
}

.section-heading p {
  margin: 0;
  color: var(--allcare-muted);
  font-size: 1.02rem;
}

.services-grid,
.why-grid,
.process-grid,
.sectors-grid,
.contact-grid {
  display: grid;
  gap: 1.3rem;
}

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

.service-card,
.info-card,
.sector-card,
.process-card {
  padding: 1.6rem;
}

.service-icon,
.info-icon,
.process-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 122, 20, 0.16), rgba(13, 75, 157, 0.12));
  color: var(--allcare-blue-deep);
  font-weight: 800;
}

.service-card h3,
.info-card h3,
.sector-card h3,
.process-card h3,
.contact-card h3 {
  margin: 0 0 0.7rem;
  color: var(--allcare-blue-deep);
}

.service-card p,
.info-card p,
.sector-card p,
.process-card p,
.contact-card p,
.contact-form-card p {
  margin: 0;
  color: var(--allcare-muted);
}

.why-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-index {
  background: rgba(13, 75, 157, 0.09);
}

.sectors-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sector-card {
  position: relative;
  overflow: hidden;
}

.sector-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 20, 0.18), rgba(255, 122, 20, 0));
}

.contact-band {
  background:
    linear-gradient(120deg, rgba(8, 52, 109, 0.98) 0%, rgba(13, 75, 157, 0.94) 55%, rgba(255, 122, 20, 0.95) 150%);
  color: var(--allcare-white);
}

.contact-band .section-heading h2,
.contact-band .section-heading p,
.contact-band .contact-card h3,
.contact-band .contact-card p,
.contact-band label {
  color: var(--allcare-white);
}

.contact-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.contact-stack {
  display: grid;
  gap: 1rem;
}

.contact-card,
.contact-form-card {
  padding: 1.7rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid transparent;
  font: inherit;
  color: var(--allcare-ink);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(255, 122, 20, 0.28);
  outline-offset: 2px;
}

.site-footer {
  padding: 1.4rem 0 2.2rem;
  color: var(--allcare-muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer-note {
  color: var(--allcare-blue-deep);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .hero-grid,
  .contact-grid,
  .services-grid,
  .process-grid,
  .sectors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .site-header {
    position: static;
  }

  .header-inner,
  .footer-inner,
  .site-nav ul,
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-grid,
  .services-grid,
  .process-grid,
  .sectors-grid,
  .contact-grid,
  .hero-stats,
  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .brand img {
    width: min(220px, 65vw);
  }

  .hero-panel {
    padding: 1.5rem;
  }
}
