/* === FONTS === */
@font-face {
  font-family: Roboto;
  src: url("/fonts/Roboto-Regular.ttf") format("truetype");
  font-display: swap;
}

/* === VARIABLES === */
:root {
  --font-body: Roboto, sans-serif;
  --color-primary: #00787e;
  --color-primary-dark: #005f63;
  --color-primary-light: #cde2e2;
  --color-dark: #3d3e3e;
  --color-white: #fff;
  --color-bg: #cde2e2;
  --color-card-bg: #fff;
  --color-muted: rgba(0, 0, 0, 0.55);
  --color-nav: rgba(0, 120, 126, 0.9);
  --nav-height: 4.5rem;
  --radius: 4px;
}

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

/* === BASE === */
html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-dark);
  overflow-x: hidden;
  min-height: 100%;
  font-size: 1rem;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

p {
  line-height: 1.6;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--color-primary);
  font-weight: bold;
}

ul,
ol {
  margin-left: 1.25rem;
}

/* === UTILITY === */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-muted {
  color: var(--color-muted);
}

/* === NAVBAR === */
.nav-toggle {
  display: none;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 1rem;
  background: var(--color-nav);
  backdrop-filter: blur(4px);
  height: var(--nav-height);
  font-weight: bold;
}

.navbar-brand {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  color: var(--color-white);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: var(--color-primary-light);
  text-decoration: none;
}

.navbar-name {
  font-size: 0.85rem;
  white-space: nowrap;
  color: var(--color-white);
  align-self: center;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 1.5rem;
  height: 1.25rem;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle-label span {
  display: block;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 0;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  font-size: 0.875rem;
  border-bottom: 3px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-white);
  border-bottom-color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

/* === NAV DROPDOWN === */
.nav-has-dropdown {
  position: relative;
}

.dropdown-caret {
  font-size: 0.7rem;
  vertical-align: middle;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: rgba(0, 80, 84, 0.97);
  border-radius: var(--radius);
  list-style: none;
  padding: 0.5rem 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  display: block;
}

.nav-dropdown li a {
  display: block;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: normal;
  white-space: normal;
  line-height: 1.4;
}

.nav-dropdown li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  text-decoration: none;
}

/* === LANGUAGE SWITCHER === */
.lang-switcher {
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  margin-left: 0.25rem;
  padding-left: 0.25rem;
}

.lang-link {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.25rem 0.35rem;
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
}

.lang-link.active,
.lang-link:hover {
  color: var(--color-white);
  border-bottom-color: var(--color-white);
  text-decoration: none;
}

