/* =========================================================
   Project: Voglia.co.uk – Premium Domain Landing Page
   Author: Sunny Assist (Giada)
   Role: UI/UX & Front-End Development
   Notes:
     - Winter hero (festive lights, snow overlay, watermark)
     - Seasonal gradient badge with custom color palette
     - Card-based layout for highlights, pricing, testimonials
     - Mobile-first, print-friendly, no frameworks
   Technologies: HTML5, CSS3
   Last updated: 2026-01-11
========================================================= */


/* =========================================================
   1) Print header (screen vs print)
   ========================================================= */

/* Hidden on screen, revealed in @media print */
.print-header {
    display: none;
}


/* =========================================================
   2) Root tokens & base reset
   ========================================================= */

:root {
    --bg: #f7f3ee;
    --paper: #ffffff;
    --ink: #2b2b2b;
    --muted: #6a5f57;
    --accent: #B35A28;
    --accent2: #D8A47F;
    --radius: 16px;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    --border: #eadfd6;

    /* Seasonal badge colors */
    --badge1: #8C2F4C; /* berry */
    --badge2: #C96A53; /* terracotta */
    --badge3: #F4C06A; /* warm amber */

    /* Divider / footer line */
    --line: #decec0;  /* thin horizontal line */

    /* Footer palette */
    --footer-credit: #77675c;  /* "Crafted by" text */
    --footer-legal: #8f8176;   /* legal disclaimer text */
}

/* Universal reset */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Work Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
}


/* =========================================================
   3) Hero layout, snow overlay & text
   ========================================================= */

.hero {
    position: relative;
    min-height: 65vh;
    display: grid;
    place-items: center;
    text-align: center;
    color: #ffffff;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
        url("/images/voglia-hero.jpg") center/cover no-repeat fixed;
    padding-bottom: 40px;
}

/* Inner wrapper anchors logo, text, lights */
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
    padding: 60px 18px 28px; /* extra top space for the lights */
}


/* Hero title & subtitle */
.hero h1 {
    font-size: clamp(26px, 4.2vw, 44px);
    margin: 0 0 10px;
}

.hero .subtitle {
    font-size: clamp(15px, 2vw, 20px);
    opacity: 0.95;
}


/* =========================================================
   4) Festive lights (hero-lights) + animations
   ========================================================= */

/* Container for festive lights above the hero content */
.hero-lights {
    position: absolute;
    top: 10px;              /* inside hero, above logo */
    left: 50%;
    transform: translateX(-50%);
    height: 22px;
    width: 260px;           /* natural spacing */
    display: flex;
    justify-content: space-between;
    z-index: 4;
}

/* Individual bulbs */
.hero-lights .bulb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: red;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    animation:
        bulbShift 4s infinite ease-in-out,
        bulbColor 3s infinite ease-in-out;
}

