/* ============================================
   TEACH SENIORS TECHNOLOGY — Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --plum:        #3D2635;
  --plum-light:  #5C3A4E;
  --plum-pale:   #F5EFF2;
  --plum-mid:    #8A6070;
  --gold:        #C9A96E;
  --gold-light:  #E8D5B0;
  --white:       #FFFFFF;
  --off-white:   #FAFAF8;
  --text-dark:   #1A1A1A;
  --text-mid:    #555555;
  --text-light:  #888888;
  --border:      #E8E0E4;
  --shadow-sm:   0 2px 12px rgba(61,38,53,0.08);
  --shadow-md:   0 8px 32px rgba(61,38,53,0.12);
  --shadow-lg:   0 20px 60px rgba(61,38,53,0.16);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); font-weight: 500; }
h4 { font-size: 1.15rem; font-weight: 600; font-family: 'Inter', sans-serif; }

p { color: var(--text-mid); font-size: 1.05rem; }

/* --- Layout --- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.section { padding: 100px 0; }
.section--sm { padding: 60px 0; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__logo img { height: 44px; width: auto; }

.nav__logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--plum);
  line-height: 1.2;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--plum);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav__links a:hover, .nav__links a.active {
  color: var(--plum);
}

.nav__links a:hover::after, .nav__links a.active::after {
  transform: scaleX(1);
}

.nav__cta {
  background: var(--plum);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.nav__cta::after { display: none !important; }

.nav__cta:hover {
  background: var(--plum-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(61,38,53,0.3);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
  font-family: 'Inter', sans-serif;
}

.btn--primary {
  background: var(--plum);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--plum-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61,38,53,0.3);
}

.btn--outline {
  background: transparent;
  color: var(--plum);
  border: 2px solid var(--plum);
}

.btn--outline:hover {
  background: var(--plum);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--gold);
  color: var(--plum);
}

.btn--gold:hover {
  background: #b8924f;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.4);
}

.btn--white {
  background: var(--white);
  color: var(--plum);
}

.btn--white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.3);
}

.btn--lg { padding: 18px 42px; font-size: 1.05rem; }

/* --- Section Headers --- */
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plum);
  background: var(--plum-pale);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.section-tag--gold {
  color: var(--gold);
  background: rgba(201,169,110,0.12);
}

.section-header { margin-bottom: 56px; }
.section-header--center { text-align: center; }
.section-header--center p { max-width: 580px; margin: 16px auto 0; }
.section-header p { margin-top: 16px; max-width: 600px; }

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* --- Divider --- */
.divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 20px 0;
}

.divider--center { margin: 20px auto; }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(61,38,53,0.08);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* --- Footer --- */
.footer {
  background: var(--plum);
  color: var(--white);
  padding: 60px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer__logo img { height: 48px; filter: brightness(0) invert(1); margin-bottom: 16px; }

.footer__logo p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer__col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}

.footer__col ul li { margin-bottom: 10px; }
.footer__col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer__col ul li a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
}

/* --- Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 560px;
  width: 100%;
  position: relative;
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px;
  transition: var(--transition);
}

.modal__close:hover { color: var(--plum); }

.modal h3 { margin-bottom: 8px; }
.modal > p { margin-bottom: 28px; }

/* --- Utility --- */
.text-center { text-align: center; }
.text-plum { color: var(--plum); }
.text-gold { color: var(--gold); }
.bg-plum { background: var(--plum); }
.bg-pale { background: var(--plum-pale); }
.bg-white { background: var(--white); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* --- Hamburger (mobile) --- */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--plum);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__logo { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .modal { padding: 32px 24px; }
}
