@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,400&display=swap');

/* ── Reset & Variables ─────────────────────────────────── */
:root {
  --text: #2d3436;
  --text-light: #636e72;
  --accent: #1a6b7a;
  --accent-dark: #0f4c5c;
  --accent-glow: rgba(26, 107, 122, 0.12);
  --bg: #fafbfc;
  --white: #ffffff;
  --border: #e8ecef;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.10);
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --nav-height: 80px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--accent-dark);
  letter-spacing: -0.01em;
}

p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

a:hover { color: var(--accent-dark); }

/* ── Navigation ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-brand {
  display: flex;
  flex-direction: column;
}

.nav-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.nav-brand-sub {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  padding: 0.5rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  border-radius: 8px;
  transition: all 0.3s var(--ease);
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-contact a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.nav-contact a:hover { color: var(--accent); }

.nav-contact svg {
  width: 15px;
  height: 15px;
  opacity: 0.6;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.3s var(--ease);
}

.menu-toggle:hover { background: var(--accent-glow); }

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.5rem 2rem 2rem;
  border-bottom: 1px solid var(--border);
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.35s var(--ease);
  pointer-events: none;
}

.mobile-menu.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent); }

.mobile-contact {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-contact a {
  font-size: 0.88rem;
  color: var(--text-light);
  border-bottom: none;
  padding: 0.4rem 0;
}

/* ── Page spacer ───────────────────────────────────────── */
.page-spacer {
  height: var(--nav-height);
}

/* ── Hero section (home) ──────────────────────────────── */
.hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(85vh - var(--nav-height));
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.hero-image img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: -1.5rem;
  bottom: -1.5rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  opacity: 0.12;
  z-index: -1;
  transition: opacity 0.5s var(--ease);
}

.hero-image:hover::after { opacity: 0.2; }

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-text h1 {
  color: var(--accent-dark);
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-light);
}

/* ── Contact strip (home) ─────────────────────────────── */
.contact-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  text-align: center;
}

.contact-card h2 {
  margin-bottom: 2rem;
  color: var(--accent-dark);
}

.contact-items {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-item img {
  width: 22px;
  height: 22px;
  opacity: 0.5;
  filter: invert(25%) sepia(50%) saturate(800%) hue-rotate(165deg) brightness(95%);
}

.contact-item a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s var(--ease);
}

.contact-item a:hover { color: var(--accent); }

/* ── Content pages ─────────────────────────────────────── */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--accent);
  border-image: linear-gradient(90deg, var(--accent), transparent) 1;
}

.page-header h1 {
  color: var(--accent-dark);
}

/* About page portrait */
.about-portrait {
  width: 100%;
  max-width: 350px;
  margin: 0 auto 2.5rem;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Content sections */
.content-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.content-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.content-section h4 {
  margin-bottom: 1rem;
}

.content-section p {
  text-align: justify;
  hyphens: auto;
}

.content-section ul {
  list-style: none;
  padding: 0;
}

.content-section ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
  font-size: 0.98rem;
}

.content-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
}

/* Service cards */
.service-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card h4 {
  margin-bottom: 0.75rem;
}

.service-meta {
  display: flex;
  gap: 1.5rem;
  margin: 0.75rem 0;
}

.service-meta span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.3rem 0.85rem;
  border-radius: 6px;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* Emergency page */
.emergency-box {
  background: linear-gradient(135deg, #fff5f5, #fff);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-top: 1rem;
}

.emergency-box p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
}

.emergency-box a.here {
  color: #dc2626;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.emergency-box a.here:hover {
  border-bottom-color: #dc2626;
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer a {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.3s var(--ease);
}

.footer a:hover { color: var(--accent); }

/* ── Fade-in animations ────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ────────────────────────────────────────── */
/* Below this width the full one-line menu no longer fits: use the burger. */
@media (max-width: 1140px) {
  .nav-links, .nav-contact { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu { display: block; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem 1.5rem 3rem;
    min-height: auto;
  }

  .hero-image { order: -1; text-align: center; }
  .hero-image::after { display: none; }
  .hero-text { text-align: center; }

  .contact-items { flex-direction: column; gap: 1.25rem; align-items: center; }

  .about-portrait { max-width: 60%; }

}

@media (max-width: 600px) {
  :root { --nav-height: 68px; }

  .nav-inner { padding: 0 1.25rem; }
  .nav-brand-name { font-size: 1.15rem; }
  .nav-brand-sub { font-size: 0.65rem; }

  .hero { padding: 1.5rem 1.25rem 2.5rem; }

  .hero-text h1 { font-size: 1.75rem; }
  .hero-text p { font-size: 1rem; }

  .page-content { padding: 2rem 1.25rem 3rem; }
  .contact-section { padding: 0 1.25rem 3rem; }
  .contact-card { padding: 2rem 1.5rem; }
  .service-card { padding: 1.25rem; }
  .service-meta { flex-direction: column; gap: 0.5rem; }
  .emergency-box { padding: 1.5rem; }

  .about-portrait { max-width: 60%; }
}
