/* --------------------------------------------------
   Shine Harbour Accademia - Industrial Modern CSS
   Brand: Professional, Authoritative, Accessible
   Style: Industrial Modern (dark, metallic, urban)
   -------------------------------------------------- */

/* --------------------
   FONT IMPORTS
--------------------- */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Roboto:wght@400;500;700&display=swap');

:root {
  --primary: #1F2B3F;
  --secondary: #F4B400;
  --accent: #E9EEF5;
  --metal: #A7A9AC;
  --dark-bg: #181C22;
  --card-bg: #232B36;
  --text-main: #E9EEF5;
  --text-light: #BFC7D5;
  --text-dark: #232B36;
  --shadow: 0 4px 24px 0 rgba(31,43,63,0.18);
  --radius: 10px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --font-display: 'Merriweather', serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --header-height: 72px;
  --gap-section: 60px;
  --gap-card: 24px;
  --gap-content: 20px;
  --gap-feature: 15px;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background: var(--dark-bg);
  color: var(--text-main);
  font-family: var(--font-body);
  margin: 0;
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

/* --------------------
   TYPOGRAPHY
--------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--secondary);
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.15;
}
h2 {
  font-size: 1.6rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.2;
}
p, ul, ol {
  color: var(--text-light);
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 1em;
}
strong {
  color: var(--secondary);
  font-weight: 700;
}
a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: #fff;
  text-decoration: underline;
}

/* --------------------
   LAYOUT CONTAINERS
--------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: var(--gap-content);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--gap-content);
}

/* Section Spacing */
section {
  margin-bottom: var(--gap-section);
  padding: 40px 20px;
  background: none;
}

/* --------------------
   HEADER & NAVIGATION
--------------------- */
header {
  background: linear-gradient(90deg, #232B36 60%, #1F2B3F 100%);
  box-shadow: 0 2px 12px 0 rgba(31,43,63,0.12);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 0;
}
.logo img {
  height: 44px;
  width: auto;
  filter: grayscale(0.2) contrast(1.2) drop-shadow(0 2px 4px #0002);
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  margin-left: 32px;
}
.main-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: 0.04em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}
.cta-btn {
  background: linear-gradient(90deg, var(--secondary) 80%, #fff0 100%);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  padding: 12px 32px;
  margin-left: 32px;
  box-shadow: 0 2px 8px 0 rgba(244,180,0,0.12);
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  position: relative;
  z-index: 1;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #fff 10%, var(--secondary) 100%);
  color: var(--primary);
  box-shadow: 0 4px 16px 0 rgba(244,180,0,0.18);
}

/* Hamburger Menu Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2rem;
  cursor: pointer;
  margin-left: 24px;
  transition: color var(--transition);
  z-index: 102;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #fff;
}

/* --------------------
   MOBILE NAVIGATION
--------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(31,43,63,0.98);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 24px 24px 24px;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2.2rem;
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--text-main);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 10px 0;
  border-bottom: 1px solid #2c374a;
  transition: color var(--transition), border-color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  border-bottom: 1px solid var(--secondary);
}

/* Hide main nav and show burger on mobile */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --------------------
   HERO & SECTION LAYOUTS
--------------------- */
.feature-grid, .team-grid, .value-grid, .category-grid, .resource-cards, .course-cards, .benefits-grid, .event-cards, .event-gallery, .article-cards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-card);
  justify-content: flex-start;
  margin-top: 20px;
}
.feature, .team-member, .value, .category, .resource-card, .course-card, .benefit, .event-card, .event-highlight, .article-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  min-width: 220px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap-feature);
  margin-bottom: 20px;
  border: 1.5px solid #232B36;
  position: relative;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.feature:hover, .team-member:hover, .value:hover, .category:hover, .resource-card:hover, .course-card:hover, .benefit:hover, .event-card:hover, .event-highlight:hover, .article-card:hover {
  box-shadow: 0 8px 32px 0 rgba(244,180,0,0.10);
  border-color: var(--secondary);
  transform: translateY(-4px) scale(1.02);
}

.feature-icon, .value-icon, .category-icon, .benefit-icon {
  font-size: 2.2rem;
  color: var(--metal);
  background: linear-gradient(135deg, #A7A9AC 60%, #F4B400 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.team-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #232B36 60%, #A7A9AC 100%);
  border: 2px solid var(--metal);
  margin-bottom: 10px;
}

/* Cards container spacing */
.card-container, .resource-cards, .course-cards, .article-cards, .event-cards, .event-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-card);
}
.card {
  margin-bottom: 20px;
  position: relative;
}