/* Animations */
@keyframes bulbShift {
    0%   { transform: translateX(0); }
    33%  { transform: translateX(4px); }
    66%  { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

@keyframes bulbColor {
    0%   { background: #008C45; } /* green */
    20%  { background: #F4F5F0; } /* white */
    40%  { background: #CD212A; } /* red */
    60%  { background: #00CCFF; } /* cyan */
    80%  { background: #FF66FF; } /* fuchsia */
    100% { background: #FFCC00; } /* yellow */
}

/* Staggered delays for bulbs */
.hero-lights .bulb:nth-child(1) { animation-delay: 0s; }
.hero-lights .bulb:nth-child(2) { animation-delay: 0.2s; }
.hero-lights .bulb:nth-child(3) { animation-delay: 0.4s; }
.hero-lights .bulb:nth-child(4) { animation-delay: 0.6s; }
.hero-lights .bulb:nth-child(5) { animation-delay: 0.8s; }
.hero-lights .bulb:nth-child(6) { animation-delay: 1.0s; }
.hero-lights .bulb:nth-child(7) { animation-delay: 1.2s; }
.hero-lights .bulb:nth-child(8) { animation-delay: 1.4s; }


/* =========================================================
   5) Seasonal hero badge
   ========================================================= */

.hero-badge {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 720px;
    margin: -40px auto 26px;
    padding: 10px 32px;
    text-align: center;
    background: linear-gradient(120deg, var(--badge1), var(--badge2), var(--badge3));
    color: #ffffff;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    z-index: 3;
}


/* =========================================================
   6) CTA buttons & brand badge
   ========================================================= */

/* CTA button row */
.cta {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Generic button */
.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-weight: 600;
    transition: 0.2s;
}

.btn.primary {
    background: #ffd8c2;
    color: #5a2a10;
    border-color: #ffd8c2;
}

.btn.secondary {
    background: transparent;
    color: #5a2a10;
    border: 1px solid var(--accent);
}

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

/* Secondary button when placed on dark hero */
.hero .btn.secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.9);
    background: transparent;
}

.hero .btn.secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Brand badge / logo block */
.brand-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(2px);
}

.brand-logo {
    height: 164px;
    display: block;
}

@media (max-width: 600px) {
    .brand-logo {
        height: 148px;
    }
}


/* =========================================================
   7) Main container, cards, grids & tables
   ========================================================= */

.container {
    max-width: 1000px;
    margin: -42px auto 60px;
    padding: 0 18px;
}

/* Card-style blocks */
.card {
    background: var(--paper);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 26px;
    margin-bottom: 22px;
}

/* Section headings */
h2 {
    color: var(--accent);
    margin: 0 0 14px;
    font-size: clamp(20px, 2.4vw, 26px);
}

/* Simple grid helpers */
.grid {
    display: grid;
    gap: 14px;
}

.grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .grid.cols-4,
    .grid.cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Feature blocks */
.feature {
    border: 1px dashed var(--border);
    border-radius: 14px;
    padding: 16px;
}

.feature strong {
    display: block;
    margin: 6px 0 2px;
}

/* Pricing panel */
.price-panel {
    border: 2px solid var(--accent);
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, #e7c9b6, #ffffff) border-box;
}

.price-badge {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 16px;
    margin-bottom: 10px;
}

.price-big {
    font-size: 44px;
    font-weight: 700;
}

.other-options {
    margin-top: 10px;
    color: var(--muted);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

th {
    background: #fff3ea;
}

/* Images */
.img-block {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border);
}

/* Footer */
footer {
    padding: 30px 0;
    color: var(--muted);
    text-align: center;
}


/* =========================================================
   8) “Why” section (highlights grid)
   ========================================================= */

.why-section {
    background: #faf8f6;
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 28px;
}

.why-section h2 {
    text-align: center;
    margin-bottom: 22px;
}

.highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

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

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

.highlight {
    background: #ffffff;
    border: 1px solid #eadfd6;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.highlight span {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 6px;
}


/* =========================================================
   9) Testimonials section
   ========================================================= */

.testimonials-section {
    background: #faf8f6;
    border-radius: 16px;
    padding: 28px;
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 22px;
}

.testimonial {
    background: #ffffff;
    border: 1px solid #eadfd6;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
}

.testimonial p {
    font-style: italic;
    margin: 0 0 12px 0;
    flex-grow: 1;
}

.testimonial small {
    display: block;
    font-weight: 600;
    color: #5a2a10;
    text-align: right;
}


/* =========================================================
   10) Footer blocks
   ========================================================= */

/* Legacy simple footer (if a plain <footer> is used) */
footer {
  padding: 30px 0;
  color: var(--muted);
  text-align: center;
}

/* Main site footer block */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f7f3ee);
  padding: 28px 0 40px;
  color: var(--footer-credit);
  text-align: center;
}

.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

.site-footer .footer-brand {
  font-weight: 700;
  letter-spacing: .3px;
  margin-bottom: 6px;
}

.site-footer .footer-tag {
  font-size: 0.95rem;
  color: var(--footer-credit);
  margin-bottom: 10px;
}

.site-footer .footer-sep {
  width: 120px;
  height: 1px;
  background: var(--line);
  border-radius: 999px;
  margin: 12px auto 14px;
}

/* "Crafted by Sunny Assist" */
.site-footer .footer-crafted {
  margin-bottom: 8px;
}

.site-footer .footer-crafted-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-credit);
  white-space: nowrap;
}

.site-footer .footer-crafted-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.site-footer .footer-crafted-link:hover .footer-crafted-label {
  text-decoration: underline;
}

.site-footer .footer-crafted-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
  vertical-align: middle;
}

.site-footer .footer-crafted-mark svg {
  display: block; /* remove extra space around the icon */
}


/* Legal disclaimer */
.site-footer .footer-legal {
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--footer-legal);
}

