/**
 * corfu-villa.gr landing page styles.
 *
 * Recreates the former Twenty Twenty-Four layout without WordPress.
 * All colours, sizes and spacing are tokens on :root; change them there.
 */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-sand: #ede5d3;
  --color-base: #f9f9f9;
  --color-white: #ffffff;
  --color-text: #111111;
  --color-muted: #636363;
  --color-button: #c2a990;
  --color-overlay: rgb(0 0 0 / 50%);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --text-small: 0.9rem;
  --text-medium: 1.05rem;
  --text-large: clamp(1.39rem, 1.39rem + ((1vw - 0.2rem) * 0.767), 1.85rem);

  --space-20: min(1.5rem, 2vw);
  --space-30: min(2.5rem, 3vw);
  --space-40: min(4rem, 5vw);
  --space-50: min(6.5rem, 8vw);
  --gutter: min(2.5rem, 5vw);

  --width-content: 620px;
  --width-wide: 1280px;
  --radius: var(--space-20);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-base);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-small);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
p {
  margin: 0;
}

a {
  color: inherit;
}

/* Header: beach photo with dark overlay, logo and language switcher. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-20);
  padding: var(--space-30);
  overflow: hidden;
  color: var(--color-white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 44%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--color-overlay);
}

.hero__logo,
.lang {
  position: relative;
  z-index: 2;
}

.lang {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang img {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  object-fit: cover;
}

/* Full-width bands holding the wide content. */
.band {
  padding: var(--space-50);
}

.band--sand {
  background: var(--color-sand);
}

.band--base {
  background: var(--color-base);
}

.band--white {
  background: var(--color-white);
}

.wide {
  max-width: var(--width-wide);
  margin-inline: auto;
}

.cols {
  display: flex;
  gap: var(--space-50);
}

.cols > * {
  flex: 1 1 50%;
  min-width: 0;
}

.cols--intro > :first-child {
  flex-basis: 40%;
}

.cols--intro > :last-child {
  flex-basis: 60%;
}

.cols--center {
  align-items: center;
}

.heading {
  font-size: var(--text-large);
  font-weight: 400;
  line-height: 1.5;
}

.lead {
  font-size: var(--text-medium);
  line-height: 1.5;
}

.lead + .lead {
  margin-top: 1.2rem;
}

.photo {
  margin: 0;
}

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

.photo--square img {
  aspect-ratio: 1;
  object-fit: cover;
}

.photo--wide {
  margin-top: var(--space-40);
}

.villa {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: var(--width-content);
}

.button {
  display: inline-block;
  width: 75%;
  padding: 0.6rem 1rem;
  border-radius: 0.33rem;
  background: var(--color-button);
  color: var(--color-text);
  font-size: var(--text-small);
  text-align: center;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: var(--color-text);
  color: var(--color-white);
}

.footer {
  padding: 20px var(--gutter);
  color: var(--color-muted);
  font-size: var(--text-small);
  text-align: center;
}

@media (max-width: 781px) {
  .cols {
    flex-direction: column;
    gap: var(--space-30);
  }

  .band {
    padding: var(--space-40) var(--gutter);
  }

  /* Image above text on phones, as on the old site. */
  .cols--swap > :first-child {
    order: 2;
  }
}
