/* Aaron's Property Care — aaronspropertycare.ca (winter theme, logo colors) */
:root {
  /* Logo: navy #0B3A63, green #49A942 */
  --color-bg: #eef4f8;
  --color-surface: #ffffff;
  --color-surface-alt: #f0f6fa;
  --color-text: #0B3A63;
  --color-text-muted: #5a6c7d;
  --color-accent: #49A942;
  --color-accent-light: #5bb854;
  --color-accent-dark: #3d8f38;
  --color-heading: #0B3A63;
  --color-border: #c5d4e0;
  --color-surface-faint: #f7fbfd;
  --color-on-accent: #ffffff;
  --font-display: 'Zalando Sans Expanded', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(11, 58, 99, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.logo {
  display: block;
  text-decoration: none;
  line-height: 0;
}

.logo img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  vertical-align: middle;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text-muted);
  border-radius: 1px;
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.hero .hero-content {
  margin-top: 4vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, var(--color-bg) 0%, #e4eef6 40%, rgba(11, 58, 99, 0.06) 100%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(73, 169, 66, 0.08) 0%, transparent 55%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 100%;
}

.hero-tag {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.hero h1.hero-logo {
  margin: 0 auto 1rem;
  line-height: 0;
  width: 100%;
  text-align: center;
}

.hero-logo img {
  display: block;
  width: min(560px, 85vw);
  max-width: 100%;
  height: auto;
  max-height: 160px;
  margin: 0 auto;
  object-fit: contain;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-1px);
}

/* Sections */
section {
  padding: 4.5rem 0;
}

section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--color-heading);
  margin: 0 0 0.5rem;
}

.section-intro {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 50ch;
}

/* Services */
.services {
  background: var(--color-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Center the services section header/introduction and center the cards */
.services .container {
  text-align: center;
}

.services-grid {
  justify-items: center;
  align-items: start;
}

.service-card {
  text-align: left;
  max-width: 420px;
  width: 100%;
}

/* Center specific service and contact texts */
.services .section-intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.contact .container {
  text-align: center;
}

.contact h2 {
  text-align: center;
}

.contact .section-intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 50ch;
}

.service-card {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow);
}

.service-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-heading);
  margin: 0 0 0.5rem;
}

.service-card p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 0.98rem;
}

.pricing-note {
  font-size: 0.95rem;
  color: var(--color-accent);
  font-weight: 500;
  margin: 0;
}

/* Contact form */
.contact {
  padding-bottom: 5rem;
}

.quote-form {
  max-width: 520px;
  margin: 0 auto;
  display: block;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

/* Ensure form field labels remain left-aligned even when the form container is centered */
.quote-form .form-group label,
.contact .quote-form .form-group label {
  text-align: left;
}

.required {
  color: #c96b6b;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface-faint);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.15s;
}

/* Keep file inputs visually consistent */
.form-group input[type="file"] {
  background: var(--color-surface-alt);
}

/* Custom select styling: remove native arrow, add SVG arrow, keep accessibility */
.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5966' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.15rem;
  padding-right: 2.6rem;
}

/* Hide IE/Edge native arrow */
.form-group select::-ms-expand {
  display: none;
}

/* Slightly adjust select caret color on focus */
.form-group select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B3A63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-surface);
}

.form-group input[type="file"] {
  padding: 0.6rem 1rem;
  cursor: pointer;
  color: var(--color-text-muted);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.form-group input[type="file"]::file-selector-button {
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-heading);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.form-group input[type="file"]::file-selector-button:hover {
  border-color: var(--color-accent);
  background: rgba(73, 169, 66, 0.08);
}

.field-hint {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.quote-form .btn {
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 0.25rem;
}

.site-footer p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0.25rem 0;
}

.footer-tagline {
  color: #8a96a3;
  font-size: 0.95rem;
}

.footer-copy {
  margin-top: 1rem !important;
  font-size: 0.85rem !important;
  opacity: 0.8;
}

/* Mobile nav open state */
.nav.is-open {
  display: flex;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: auto;
  flex-direction: column;
  gap: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem;
}

.nav.is-open a {
  padding: 0.75rem;
  border-radius: var(--radius);
}

.nav.is-open a:hover {
  background: var(--color-surface-alt);
}