/* === MOBILE NAV === */
@media (max-width: 1100px) {
  .nav-toggle-label {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(0, 60, 63, 0.98);
    padding: 1rem;
    margin-left: 0;
    gap: 0.1rem;
  }

  .nav-toggle:checked ~ .navbar .nav-links {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-has-dropdown {
    width: 100%;
  }

  .nav-dropdown {
    display: block;
    position: static;
    background: rgba(0, 40, 42, 0.5);
    border-radius: 0;
    box-shadow: none;
    min-width: 0;
    width: 100%;
    padding: 0;
    margin-bottom: 0.25rem;
  }

  .nav-dropdown li a {
    padding: 0.4rem 1.5rem;
    font-size: 0.85rem;
  }

  .lang-switcher {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 0;
    padding-top: 0.5rem;
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
    gap: 0.25rem;
  }
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-card {
  position: relative;
  z-index: 1;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  padding: 2rem 2.5rem;
  border-radius: 50%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-logo-wrap img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto;
}

.hero-card h1 {
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: bold;
  line-height: 1.3;
}

.hero-card p {
  color: var(--color-dark);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* === BUTTON === */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--color-white);
  background-color: var(--color-primary);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn:hover,
.btn:focus {
  background-color: var(--color-primary-dark);
  text-decoration: none;
  color: var(--color-white);
}

/* === SECTIONS === */
.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.page-main {
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 3rem;
  min-height: 100vh;
}

.page-title {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-weight: bold;
  border-bottom: 2px solid var(--color-primary-light);
  padding-bottom: 0.5rem;
}

/* === HOME PROJECTS PREVIEW === */
.projects-preview {
  background: var(--color-primary-light);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.project-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  text-decoration: none;
}

.project-thumb img {
  width: 100%;
  height: 21rem;
  object-fit: cover;
  object-position: center;
  transition:
    filter 0.4s,
    transform 0.4s;
  filter: opacity(60%) grayscale(60%);
}

.project-thumb:hover img,
.project-thumb:focus img {
  filter: opacity(100%) grayscale(0%);
  transform: scale(1.03);
}

.project-thumb-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-white);
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  width: 100%;
  padding: 0.25rem 0.5rem;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

/* === BIO PAGE === */
.bio-section {
  display: grid;
  gap: 2rem;
}

.bio-profile-img {
  max-width: 450px;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.bio-name {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.bio-role {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.bio-timeline {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.bio-entry {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}

.bio-year {
  font-weight: bold;
  font-size: 0.85rem;
  color: var(--color-dark);
  flex-shrink: 0;
}

.bio-text {
  font-size: 0.85rem;
  line-height: 1.5;
}

.bio-summary p {
  font-size: 0.85rem;
}

@media (max-width: 576px) {
  .bio-entry {
    grid-template-columns: 5rem 1fr;
  }
}

/* === STUDIO PAGE === */
.studio-intro p {
  text-align: justify;
  margin-bottom: 1rem;
}

.studio-main-img {
  width: 100%;
  max-width: 800px;
  margin: 1.5rem auto;
  border-radius: var(--radius);
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

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

.studio-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-card-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.studio-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.studio-card-body {
  padding: 1rem;
}

.studio-card-body h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.studio-card-body p {
  font-size: 0.85rem;
  text-align: justify;
}

/* === SERVICES PAGE === */
.service-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 992px) {
  .service-layout {
    grid-template-columns: 1fr;
  }
}

.service-intro {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.service-list {
  margin-left: 1.25rem;
  font-size: 0.9rem;
}

.service-list li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.service-image img {
  width: 100%;
  border-radius: var(--radius);
}

/* === COLLABORATORS === */
.collaborators-list {
  max-width: 800px;
}

.collaborator-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1rem 0;
}

.collaborator-logo img {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.collaborator-info h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.collaborator-workplace {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.collaborator-info p {
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.collaborator-divider {
  border: none;
  border-top: 1px solid var(--color-primary-light);
  margin: 0.5rem 0;
}

/* === PROJECTS PAGE === */
.projects-subtitle {
  color: var(--color-primary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-card-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.work-card-header {
  background: var(--color-primary-light);
  padding: 0.75rem 1rem;
}

.work-card-header h3 {
  font-size: 0.95rem;
  color: var(--color-primary);
  margin: 0;
}

.work-gallery {
  display: grid;
  gap: 0;
}

.work-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* === CONTACT PAGE === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

.contact-office h2 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.contact-office hr {
  border: none;
  border-top: 1px solid var(--color-primary-light);
  margin: 0.25rem 0 0.75rem;
}

.contact-office p {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.contact-email-block {
  grid-column: 1 / -1;
}

.contact-email-block h2 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.contact-email-block hr {
  border: none;
  border-top: 1px solid var(--color-primary-light);
  margin: 0.25rem 0 0.75rem;
}

.contact-email-block a {
  font-size: 1rem;
}

.contact-map {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

/* === LEGAL PAGE === */
.legal-content {
  max-width: 800px;
}

.legal-content p {
  text-align: justify;
}

/* === 404 === */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.error-page p {
  font-size: 1.2rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

/* === FOOTER === */
.footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer p {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s;
  margin-top: 0.25rem;
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.35);
  color: var(--color-white);
  text-decoration: none;
}
