/* ==========================================================
   Riglite – site styles
   Colours and fonts match the original Jimdo design.
   ========================================================== */

/* ---------- Fonts (stored locally in /fonts) ---------- */
@font-face {
  font-family: "Poppins";
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/roboto-variable.woff2") format("woff2");
}

/* ---------- Colours: change them here ---------- */
:root {
  --light-blue: #8ba5d2;   /* header, footer, light sections */
  --dark-blue:  #284069;   /* TV Globo section */
  --night:      #0c131f;   /* hero background */
  --text:       #323335;   /* body text on white */
  --white:      #ffffff;
  --content-width: 860px;
  --header-height: 72px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-padding-top: var(--header-height); }

body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5em;
}
h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

a { color: inherit; }

.center { text-align: center; }

.container {
  width: 100%;
  max-width: calc(var(--content-width) + 2 * 20px);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--light-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  padding: 0 32px;
}
.logo {
  font-size: 16px;
  text-decoration: none;
  flex: 1;
}
.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-size: 16px;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active { border-bottom-color: var(--white); }
.header-spacer { flex: 1; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section--light-blue { background: var(--light-blue); color: var(--white); }
.section--dark-blue  { background: var(--dark-blue);  color: var(--white); }

/* ---------- Hero slider (home page) ---------- */
.hero {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: var(--night);
}
.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s ease;
}
.hero-track.no-anim { transition: none; }
.slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}
.slide img {
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
}
.slide::after { /* dark overlay on top of the photo */
  content: "";
  position: absolute; inset: 0;
  background: rgba(12, 19, 31, 0.46);
}
.slide-text {
  position: absolute;
  z-index: 1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(570px, 90%);
  padding: 60px 20px;
  border: 4px solid var(--white);
  text-align: center;
  color: var(--white);
}
.slide-text > * { /* text slides in after the photo */
  opacity: 0;
  transform: translateX(50%);
  transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}
.slide.is-active .slide-text > * { opacity: 1; transform: none; }
.slide-text h1,
.slide-text h3 { color: var(--light-blue); }
.slide-text h1 { font-size: 48px; }
.slide-text h3 { font-size: 24px; }
.slide-text p  { font-size: 18px; }

.hero-arrow { /* left/right arrows, centred in the space beside the text frame */
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: calc((100% - 750px) / 2);
  height: 60px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  cursor: pointer;
}
.hero-arrow--prev { left: 0; }
.hero-arrow--next { right: 0; }
.hero-arrow svg { width: 15px; height: 29px; }
.hero-arrow:hover svg { opacity: 0.7; }

.hero-dots {
  position: absolute;
  z-index: 2;
  bottom: 62px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero-dots button {
  width: 10px; height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}
.hero-dots button.is-active { background: var(--white); }

/* ---------- Contact form (Über mich) ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 16px;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid #c9cdd4;
  border-radius: 4px;
  color: var(--text);
}
.contact-form textarea { resize: vertical; }
.contact-form button {
  align-self: flex-start;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 32px;
  border: 0;
  border-radius: 4px;
  background: var(--dark-blue);
  color: var(--white);
  cursor: pointer;
}
.contact-form button:hover { background: var(--light-blue); }
.hidden-field { position: absolute; left: -9999px; } /* spam trap: people never see it */

/* ---------- Grids ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 30px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}
.card img { margin: 0 auto 16px; }
.card h3 { font-size: 24px; }
.card p  { font-size: 18px; }
.intro-heading { margin-bottom: 170px; }

.product img {
  margin: 0 auto 16px;
  max-height: 267px;
  width: auto;
}
.product p { font-size: 18px; font-weight: 700; }

/* Text left, picture right (Studio design section) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 860px;
}
.split-text { padding: 60px 20px; }
.split-text p { font-weight: 700; }
.split-image img {
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
}

/* ---------- Gallery page ---------- */
.gallery-hero { padding-top: 60px; }
.gallery-hero h1 { color: var(--white); padding: 0 20px; margin-bottom: 20px; }
.gallery-hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.gallery-hero-images img {
  width: 100%; height: 271px;
  max-width: none;
  object-fit: cover;
}
.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: center;
  padding: 100px 0;
}
.gallery-row img {
  margin: 0 auto;
  max-height: 300px;
  width: auto;
}

/* ---------- Simple text pages ---------- */
.text-page { padding: 60px 0 100px; min-height: 50vh; }
.quote { max-width: 730px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--light-blue);
  color: var(--white);
  padding: 60px 0;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 16px;
}

/* ---------- Smaller screens ---------- */
@media (max-width: 1280px) {
  h1 { font-size: 36px; }
  h2 { font-size: 24px; }
  h3, .card h3 { font-size: 18px; }
  body, .card p, .product p { font-size: 16px; }
  .slide-text h1 { font-size: 36px; }
  .slide-text h3 { font-size: 18px; }
  .slide-text p  { font-size: 16px; }
}

@media (max-width: 800px) {
  .site-header { padding: 0 16px; }
  .menu-toggle { display: block; }
  .header-spacer { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height); left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--light-blue);
    padding: 8px 16px 16px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 10px 0; border-bottom: 0; }

  .hero { height: 520px; }
  .slide-text { padding: 40px 12px; }
  .hero-arrow { display: none; } /* phones: swipe instead */
  .grid-2, .grid-3, .gallery-row, .split { grid-template-columns: 1fr; }
  .intro-heading { margin-bottom: 40px; }
  .split { min-height: 0; }
  .split-image img { height: 360px; }
  .gallery-hero-images { grid-template-columns: 1fr; }
  .gallery-row { padding: 50px 0; }
  .footer-links { align-items: center; }
}
