/* ============================================================
   HAWAIIAN1 — commercial art  |  style.css
   ============================================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* --- Variables --- */
:root {
  --primary:       #87CEEB;
  --primary-dark:  #5ba8cc;
  --secondary:     #0f2044;
  --secondary-lt:  #1a3060;
  --foreground:    #1a1a2e;
  --muted:         #6b7280;
  --border:        rgba(135,206,235,0.45);
  --bg:            #ffffff;
  --serif:         'Playfair Display', Georgia, serif;
  --sans:          'DM Sans', system-ui, sans-serif;
  --max:           1200px;
  --r:             1rem;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--sans); color: var(--foreground); background: var(--bg); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* --- Language switch --- */
html.lang-de .en { display: none; }
html.lang-en .de { display: none; }

/* --- Container --- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
  padding: 1.5rem 0;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
  padding: 0.75rem 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.header-logo img {
  height: 3.5rem; width: auto;
  transition: filter 0.3s, height 0.3s;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
}
.site-header.scrolled .header-logo img { filter: none; height: 3rem; }

/* Desktop nav */
.desktop-nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .desktop-nav { display: flex; } }
.desktop-nav nav { display: flex; align-items: center; gap: 3rem; }

.desktop-nav a {
  font-size: 1rem; font-weight: 500;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  transition: color 0.2s;
}
.desktop-nav a:hover,
.desktop-nav a.active { color: var(--primary); text-shadow: none; }
.site-header.scrolled .desktop-nav a { color: var(--foreground); text-shadow: none; }
.site-header.scrolled .desktop-nav a:hover,
.site-header.scrolled .desktop-nav a.active { color: var(--primary-dark); }

/* Language switcher */
.lang-switcher {
  display: none; align-items: center;
  border-radius: 999px; padding: 0.25rem;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  transition: background 0.3s, border-color 0.3s;
}
@media (min-width: 768px) { .lang-switcher { display: flex; } }
.site-header.scrolled .lang-switcher {
  background: var(--bg); border-color: rgba(15,32,68,0.15);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.lang-switcher button {
  font-size: 0.75rem; font-weight: 700;
  padding: 0.35rem 0.75rem; border-radius: 999px;
  color: rgba(255,255,255,0.75);
  transition: background 0.2s, color 0.2s;
}
.lang-switcher button.active {
  background: var(--bg); color: var(--secondary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.site-header.scrolled .lang-switcher button { color: var(--muted); }
.site-header.scrolled .lang-switcher button.active { color: var(--secondary); }

/* Mobile toggle */
.mobile-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(4px);
  z-index: 110;
}
@media (min-width: 768px) { .mobile-toggle { display: none; } }
.mobile-toggle svg { width: 1.25rem; height: 1.25rem; stroke: var(--secondary); }

/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column; gap: 1.5rem;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu nav a { font-size: 1.125rem; font-weight: 500; color: var(--foreground); }
.mobile-menu nav a.active { color: var(--primary-dark); }
.mobile-menu .mobile-lang {
  display: flex; align-items: center; gap: 0.75rem;
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.mobile-menu .mobile-lang span { font-size: 0.875rem; color: var(--muted); }
.mobile-menu .mobile-lang button {
  font-size: 0.875rem; font-weight: 700; padding: 0.5rem 1rem;
  border-radius: 0.5rem; color: var(--foreground); background: #f3f4f6;
}
.mobile-menu .mobile-lang button.active { background: var(--secondary); color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--secondary);
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.18);
}
.hero-content {
  position: relative; z-index: 10; text-align: center;
  padding: 0 1.5rem; display: flex; flex-direction: column; align-items: center;
}
.hero-logo {
  width: 100%; max-width: 640px;
  drop-shadow: drop-shadow(0 6px 24px rgba(0,0,0,0.4));
}
@media (min-width: 768px) { .hero-logo { max-width: 760px; } }
@media (min-width: 1024px) { .hero-logo { max-width: 880px; } }

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  position: relative; padding: 6rem 0; overflow: hidden;
}
.about-bg {
  position: absolute; inset: 0; z-index: 0;
}
.about-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.about-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.92), rgba(255,255,255,0.85), rgba(255,255,255,0.92));
}
.about-inner {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; gap: 3rem; align-items: center;
}
@media (min-width: 768px) {
  .about-inner { flex-direction: row; gap: 4rem; align-items: flex-start; }
  #about { padding: 8rem 0; }
}
@media (min-width: 1024px) { .about-inner { gap: 6rem; } }

.about-image-wrap {
  width: 100%; max-width: 380px; flex-shrink: 0; position: relative;
}
@media (min-width: 768px) { .about-image-wrap { width: 42%; } }
@media (min-width: 1024px) { .about-image-wrap { width: 33%; } }

