/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cranberry: #7a2331;
  --cranberry-dark: #5a1a24;
  --gold: #c9a84c;
  --gold-light: #dcc17a;
  --sand: #f5f0e8;
  --sand-dark: #e8dfcf;
  --driftwood: #6b5e4f;
  --charcoal: #2c2c2c;
  --white: #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  line-height: 1.6;
  background: var(--white);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cranberry);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--driftwood);
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 3rem;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.nav.scrolled .nav-logo { color: var(--cranberry); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold-light); }
.nav.scrolled .nav-links a { color: var(--charcoal); }
.nav.scrolled .nav-links a:hover { color: var(--cranberry); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: background 0.3s;
}

.nav.scrolled .nav-toggle span { background: var(--charcoal); }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 44, 44, 0.4) 0%,
    rgba(44, 44, 44, 0.6) 50%,
    rgba(44, 44, 44, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
}

.hero-est {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  margin-bottom: 40px;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--cranberry);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover {
  background: var(--cranberry-dark);
  transform: translateY(-1px);
}

/* ===== About ===== */
.about {
  padding: 100px 0;
  background: var(--sand);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img-main {
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.about-img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.about-img-small {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-text h2 {
  text-align: left;
  margin-bottom: 24px;
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--driftwood);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-text p {
  color: #555;
  margin-bottom: 16px;
  line-height: 1.8;
}

/* ===== About Page ===== */
.about-hero {
  padding: 140px 0 60px;
  background: var(--sand);
  text-align: center;
}

.about-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--cranberry);
}

.about-page {
  padding: 60px 0 100px;
}

.about-page-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.about-page-text p {
  color: #555;
  line-height: 1.9;
  margin-bottom: 20px;
}

.about-page-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.about-page-images img {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .about-page-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-page-images {
    position: static;
  }
}

/* ===== Departments ===== */
.departments {
  padding: 100px 0;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.dept-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.dept-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.dept-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.dept-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.dept-card:hover .dept-img img {
  transform: scale(1.05);
}

.dept-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--cranberry);
  padding: 16px 16px 4px;
}

.dept-card p {
  font-size: 0.875rem;
  color: var(--driftwood);
  padding: 0 16px 16px;
  line-height: 1.5;
}

/* ===== Martha's Vineyard Banner ===== */
.mv-banner {
  position: relative;
  padding: 120px 0;
  background:
    url('https://upload.wikimedia.org/wikipedia/commons/thumb/8/86/Gay_Head_cliffs_on_Marthas_Vineyard.jpg/1280px-Gay_Head_cliffs_on_Marthas_Vineyard.jpg')
    center/cover no-repeat;
  text-align: center;
}

.mv-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(122, 35, 49, 0.85) 0%,
    rgba(44, 44, 44, 0.75) 100%
  );
}

.mv-banner-content {
  position: relative;
  color: var(--white);
}

.mv-banner-label {
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.mv-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  margin-bottom: 16px;
}

.mv-banner-sub {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
}

/* ===== Map ===== */
.map-section {
  padding: 80px 0 0;
  background: var(--white);
}

.map-wrapper {
  margin-top: 2rem;
  line-height: 0;
}

.map-wrapper iframe {
  width: 100%;
  height: 450px;
  display: block;
}

/* ===== Visit Us ===== */
.visit {
  padding: 100px 0;
  background: var(--sand);
}

.visit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.visit-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.visit-icon {
  width: 40px;
  height: 40px;
  color: var(--cranberry);
  margin-bottom: 20px;
}

.visit-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cranberry);
  margin-bottom: 12px;
}

.visit-card p {
  color: var(--driftwood);
  line-height: 1.8;
}

/* ===== Footer ===== */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

.footer-est {
  font-size: 0.875rem;
  color: var(--gold);
  margin-top: 4px;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.footer-social a:hover {
  background: var(--cranberry);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 36px;
  height: 36px;
}

.footer-copy {
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .dept-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    max-height: 300px;
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    color: var(--charcoal) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text h2 { text-align: center; }

  .dept-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .visit-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .dept-grid {
    grid-template-columns: 1fr;
  }

}
