/*!
Theme Name: Ellenbrook Medical Centre
Theme URI: https://www.ellenbrookmc.net.au
Author: Codex
Description: Custom theme for Ellenbrook Medical Centre migration from Squarespace to WordPress.
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ellenbrookmc
*/

/* Base */
:root {
  --emc-accent: #f0523d;
  --emc-text: #000000;
  --emc-muted: #737373;
  --emc-soft: #fafafa;
  --emc-bg: #ffffff;
  --emc-radius: 16px;
  --emc-radius-small: 12px;
  --emc-max-width: 1200px;
  --emc-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--emc-text);
  background: var(--emc-bg);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0 0 0.5em;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--emc-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.emc-container {
  width: min(var(--emc-max-width), calc(100% - 32px));
  margin: 0 auto;
}

.emc-section {
  padding: 64px 0;
}

@media (max-width: 768px) {
  .emc-section {
    padding: 40px 0;
  }
}

/* Header */
.emc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

.emc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.emc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.emc-logo {
  width: 160px;
  height: auto;
}

.emc-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.emc-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.emc-nav-links li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.emc-nav-links a {
  color: var(--emc-text);
  font-weight: 600;
}

.emc-nav .emc-cta {
  margin-left: 12px;
}

.emc-hero p {
  margin: 0;
  color: #ffffff;
  opacity: 0.9;
}

/* Buttons */
.emc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.emc-btn:active {
  transform: translateY(1px);
}

.emc-btn-primary {
  background: var(--emc-accent);
  color: #ffffff;
  border-color: var(--emc-accent);
}

.emc-btn-primary:hover {
  box-shadow: var(--emc-shadow);
}

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

.emc-btn-outline:hover {
  background: rgba(240, 82, 61, 0.08);
}

/* Hero */
.emc-hero {
  position: relative;
  padding: 96px 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.25) 60%), url("assets/images/hero.jpg") center/cover no-repeat;
  color: #ffffff;
}

.emc-hero-content {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.emc-hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.emc-hero h1 {
  font-size: clamp(32px, 4vw, 44px);
}

/* Card-like wrapper */
.emc-card {
  background: #ffffff;
  border-radius: var(--emc-radius);
  padding: 32px;
  box-shadow: var(--emc-shadow);
}

.emc-soft {
  background: var(--emc-soft);
}

/* Updates */
.emc-updates {
  display: grid;
  gap: 12px;
}

.emc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.emc-card-plain {
  background: #ffffff;
  border-radius: var(--emc-radius-small);
  padding: 20px;
  border: 1px solid #e7e7e7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.emc-card-plain h3 {
  margin-bottom: 6px;
}

.emc-muted {
  color: var(--emc-muted);
}

.emc-card-plain img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 10px;
  box-shadow: var(--emc-shadow);
}

/* About */
.emc-about {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.emc-about img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(var(--emc-shadow));
}

@media (max-width: 900px) {
  .emc-about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .emc-about img {
    margin: 0 auto;
  }
}

/* Urgent banner */
.emc-urgent {
  background: var(--emc-accent);
  color: #ffffff;
  text-align: center;
  border-radius: var(--emc-radius);
  padding: 28px;
}

/* Logos */
.emc-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  align-items: center;
  justify-items: center;
}

.emc-logos img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.1);
}

/* Contact band */
.emc-contact {
  text-align: center;
  display: grid;
  gap: 12px;
}

.emc-contact .emc-hero-buttons {
  justify-content: center;
}

.emc-page-hero {
  text-align: center;
  margin-bottom: 32px;
}

.emc-page-hero h1 {
  margin-bottom: 12px;
}

.emc-page-hero p {
  margin: 0 auto;
  max-width: 760px;
  color: var(--emc-muted);
}

.emc-list {
  padding-left: 18px;
  margin: 0 0 1em;
}

.emc-team-section {
  text-align: center;
}

.emc-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px 24px;
  justify-items: center;
}

.emc-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.emc-team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--emc-shadow);
}

.emc-team-card h3 {
  margin: 0;
  font-size: 15px;
  color: #0b7c6f;
}

.emc-team-card .emc-muted {
  font-size: 12px;
  margin: 0;
}

.emc-team-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #0b7c6f;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: var(--emc-shadow);
}

/* Footer */
.emc-footer {
  background: #121552;
  color: #ffffff;
  margin-top: 48px;
}

.emc-footer .emc-footer-block {
  padding-top: 24px;
  padding-bottom: 0;
}

.emc-footer .wp-block-group,
.emc-footer .wp-block-columns {
  max-width: var(--emc-max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Block color helpers (for footer block page) */
.has-foreground-background-color {
  background-color: #121552;
}

.has-foreground-color {
  color: #121552;
}

.has-white-color {
  color: #ffffff;
}

.has-white-background-color {
  background-color: #ffffff;
}

.emc-footer-main {
  padding: 48px 0 32px;
}

.emc-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  align-items: start;
}

.emc-footer-col h4 {
  margin: 0 0 12px;
  font-size: 18px;
}

.emc-footer-text,
.emc-footer-col p {
  margin: 0 0 8px;
  color: #d7dcff;
}

.emc-footer-col a {
  color: #ffffff;
}

.emc-footer-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.emc-footer-logos img {
  height: 48px;
  width: auto;
}

.emc-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.emc-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: background 120ms ease;
}

.emc-footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.emc-footer-hours ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.emc-footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: #d7dcff;
}

.emc-footer-appointments {
  display: grid;
  gap: 12px;
}

.emc-footer-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #121552;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--emc-shadow);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.emc-footer-app-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.emc-footer-bottom {
  background: #0f103f;
  color: #ffffff;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
}

/* Services */
.emc-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.emc-service-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  border: 1px solid #e7e7e7;
}

.emc-service-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.emc-service-card h3 {
  margin: 12px;
  text-align: center;
  font-size: 16px;
  color: #0b7c6f;
}
