/* Fysical Solutions - Modern Flat Design */
:root {
  --primary: #0085A5;
  --primary-dark: #006985;
  --primary-light: #e5f5f9;
  --accent: #2E8B57;
  --accent-hover: #24704a;
  --text: #1a1a1a;
  --text-light: #555;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --border: #e2e8f0;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --radius: 8px;
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --transition: 0.25s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

a:hover, a:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Header & Nav */
.site-header {
  background: var(--bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 1;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text);
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #16a3c5 100%);
  color: #fff;
  padding: 3rem 1.25rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.hero .tagline {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  opacity: 0.95;
  margin-bottom: 1rem;
}

.hero .address {
  font-size: 1rem;
  opacity: 0.9;
}

/* Main content */
.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  width: 100%;
}

.page-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-light);
}

.section {
  margin-bottom: 2.5rem;
}

.section h2 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.section h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
}

.section p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.section ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--text-light);
}

.section li {
  margin-bottom: 0.35rem;
}

/* Specialties grid */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.specialty-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.specialty-card a {
  display: block;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
}

.specialty-card a:hover {
  color: var(--primary-dark);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none !important;
  border: 2px solid var(--primary);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn:hover, .btn:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  color: #fff !important;
}

.btn-outline {
  background: transparent;
  color: var(--primary) !important;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff !important;
}

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

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Contact info */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-card {
  background: var(--bg-alt);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.contact-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.contact-card p, .contact-card li {
  margin-bottom: 0.4rem;
  color: var(--text-light);
}

.contact-card ul {
  list-style: none;
  margin-left: 0;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.gallery-grid a:hover {
  transform: scale(1.03);
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Profile */
.profile {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}

.profile img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

/* Insurers */
.insurers {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.insurers img {
  height: 40px;
  width: auto;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.insurers img:hover {
  opacity: 1;
}

/* Footer */
.site-footer {
  background: #1a2332;
  color: #cbd5e1;
  padding: 2.5rem 1.25rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-inner h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.footer-inner a {
  color: #94a3b8;
}

.footer-inner a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-links a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: #334155;
  border-radius: 50%;
  transition: background var(--transition);
}

.social-links a:hover {
  background: var(--primary);
}

.social-links img {
  width: 18px;
  height: 18px;
}

/* Mobile first adjustments */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg);
    box-shadow: var(--shadow);
    padding: 0.5rem;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav a {
    padding: 0.85rem 1rem;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile img {
    max-width: 200px;
    margin: 0 auto;
  }

  .hero {
    padding: 2rem 1rem;
  }
}

@media (min-width: 769px) {
  .main-nav {
    display: block !important;
  }
}

/* High contrast focus */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
