/* To change the look of the whole site, point this import at another file in css/themes/ */
@import url("themes/clay.css");

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }

.container { width: min(1080px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2rem); margin-inline: auto; }

/* Header and navigation */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1rem 0;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: var(--heading-weight);
  color: var(--text);
  text-decoration: none;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.site-nav .lang-switch {
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
  align-self: center;
}
.lang-switch span[aria-current] { font-weight: 600; color: var(--text); }
.lang-switch a { padding: 0; }

/* Sections */
section { padding: 4rem 0; }
.section-soft { background: var(--soft); }
.page-title { padding: 3.5rem 0 1rem; }
.page-title p { color: var(--muted); font-size: 1.15rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Home hero */
.hero { padding: 4rem 0 3rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3.5rem;
  align-items: center;
}
.photo-placeholder {
  aspect-ratio: 4 / 5;
  background: var(--soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  position: relative;
  overflow: hidden;
}
.photo-placeholder svg { width: 55%; opacity: 0.55; }
.photo-placeholder span {
  position: absolute;
  bottom: 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.profile-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--soft);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.credentials { color: var(--muted); margin-bottom: 0.3em; }
.degrees { font-weight: 600; color: var(--accent); margin-bottom: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  background: var(--accent);
  color: var(--on-accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--on-accent); }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--on-accent); }

/* Cards and grids */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.card p:last-child { margin-bottom: 0; }

/* Clickable cards (services) */
.card-clickable { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.card-clickable:hover, .card-clickable:focus-visible { border-color: var(--accent); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); }
.card-clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}
.card-text p { margin-bottom: 0.6em; }

/* Modal */
.modal {
  width: min(560px, 100% - 2rem);
  max-height: calc(100vh - 4rem);
  padding: 2rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-y: auto;
}
.modal::backdrop { background: rgba(0, 0, 0, 0.5); }
.modal h3 { padding-right: 2rem; }
.modal-body p:last-child { margin-bottom: 0; }
.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-open { overflow: hidden; }

/* Pricing */
.price { font-family: var(--font-heading); font-size: 2.2rem; color: var(--accent); line-height: 1; margin-bottom: 0.2em; }
.price small { font-family: var(--font-body); font-size: 0.9rem; color: var(--muted); }
.card ul { padding-left: 1.2rem; margin: 0 0 1em; }

/* FAQs */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  margin-bottom: 0.8rem;
}
summary { cursor: pointer; font-weight: 600; }
details p { margin: 0.8rem 0 0; color: var(--muted); }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 3rem;
}
.form-field { margin-bottom: 1.2rem; }
label { display: block; font-weight: 500; margin-bottom: 0.3rem; }
input, textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
}
input:focus, textarea:focus, .btn:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
textarea { min-height: 150px; resize: vertical; }
.field-error { color: #b3261e; font-size: 0.875rem; margin: 0.3rem 0 0; }
.form-status { margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: var(--radius); }
.form-status.success { background: var(--soft); color: var(--text); }
.form-status.error { background: #fbe9e7; color: #8c1d18; }
.hidden { display: none; }

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.footer-inner p { margin: 0; }

@media (max-width: 760px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .photo-placeholder, .profile-photo { max-width: 340px; }
  section { padding: 3rem 0; }
}