.about-image-frame {
  position: relative; aspect-ratio: 3/4; max-width: 360px; margin: 0 auto;
}
.about-image-accent {
  position: absolute; inset: 0;
  background: var(--primary);
  translate: 1.5rem 1.5rem;
  border-radius: 0.5rem;
}
.about-image-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 0.5rem; box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  filter: grayscale(1);
  transition: filter 0.7s;
}
.about-image-frame img:hover { filter: grayscale(0); }
.aloha-badge {
  display: none;
  position: absolute; bottom: -1.5rem; left: -1.5rem;
  background: var(--bg); padding: 1rem 1.25rem;
  border-radius: 0.5rem; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  font-family: var(--serif); font-weight: 700; font-size: 1.875rem; color: var(--secondary);
}
@media (min-width: 768px) { .aloha-badge { display: block; } }

.about-text { flex: 1; }
.about-subtagline { font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--primary-dark); margin-bottom: 0.75rem; }
.about-text h2 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: var(--secondary); margin-bottom: 1rem; line-height: 1.15; }
.about-subtitle { font-size: 1.25rem; font-weight: 500; color: var(--primary-dark); margin-bottom: 2rem; }
.about-body { display: flex; flex-direction: column; gap: 1.25rem; font-size: 1.0625rem; color: rgba(26,26,46,0.8); font-weight: 300; line-height: 1.75; }

.about-stats {
  margin-top: 2.5rem; padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.stat-value { font-family: var(--serif); font-size: 1.875rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.25rem; }
.stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============================================================
   SERVICES
   ============================================================ */
#services {
  position: relative; padding: 6rem 0; overflow: hidden;
}
@media (min-width: 768px) { #services { padding: 8rem 0; } }
.services-bg { position: absolute; inset: 0; z-index: 0; }
.services-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: grayscale(0.35) brightness(0.96);
}
.services-bg::after { content: ''; position: absolute; inset: 0; background: rgba(100,116,139,0.1); }

.services-inner { position: relative; z-index: 10; }
.section-header { max-width: 48rem; margin-bottom: 4rem; }
.section-header h2 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: #ffffff; margin-bottom: 1rem; line-height: 1.15; }
.section-header p { font-size: 1.0625rem; color: rgba(255,255,255,0.75); }

.services-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  padding: 2rem; border-radius: 1rem;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.service-card.featured {
  background: linear-gradient(135deg, rgba(255,255,255,0.65), rgba(135,206,235,0.1));
}
@media (min-width: 1024px) { .service-card.featured { grid-column: span 2; } }

