/* AdriaticOne.eu — v1 landing page styles */

:root {
  /* Brand colors sampled from the existing AdriaticOne logo/identity */
  --color-deep: #2859a5;      /* logo ring / wordmark blue */
  --color-deep-dark: #141a33; /* logo dark-panel navy */
  --color-teal: #4f80c4;      /* lighter tint of brand blue, for small UI accents */
  --color-orange: #f8a422;    /* logo sun orange — decorative accent only */
  --color-sand: #f6f1e7;
  --color-white: #ffffff;
  --color-ink: #17242e;
  --color-muted: #5c6f7a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 26, 51, 0.14);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--color-ink);
  background: var(--color-sand);
  line-height: 1.6;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(11, 61, 92, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--color-deep);
  text-decoration: none;
}

.logo img.wordmark { height: 44px; display: block; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--color-deep-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.lang-toggle {
  border: 1px solid rgba(11, 61, 92, 0.25);
  background: var(--color-white);
  border-radius: 999px;
  padding: 6px 4px;
  display: flex;
  gap: 2px;
  font-size: 0.8rem;
  font-weight: 700;
}

.lang-toggle button {
  border: none;
  background: transparent;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--color-muted);
}

.lang-toggle button.active {
  background: var(--color-deep);
  color: white;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-deep);
}

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(22, 144, 160, 0.25), transparent),
    linear-gradient(160deg, var(--color-deep) 0%, var(--color-deep-dark) 100%);
  color: white;
  overflow: hidden;
}

.hero .container {
  padding-top: 96px;
  padding-bottom: 96px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 18px;
  max-width: 720px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: white;
  color: var(--color-deep-dark);
  box-shadow: var(--shadow);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}

.hero-wave svg { width: 100%; height: 80px; display: block; }

/* Sections */
section { padding: 84px 0; }

.section-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  color: var(--color-teal);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
  display: block;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
  color: var(--color-deep-dark);
}

.section-head p { color: var(--color-muted); margin: 0; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.about-card h3 { margin-top: 0; color: var(--color-deep-dark); }
.about-card p { color: var(--color-muted); }

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pill {
  background: rgba(22, 144, 160, 0.1);
  color: var(--color-teal);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 999px;
}

/* Services */
.services-bg { background: white; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-sand);
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid rgba(11, 61, 92, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-deep));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.card h3 { margin: 0 0 8px; color: var(--color-deep-dark); font-size: 1.1rem; }
.card p { margin: 0; color: var(--color-muted); font-size: 0.95rem; }

.card .tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-teal);
  background: rgba(22, 144, 160, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Network / sibling domains teaser */
.network {
  background: var(--color-deep-dark);
  color: white;
}

.network .section-head p { color: rgba(255,255,255,0.75); }
.network .section-head h2 { color: white; }
.network .eyebrow { color: #8fb4e8; }

.network-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.network-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 22px;
}

.network-card h4 { margin: 0 0 6px; }
.network-card p { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 { color: var(--color-deep-dark); margin-top: 0; }
.contact-info p { color: var(--color-muted); }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  font-weight: 600;
  color: var(--color-deep-dark);
}

form.contact-form {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  display: grid;
  gap: 16px;
}

.form-row { display: grid; gap: 6px; }

.form-row label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-deep-dark);
}

.form-row input,
.form-row textarea {
  border: 1px solid rgba(11, 61, 92, 0.18);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--color-sand);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: 1px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--color-muted);
}

.form-status {
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-status.success { color: #1a7f4b; }
.form-status.error { color: #c0392b; }

/* Footer */
footer.site-footer {
  background: var(--color-deep-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 32px 0;
  font-size: 0.85rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo { height: 30px; display: block; opacity: 0.95; }

/* i18n visibility — !important guards against other component classes
   (e.g. .tag, .pill) winning the specificity/order tie-break */
[data-i18n-lang] { display: none !important; }
html[lang="hr"] [data-i18n-lang="hr"] { display: revert !important; }
html[lang="en"] [data-i18n-lang="en"] { display: revert !important; }
[data-i18n-lang].inline { display: none !important; }
html[lang="hr"] [data-i18n-lang="hr"].inline { display: inline !important; }
html[lang="en"] [data-i18n-lang="en"].inline { display: inline !important; }

/* Responsive */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .cards,
  .network-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: inline-block; }
  .cards,
  .network-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
