@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;700&display=swap');
:root {
  --primary: #000;
  --accent: #007bff;
  --bg: #fff;
  --shadow: 0 4px 14px rgba(0,0,0,0.08);
  --radius: 12px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  font-family: 'Exo 2', Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--primary);
  line-height: 1.7;
}

/* Layout */
.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 26px;
}

/* Sticky Header */
header {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 2px solid #000;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--primary);
  user-select: none;
}
nav ul {
  display: flex; list-style: none; gap: 30px;
  margin: 0;
  padding: 0;
}
nav a {
  color: var(--primary);
  font-size: 1.07rem;
  text-decoration: none;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  border-radius: 2px;
  transition: color 0.15s, border 0.2s;
}
nav a:focus,
nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 3px; width: 26px;
  background: #000;
  border-radius: 2px;
}

/* Responsive Header */
@media (max-width: 900px) {
  nav ul {
    gap: 18px;
  }
  .logo {
    font-size: 1.3rem;
  }
}
@media (max-width: 700px) {
  .header-inner { flex-direction: row; }
  nav {
    position: absolute; left: 0; right: 0; top: 72px;
    background: #fff;
    border-bottom: 2px solid #eee;
    display: none;
  }
  nav.open { display: block; }
  nav ul {
    flex-direction: column;
    gap: 16px;
    padding: 14px 0;
  }
  .menu-toggle { display: flex; }
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  padding: 90px 0 70px 0;
  text-align: center;
  background: #fff;
}
.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: .07em;
  margin-bottom: 18px;
}
.hero-desc {
  font-size: 1.08rem;
  color: #444;
  max-width: 520px;
  margin: 0 auto;
}

/* Slider */
.slider {
  position: relative;
  margin-top: 20px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.slides {
  display: flex;
  width: 300%;
  animation: slideAnimation 18s infinite;
}
.slides img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.4s;
}
.slide-text {
  position: absolute;
  bottom: 40px; left: 40px;
  background: rgba(255,255,255,0.85);
  padding: 18px 35px;
  max-width: 370px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  animation: textFadeIn 1s ease;
}
.slide-text h2 {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 7px;
  letter-spacing: 0.04em;
}
.slide-text p {
  font-size: 1rem;
  line-height: 1.35;
  color: #222;
}
@keyframes slideAnimation {
  0%, 30%   { transform: translateX(0); }
  33.33%, 63.33% { transform: translateX(-100%);}
  66.66%, 100%   { transform: translateX(-200%);}
}
@keyframes textFadeIn {
  0% {opacity: 0; transform: translateY(20px);}
  100% {opacity:1; transform: translateY(0);}
}
@media (max-width: 600px) {
  .slides img { height: 220px; }
  .slide-text {
    position: static;
    margin: 12px 0 0 0;
    background: #fff;
    box-shadow: none;
    padding: 10px 16px;
    max-width: 100%;
  }
}

/* Section Titles/Text */
section {
  padding: 54px 0;
}
h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 22px;
  text-align: center;
  letter-spacing: .045em;
}
section p {
  text-align: center;
  color: #444;
  max-width: 750px;
  margin: 0 auto 18px auto;
  font-size: 1.08rem;
  line-height: 1.7;
}

/* Cards */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin: 38px 0 0 0;
}
.card {
  max-width: 325px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card h4 {
  font-weight: 700;
  margin: 15px 16px 3px 16px;
  font-size: 1.18rem;
}
.card p {
  margin: 0 16px 15px 16px;
  color: #333;
  font-size: 1rem;
}
.card:hover {
  box-shadow: 0 8px 32px #2221;
  transform: translateY(-4px) scale(1.025);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 0 0 0;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .2s;
}
.gallery-grid img:hover, .gallery-grid img:focus {
  transform: scale(1.05);
  box-shadow: 0 8px 28px #2223;
}

/* Contact Form */
#contactForm {
  max-width: 410px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 20px;
  background: #fcfcfc;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
#contactForm input, #contactForm textarea {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid #bbb;
  background: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: border 0.18s;
}
#contactForm input:focus,
#contactForm textarea:focus {
  border: 1.5px solid var(--accent);
  outline: none;
}
#contactForm textarea { min-height: 100px; resize: vertical; }
#contactForm button {
  background: var(--primary);
  color: #fff;
  padding: 13px 0;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: .07em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .19s;
  margin-top: 8px;
}
#contactForm button:hover,
#contactForm button:focus {
  background: var(--accent);
  outline: none;
}
#formStatus {
  min-height: 20px;
  font-size: 1rem;
  color: #079900;
  margin: 0;
  text-align: center;
}

/* Footer with social icons */
footer {
  background: #000;
  color: #fff;
  padding: 28px 0 18px 0;
  text-align: center;
  margin-top: 48px;
  font-size: 1.02rem;
  letter-spacing: .04em;
}
.footer-container {
  max-width: 1150px; margin: 0 auto; padding: 0 16px;
}
.footer-info {
  margin-top: 15px;
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-info a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  line-height: 1;
  transition: color .2s;
}
.footer-info a:focus, .footer-info a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.icon {
  width: 22px; height: 22px;
  transition: transform .2s;
  vertical-align: middle;
}
.icon:focus, .icon:hover {
  transform: scale(1.18);
}

/* Responsive Sections */
@media (max-width: 900px) {
  .container, .footer-container { max-width: 98vw; }
  .cards { gap: 22px; }
  .card { max-width: 90vw; }
}
@media (max-width: 650px) {
  html { font-size: 16px; }
  .header-inner { min-height: 56px; }
  .hero {
    min-height: 220px;
    padding: 50px 0 40px 0;
  }
  .cards {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
}
@media (max-width: 400px) {
  .hero-title { font-size: 1.18rem; }
  .logo { font-size: 1.1rem; }
}

/* Accessibility improvements for focus */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