.service-icon {
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  background: rgba(135,206,235,0.12); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.service-card:hover .service-icon {
  background: var(--primary); color: #fff; transform: scale(1.1);
}
.service-icon svg { width: 1.5rem; height: 1.5rem; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.75rem; }
.service-card p { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
#portfolio {
  position: relative; padding: 6rem 0; overflow: hidden;
}
@media (min-width: 768px) { #portfolio { padding: 8rem 0; } }
.portfolio-bg { position: absolute; inset: 0; z-index: 0; }
.portfolio-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.portfolio-inner { position: relative; z-index: 10; }
.portfolio-header { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 4rem; }
@media (min-width: 768px) {
  .portfolio-header { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.portfolio-header h2 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: var(--secondary); line-height: 1.15; }
.portfolio-header p { font-size: 1.0625rem; color: var(--muted); }

.portfolio-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .portfolio-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }

.portfolio-item {
  position: relative; aspect-ratio: 1;
  border-radius: 1rem; overflow: hidden;
  background: var(--bg);
  border: 1px solid rgba(135,206,235,0.6);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: border-color 0.3s, box-shadow 0.5s;
  cursor: pointer;
}
.portfolio-item:hover { border-color: var(--primary); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s;
}
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: rgba(15,32,68,0);
  transition: background 0.5s;
}
.portfolio-item:hover .portfolio-overlay { background: rgba(15,32,68,0.4); }
.portfolio-label {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem;
  transform: translateY(1rem); opacity: 0;
  transition: transform 0.4s, opacity 0.4s;
}
.portfolio-item:hover .portfolio-label { transform: translateY(0); opacity: 1; }
.portfolio-label span {
  display: inline-block; padding: 0.25rem 0.75rem;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(4px);
  color: var(--secondary); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; border-radius: 999px;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact { position: relative; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; z-index: 0; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.contact-inner {
  position: relative; z-index: 20;
  padding: 6rem 0;
  display: flex; justify-content: center;
}
@media (min-width: 768px) { .contact-inner { padding: 8rem 0; } }
.contact-card {
  background: rgba(255,255,255,0.65); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 1.5rem; box-shadow: 0 25px 60px rgba(0,0,0,0.15);
  padding: 2.5rem; max-width: 32rem; width: 100%;
}
@media (min-width: 768px) { .contact-card { padding: 3rem; } }
.contact-card h2 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: var(--secondary); margin-bottom: 1rem; line-height: 1.15; }
.contact-card > p { font-size: 1.0625rem; color: var(--muted); margin-bottom: 3rem; }

.contact-items { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon {
  width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  background: var(--primary); color: #fff; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(135,206,235,0.4);
}
.contact-icon svg { width: 1.25rem; height: 1.25rem; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-info h4 { font-weight: 700; color: var(--secondary); margin-bottom: 0.25rem; font-size: 0.9375rem; }
.contact-info p, .contact-info a { font-size: 0.9375rem; color: rgba(26,26,46,0.8); line-height: 1.65; display: block; }
.contact-info a:hover { color: var(--primary-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--secondary); color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem 0;
}
.footer-inner {
  display: flex; flex-direction: column; gap: 1rem;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-left { display: flex; align-items: center; gap: 2rem; }
.footer-left img { height: 3rem; width: auto; }
.footer-copyright { font-size: 0.8125rem; color: rgba(255,255,255,0.5); }
@media (min-width: 768px) { .footer-copyright { transform: translateY(5px); } }

.footer-center { font-size: 0.8125rem; display: flex; align-items: center; gap: 0.3rem; }
.footer-center svg { width: 0.875rem; height: 0.875rem; fill: var(--primary); stroke: var(--primary); }
@media (min-width: 768px) { .footer-center { transform: translateY(5px); } }

.footer-right { display: flex; align-items: center; gap: 1.5rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal button { font-size: 0.8125rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
@media (min-width: 768px) { .footer-legal { transform: translateY(5px); } }
.footer-legal button:hover { color: #fff; }
.back-to-top {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.7);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.back-to-top:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.back-to-top svg { width: 1rem; height: 1rem; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-content {
  position: relative; display: flex; flex-direction: column; align-items: center;
  max-width: 90vw; max-height: 90vh;
}
.lightbox-content img {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain; border-radius: 0.5rem;
  box-shadow: 0 25px 80px rgba(0,0,0,0.6);
  transition: opacity 0.2s;
}
.lightbox-content img.loading { opacity: 0.4; }

.lightbox-caption {
  margin-top: 1rem; font-size: 0.875rem; font-weight: 600;
  color: rgba(255,255,255,0.7); text-transform: uppercase;
  letter-spacing: 0.12em;
}

.lightbox-counter {
  position: absolute; bottom: 1.25rem; left: 50%; translate: -50% 0;
  font-size: 0.8125rem; color: rgba(255,255,255,0.45);
}

/* Close button */
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.25rem; z-index: 10;
  width: 2.75rem; height: 2.75rem; border-radius: 999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-close svg { width: 1.25rem; height: 1.25rem; }

/* Prev / Next buttons */
.lightbox-nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 10;
  width: 3rem; height: 3rem; border-radius: 999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background 0.2s;
}
.lightbox-nav:hover { background: var(--primary); border-color: var(--primary); }
.lightbox-nav svg { width: 1.25rem; height: 1.25rem; }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
@media (max-width: 640px) {
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* Zoom icon on portfolio card hover */
.portfolio-overlay {
  display: flex; align-items: center; justify-content: center;
}
.portfolio-zoom-icon {
  opacity: 0; transform: scale(0.7);
  transition: opacity 0.3s, transform 0.3s;
  width: 3rem; height: 3rem; border-radius: 999px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.portfolio-zoom-icon svg { width: 1.375rem; height: 1.375rem; }
.portfolio-item:hover .portfolio-zoom-icon { opacity: 1; transform: scale(1); }

/* ============================================================
   MODALS
   ============================================================ */
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--bg); border-radius: 1rem;
  max-width: 42rem; width: 100%; max-height: 85vh;
  overflow-y: auto; padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  position: relative;
}
.modal-box h2 { font-family: var(--serif); font-size: 1.875rem; font-weight: 700; color: var(--secondary); margin-bottom: 2rem; }
.modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 2rem; height: 2rem; border-radius: 999px;
  background: #f3f4f6; color: var(--foreground);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; line-height: 1;
  transition: background 0.2s;
}
.modal-close:hover { background: #e5e7eb; }
.modal-section { margin-bottom: 1.5rem; }
.modal-section h3 { font-weight: 700; color: var(--secondary); margin-bottom: 0.5rem; font-size: 0.9375rem; }
.modal-section p { font-size: 0.875rem; color: rgba(26,26,46,0.75); line-height: 1.7; }
.modal-section a { color: var(--primary-dark); }
.modal-section a:hover { text-decoration: underline; }