/* Content grid */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  color: var(--text-dark);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px 0 rgba(31,43,63,0.10);
  margin-bottom: 20px;
  flex-direction: row;
  border-left: 6px solid var(--secondary);
  font-family: var(--font-body);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px 0 rgba(244,180,0,0.10);
  border-color: var(--primary);
}
.testimonial-card p {
  color: var(--text-dark);
  font-size: 1.05rem;
  margin: 0 0 0.5em 0;
}
.testimonial-author {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  margin-left: 12px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --------------------
   BUTTONS & INTERACTIONS
--------------------- */
button, .download-btn, .filter-options button, .category-filters button {
  font-family: var(--font-body);
  font-weight: 500;
  background: var(--primary);
  color: var(--secondary);
  border: 1.5px solid var(--metal);
  border-radius: var(--radius);
  padding: 10px 24px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px 0 rgba(31,43,63,0.08);
  margin-right: 10px;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}
button:last-child, .download-btn:last-child, .filter-options button:last-child, .category-filters button:last-child {
  margin-right: 0;
}
button:hover, button:focus, .download-btn:hover, .download-btn:focus, .filter-options button:hover, .category-filters button:hover {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
  box-shadow: 0 4px 16px 0 rgba(244,180,0,0.12);
}
.download-btn {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 12px;
  margin-bottom: 0;
}
.download-btn:hover, .download-btn:focus {
  background: var(--primary);
  color: var(--secondary);
}

/* Filter/Category Buttons */
.filter-options, .category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.filter-options span {
  color: var(--text-light);
  font-weight: 500;
  margin-right: 10px;
}

/* Inputs */
input[type="text"] {
  background: var(--card-bg);
  color: var(--text-main);
  border: 1.5px solid var(--metal);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 10px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input[type="text"]:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 2px 12px 0 rgba(244,180,0,0.10);
}

/* --------------------
   FOOTER
--------------------- */
footer {
  background: linear-gradient(90deg, #232B36 60%, #1F2B3F 100%);
  color: var(--text-light);
  padding: 40px 0 20px 0;
  font-size: 0.98rem;
  border-top: 2px solid #232B36;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--secondary);
  font-weight: 700;
}
.footer-brand img {
  height: 36px;
  width: auto;
  filter: grayscale(0.2) contrast(1.2);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--text-light);
  font-weight: 500;
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-light);
}
.footer-contact a {
  color: var(--secondary);
  text-decoration: underline;
}

/* --------------------
   FAQ ACCORDION
--------------------- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  border-left: 4px solid var(--secondary);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.faq-item h3 {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 0.5em;
}
.faq-item p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* --------------------
   MISCELLANEOUS
--------------------- */
ul, ol {
  padding-left: 1.2em;
}
ul li, ol li {
  margin-bottom: 0.5em;
}

.map {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 10px;
  color: var(--text-light);
  font-size: 1rem;
}

/* --------------------
   COOKIE CONSENT BANNER
--------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--primary);
  color: var(--text-main);
  box-shadow: 0 -2px 16px 0 rgba(31,43,63,0.18);
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  gap: 24px;
  font-size: 1rem;
  animation: cookie-slide-in 0.5s cubic-bezier(.4,0,.2,1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: var(--radius);
  padding: 10px 22px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  margin: 0;
  transition: background var(--transition), color var(--transition);
}
.cookie-banner button.reject {
  background: var(--card-bg);
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
}
.cookie-banner button.settings {
  background: var(--metal);
  color: var(--primary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--primary);
  color: var(--secondary);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(31,43,63,0.85);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.3s cubic-bezier(.4,0,.2,1);
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--card-bg);
  color: var(--text-main);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px 0 rgba(31,43,63,0.22);
  padding: 36px 32px 28px 32px;
  max-width: 420px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modal-pop 0.35s cubic-bezier(.4,0,.2,1);
}
@keyframes modal-pop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--secondary);
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark-bg);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category label {
  font-weight: 500;
  color: var(--text-main);
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 20px;
  height: 20px;
}
.cookie-modal .cookie-category input[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-actions button {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: var(--radius);
  padding: 10px 22px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal .cookie-modal-actions button.cancel {
  background: var(--card-bg);
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
}
.cookie-modal .cookie-modal-actions button:hover, .cookie-modal .cookie-modal-actions button:focus {
  background: var(--primary);
  color: var(--secondary);
}

/* --------------------
   RESPONSIVE DESIGN
--------------------- */
@media (max-width: 1024px) {
  .container {
    max-width: 100vw;
    padding-left: 14px;
    padding-right: 14px;
  }
  .footer-brand {
    font-size: 1rem;
  }
  .footer-contact {
    font-size: 0.95rem;
  }
}
@media (max-width: 900px) {
  .feature-grid, .team-grid, .value-grid, .category-grid, .resource-cards, .course-cards, .benefits-grid, .event-cards, .event-gallery, .article-cards {
    flex-direction: column;
    gap: 20px;
  }
  .feature, .team-member, .value, .category, .resource-card, .course-card, .benefit, .event-card, .event-highlight, .article-card {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  .footer-nav {
    flex-direction: row;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
    gap: 12px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .footer-brand {
    font-size: 0.98rem;
  }
  .footer-contact {
    font-size: 0.92rem;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
  .feature-grid, .team-grid, .value-grid, .category-grid, .resource-cards, .course-cards, .benefits-grid, .event-cards, .event-gallery, .article-cards {
    flex-direction: column;
    gap: 16px;
  }
  .feature, .team-member, .value, .category, .resource-card, .course-card, .benefit, .event-card, .event-highlight, .article-card {
    padding: 18px 12px;
    font-size: 0.98rem;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 14px 10px;
    font-size: 0.98rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 10px;
    gap: 12px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 10px;
  }
  .cookie-modal {
    padding: 22px 8px 18px 8px;
    max-width: 98vw;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  .logo img {
    height: 32px;
  }
  .footer-brand img {
    height: 24px;
  }
}

/* --------------------
   UTILITY CLASSES
--------------------- */
.hide {
  display: none !important;
}

/* --------------------
   PREVENT OVERLAPPING
--------------------- */
section, .card, .feature, .team-member, .value, .category, .resource-card, .course-card, .benefit, .event-card, .event-highlight, .article-card, .testimonial-card {
  margin-bottom: 20px;
}

/* Ensure no absolute positioning for content cards */
.card, .feature, .team-member, .value, .category, .resource-card, .course-card, .benefit, .event-card, .event-highlight, .article-card, .testimonial-card {
  position: relative;
  z-index: 1;
}

/* --------------------
   SCROLLBAR (Industrial look)
--------------------- */
::-webkit-scrollbar {
  width: 10px;
  background: #232B36;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #A7A9AC 60%, #1F2B3F 100%);
  border-radius: 8px;
}

/* --------------------
   END OF CSS
--------------------- */
