/* ArmDrone Community — Modern White Theme + Dark Header/Footer
   Dark: #07074e | Accent: #00bdcd
*/

:root {
  --clr-header-footer: #07074e;
  --clr-accent: #00bdcd;
  --clr-accent-dark: #009aa6;

  --clr-bg: #ffffff;
  --clr-bg-alt: #f4f6f9;
  --clr-text: #1f2a35;
  --clr-text-dim: #5e6b78;
  --border: #e2e6ed;

  --max-width: 1220px;
  --ff: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --fs-900: clamp(2.7rem, 6vw + 1rem, 5.2rem);
  --fs-700: clamp(1.9rem, 3.5vw + 0.5rem, 3.2rem);
  --fs-500: clamp(1.125rem, 1.3vw + 0.5rem, 1.45rem);
  --fs-400: 1rem;

  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 14px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 18px 36px rgba(0,0,0,0.12);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--ff);
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 0 1.25rem;
}

/* Floating socials (optional) */
.social-floating {
  position: fixed;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (max-width: 820px) {
  .social-floating { display: none; }
}
.s-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: .2s ease;
  position: relative;
}
.s-btn svg { fill: var(--clr-accent-dark); width: 26px; height: 26px; }
.s-btn:hover {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  transform: translateY(-2px);
}
.s-btn:hover svg { fill: #fff; }
.s-btn::after {
  content: attr(data-title);
  position: absolute;
  right: 110%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(31,42,53,0.9);
  color: #fff;
  padding: .35rem .6rem;
  border-radius: 6px;
  font-size: .72rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.s-btn:hover::after { opacity: 1; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--clr-header-footer);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.brand__logo { height: 38px; width: auto; }
.brand__name { display: none; font-size: 1.05rem; }
@media (min-width: 640px) {
  .brand__name { display: inline; }
}

/* Nav */
.nav { position: relative; }
.nav__toggle {
  background: none;
  border: 1px solid var(--clr-accent);
  color: #fff;
  padding: .4rem .65rem;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
  display: inline-block;
}
@media (min-width: 768px) {
  .nav__toggle { display: none; }
}
.nav__list {
  list-style: none;
  display: none;
  position: absolute;
  right: 0;
  top: 3.4rem;
  background: #0d0d6a;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  width: 240px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.nav__list--open { display: flex; flex-direction: column; }

.nav__list a {
  text-decoration: none;
  padding: .8rem 1rem;
  color: #fff;
  transition: background .18s ease;
  display: block;
}
.nav__list a:hover { background: rgba(255,255,255,0.08); }

@media (min-width: 768px) {
  .nav__list {
    position: static;
    display: flex;
    flex-direction: row;
    width: auto;
    background: none;
    border: none;
    box-shadow: none;
  }
  .nav__list a {
    padding: .45rem .7rem;
    border-radius: 8px;
  }
  .nav__list a:hover { background: rgba(255,255,255,0.12); }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 3rem;
  background: var(--clr-bg);
}
.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero__content { z-index: 2; }
.hero__title {
  font-size: var(--fs-900);
  line-height: 1.08;
  margin-bottom: 1.1rem;
  font-weight: 900;
  color: var(--clr-text);
}
.hero__subtitle {
  font-size: var(--fs-500);
  color: var(--clr-text-dim);
  max-width: 55ch;
}
.hero__visual {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 500px;
}
.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__stripe {
  position: absolute;
  bottom: -120px;
  left: 0;
  width: 100%;
  height: 240px;
  background: linear-gradient(90deg, rgba(0,189,205,0.12), rgba(0,189,205,0.25));
  filter: blur(42px);
  z-index: 0;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1fr 1.1fr; }
}

/* Sections */
.section {
  padding: clamp(4.2rem, 8vw, 7rem) 0;
  opacity: 0;
  transform: translateY(45px);
  transition: opacity .6s ease, transform .6s ease;
}
.section.in-view { opacity: 1; transform: none; }
.section--alt { background: var(--clr-bg-alt); }
.section--light { background: #fff; }

.section__title {
  font-size: var(--fs-700);
  margin-bottom: 2.1rem;
  position: relative;
  display: inline-block;
  color: var(--clr-text);
}
.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.55rem;
  width: 60%;
  height: 3px;
  background: var(--clr-accent);
}
.section__intro {
  max-width: 60ch;
  color: var(--clr-text-dim);
  margin-bottom: 3rem;
}
.lead {
  font-size: var(--fs-500);
  max-width: 65ch;
  color: var(--clr-text-dim);
}

/* 5-card grid (Goals & Activities) */
.five-grid {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
@media (min-width: 1280px) {
  .five-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  opacity: 0;
  transform: translateY(40px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.card.in-view {
  opacity: 1;
  transform: none;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card h3 {
  margin: 0 0 .55rem;
  color: var(--clr-accent-dark);
  font-size: 1.15rem;
}
.card p {
  margin: 0;
  color: var(--clr-text-dim);
  font-size: .95rem;
  line-height: 1.5;
}

/* News grid */
.news-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;            /* Let image corners clip to radius */
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  opacity: 0;
  transform: translateY(40px);
  display: flex;
  flex-direction: column;
}
.news-card.in-view {
  opacity: 1;
  transform: none;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.news-card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;       /* Keeps a consistent card height */
  overflow: hidden;
  background: var(--clr-bg-alt);
}
.news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.news-card:hover .news-card__thumb img {
  transform: scale(1.03);
}

.news-card__body {
  padding: 1.2rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.news-date {
  font-size: .8rem;
  color: var(--clr-text-dim);
  margin: 0;
}
.news-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}
.news-card a {
  color: var(--clr-accent-dark);
  text-decoration: none;
}
.news-card a:hover { text-decoration: underline; }
.news-card p {
  margin: 0;
  color: var(--clr-text-dim);
  font-size: .92rem;
  line-height: 1.45;
}

/* Contacts section */
.contact-icons {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}
.contact-icons a {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.contact-icons a:hover {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.contact-icons a svg {
  fill: var(--clr-accent-dark);
  transition: fill .2s ease;
}
.contact-icons a:hover svg {
  fill: #fff;
}

/* Footer */
.footer {
  background: var(--clr-header-footer);
  color: #dbe2f0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 2.4rem 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  justify-content: space-between;
}
@media (min-width: 640px) {
  .footer__inner { flex-direction: row; align-items: center; }
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
}
.footer__logo { height: 36px; opacity: 0.9; }
.footer__nav a {
  color: var(--clr-accent);
  text-decoration: none;
  font-size: .9rem;
}
.footer__nav a:hover { text-decoration: underline; }

/* Accessibility focus */
a:focus-visible,
button:focus-visible {
  outline: 2px dashed var(--clr-accent);
  outline-offset: 4px;
}