.site-footer .footer-legal-title {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.site-footer .footer-legal-text {
  display: block;
}

/* Optional: subtle inset shadow on tall viewports */
@media (min-height: 800px) {
  .site-footer {
    box-shadow: 0 -12px 24px rgba(0, 0, 0, .04) inset;
  }
}

/* Small tweaks on ultra-small devices */
@media (max-width: 320px) {
  .site-footer .footer-brand,
  .site-footer .footer-tag,
  .site-footer .footer-crafted-label,
  .site-footer .footer-legal {
    font-size: 0.72rem;
  }

  .site-footer .footer-legal {
    padding: 0 8px;
    text-align: left;
  }
}


/* =========================================================
   11) Anti-copy basics & watermarks
   ========================================================= */

/* Ensure hero acts as watermark host */
.hero {
    position: relative;
}

/* Hero watermark badge */
.hero::after {
    content: "© Voglia.co.uk • licensed image";
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1;
    background: rgba(0, 0, 0, 0.30);
    color: #ffffff;
    border-radius: 6px;
    pointer-events: none;
    z-index: 3;
}

/* Watermark directly on image where supported */
.img-block {
    position: relative;
}

.img-block::after {
    content: "© Voglia.co.uk • licensed image";
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 3px 6px;
    font-size: 11px;
    line-height: 1;
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    border-radius: 4px;
    pointer-events: none;
    z-index: 2;
}

/* Container wrapping an .img-block – robust fallback */
.grid.cols-2 > div:has(> img.img-block) {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.grid.cols-2 > div:has(> img.img-block)::after {
    content: "© Voglia.co.uk • licensed image";
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 6px;
    font-size: 11px;
    line-height: 1;
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    border-radius: 4px;
    pointer-events: none;
    z-index: 2;
}


/* =========================================================
   12) Print styles
   ========================================================= */

@media print {
    body {
        font-family: "DejaVu Sans", "Arial Unicode MS", sans-serif;
        font-size: 12pt;
        line-height: 1.4;
        color: #000000;
        background: #ffffff !important;
    }

    /* Hide visual-only elements when printing */
    .hero,
    .btn,
    .feature,
    .grid,
    footer,
    .price-badge,
    .other-options,
    .img-block {
        display: none !important;
    }

    /* Show print header on printed page */
    .print-header {
        display: block;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid #dddddd;
    }

    .print-header h1 {
        font-size: 18pt;
        margin: 0;
        color: #000000;
    }

    .container,
    .card,
    table {
        box-shadow: none !important;
        border: none !important;
        background: #ffffff !important;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    h1,
    h2 {
        font-size: 16pt;
        color: #000000;
        margin-top: 18px;
        margin-bottom: 8px;
    }

    p,
    li,
    td,
    th {
        font-size: 12pt;
        color: #000000;
    }

    table {
        border-collapse: collapse;
        width: 100%;
        margin-top: 12px;
    }

    th,
    td {
        border: 1px solid #cccccc;
        padding: 6px 8px;
        text-align: left;
    }

    th {
        background: #f5f5f5;
        font-weight: bold;
    }
}


/* =========================================================
   13) Responsive – general mobile / iOS
   ========================================================= */

@media (max-width: 820px) {
    .hero {
        background-attachment: scroll;
        background-position: center;
    }

    .brand-badge {
        backdrop-filter: none;
    }

    .container {
        margin: 40px auto 60px;
    }

    body {
        padding-top: env(safe-area-inset-top);
    }
}

/* Badge + layout on small screens */
@media (max-width: 600px) {
    .hero-badge {
        width: 90%;
        max-width: 340px;
        margin: 12px auto 24px;
        padding: 8px 16px;
        font-size: 0.95rem;
        white-space: normal;
        text-align: center;
    }

    .container {
        margin: 20px auto 40px;
    }
}

/* Safari / iOS background-attachment fix */
@supports (-webkit-touch-callout: none) {
    .hero {
        background-attachment: scroll !important;
        position: relative;
        z-index: 1;
    }

    .hero .cta {
        position: relative;
        z-index: 2;
    }
}


/* =========================================================
   14) Responsive – ultra-small screens (≈240x320)
   ========================================================= */

@media (max-width: 260px) {

    html,
    body {
        font-size: 13px;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    /* Hero full width and compact */
    .hero {
        min-height: 100vh;
        padding: 16px 0 20px;
        width: 100%;
        max-width: none;
        background-position: center;
        background-size: cover;
    }

    .hero-inner {
        max-width: 240px;
        margin: 0 auto;
        padding: 32px 10px 18px;
    }

    /* Smaller lights, more spacing, slightly higher above logo */
    .hero-lights {
        width: 190px;
        top: 2px;
    }

    .hero-lights .bulb {
        width: 14px;
        height: 14px;
    }

    .brand-logo {
        height: 120px;
    }

    .hero h1 {
        font-size: 18px;
        line-height: 1.25;
    }

    .hero .subtitle {
        font-size: 13px;
        line-height: 1.4;
    }

    .cta {
        flex-direction: column;
        gap: 8px;
    }

    .btn {
        width: 100%;
        padding: 10px 12px;
        font-size: 13px;
    }

    .hero-badge {
        width: 100%;
        max-width: none;
        margin: 10px auto 18px;
        padding: 6px 10px;
        font-size: 12px;
        white-space: normal;
        text-align: center;
    }

    /* Content container */
    .container {
        max-width: 100%;
        margin: 16px auto 30px;
        padding: 0 8px;
    }

    .card {
        padding: 16px 12px;
        margin-bottom: 16px;
    }

    .why-section,
    .testimonials-section {
        padding: 18px 12px;
    }

    h2 {
        font-size: 16px;
    }

    .highlight {
        padding: 12px 10px;
    }

    .highlight span {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }

    .price-panel {
        padding: 16px 12px;
    }

    .price-big {
        font-size: 30px;
    }

    table th,
    table td {
        padding: 6px 4px;
        font-size: 11px;
    }

    footer {
        padding: 18px 0;
        font-size: 11px;
    }
}


/* =========================================================
   15) Responsive – low-height devices
   ========================================================= */

@media (max-height: 600px) {
    .hero {
        min-height: 80vh;
    }

    .hero-inner {
        padding-top: 70px;
    }
}
